2011 Nov 03 12:59 PM
I have en implemented badi ZME_PROCESS_PO_CUST.
Within process_item method I do: ws_item = im_item->get_data( ).
In order to have the PO line´s information in ws_item.
When knttp field has value 'F' and therefore user inserts an orden number.
How could I get this order number? It´s not in ws_item.
Thanks in advance.
2011 Nov 03 2:09 PM
Hi
Try in method POST with the parameter IM_EBELN.
Regards
Eduardo
I have en implemented badi ZME_PROCESS_PO_CUST.
Within process_item method I do: ws_item = im_item->get_data( ).
In order to have the PO line´s information in ws_item.
When knttp field has value 'F' and therefore user inserts an orden number.
How could I get this order number? It´s not in ws_item.
Thanks in advance.
2011 Nov 03 2:09 PM
Hi
Try in method POST with the parameter IM_EBELN.
Regards
Eduardo
2011 Nov 04 9:20 AM
hi!!
I need the value of the order number in process_item method.
Thanks.
2011 Nov 05 4:11 AM
if u want to get order number in process_item method use below code,
DATA LS_ACCOUNTING TYPE MEPOACCOUNTING,
DATA LT_ACCOUNTINGS TYPE PURCHASE_ORDER_ACCOUNTINGS.
DATA LINE_ACCOUNTING TYPE PURCHASE_ORDER_ACCOUNTING.
DATA LS_ACC TYPE REF TO IF_PURCHASE_ORDER_ITEM_MM .
DATA ORDER_NUMBER TYPE AUFNR.
LT_ACCOUNTINGS = IM_ITEM->GET_ACCOUNTINGS( ).
LOOP AT LT_ACCOUNTINGS INTO LINE_ACCOUNTING.
LS_ACCOUNTING = LINE_ACCOUNTING-ACCOUNTING->GET_DATA( ).
"order number is there in LS_ACCOUNTING STRUCTURE.
DO u r process.
<Reward request removed by moderator>
Edited by: Vinod Kumar on Nov 5, 2011 9:43 AM
2011 Nov 07 8:47 AM
hi!!
Thanks. I have tried and it´s fine. Nevertheless I think it´s not neccessary to do a loop; I think ti´s enaugh doing once
LS_ACCOUNTING = LINE_ACCOUNTING-ACCOUNTING->GET_DATA( ).
Problem solved.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |