Create goods receipt for external purchase order

fert_external_openorder_edit.psr
 
 
Property 
 | 
Description 
 | 
 
s_parm3 
 | 
Filter 
 | 
 
s_parm2 
 | 
Supplier CardCode 
 | 
 
 
 
 | 
 
 
Follow special window events available 
  
Property 
 | 
Description 
 | 
 
prereceiptadd 
 | 
After definition of the goods receipt PO document, but before adding 
  
Variable 
 | 
Description 
 | 
 
porder 
 | 
The SAP DI-API goods receipt object 
 | 
 
dw_1 
 | 
The datawindow with all values for current line 
 | 
 
odelivery 
 | 
the Delivery Table 
 | 
 
 
 
  
Example: Save a value in an own udf 
  
  
windowevent prereceiptadd 
if <dw_1.item.itemcode.value> = 'FP' then 
   porder.line.u_myUdf='myValue' 
end if 
end event 
 | 
 
receiptadd 
 | 
called after adding goods receipt PO  
you can check created document entry with getnewobjectkey 
  
Variable 
 | 
Description 
 | 
 
porder.getnewobjectkey 
 | 
created document 
 | 
 
 
 
  
  
  
windowevent purchaseorderadd 
setvar=ll_docentry=<porder.getnewobjectkey> 
// print document 
end event 
 | 
 
purchaseclose 
 | 
before purchase order closing 
called, if "close" flag is activated 
  
Variable 
 | 
Description 
 | 
 
porder 
 | 
linked purchase order as SAP DI-API object 
 | 
 
dw_1.items.opor_docentry.value 
dw_1.items.por1_linenum.value 
 | 
Purchase order Docentry/Linenum 
 | 
 
  
 | 
 
 | 
 
 
 
 | 
 
postdeliveryline 
 | 
after creating goods receipt and closing purchaseclose 
before printing document and creating QC Order 
  
Variable 
 | 
Description 
 | 
 
dw_1 
 | 
current line, which current in work 
 | 
 
e_docentry 
 | 
DocEntry from current created Goods Receipt PO document 
 | 
 
 
 
 | 
 
postexternalprocess 
 | 
after all activities for the current line 
Variable 
 | 
Description 
 | 
 
dw_1 
 | 
current line, which current in work 
 | 
 
e_docentry 
 | 
DocEntry from current created Goods Receipt PO document 
 | 
 
 
 
 | 
 
 
 
 |