09-25-2008 4:15 AM
I tried to validate whether batch is input on the PO by using the BADI ME_PURCHDOC_POSTED~POSTED method.
I can successfully stop the posting if no batch is input for line item, however, message "PO XXXX is changed" is still issued. How can I return to main screen, so that user can change the input and post again?
Thanks,
Vicki
09-25-2008 4:40 AM
you are just checking the BADI which executes at the last. so try with this BADI ME_PROCESS_PO_CUST , there you can use CHECK method.
09-25-2008 4:32 AM
If your condition faild bot batch than you may stop processing by issued some error message to user.
Amit.
09-25-2008 4:37 AM
If i issued error message, another message prompted after my message.
"System error: MB_POSTED error", so I asked if I can return to the main screen if validation failed.
09-25-2008 4:42 AM
Than i think as per you business requirement you need to check on at header or item level not at the time of document posted.
please try with same code in BADi:ME_PROCESS_PO_CUST it will trigger at onlymain screen of me21n. fire message here.
Amit.
09-25-2008 4:36 AM
Hello ,
for validation u can try BADI ME_PROCESS_PO , check its sample code .
regards
prabhu
09-25-2008 4:44 AM
>
> for validation u can try BADI ME_PROCESS_PO , check its sample code .
I'm in ECC and i cannot use BADI ME_PROCESS_PO anymore because of definition is only designated for internal SAP usage.
Amit.
09-25-2008 4:40 AM
you are just checking the BADI which executes at the last. so try with this BADI ME_PROCESS_PO_CUST , there you can use CHECK method.
09-25-2008 4:48 AM
there is not enough infomration in ME_PROCESS_PO_CUST
I need the data from EKET.
09-25-2008 4:54 AM
Than use Method:PROCESS_SCHEDULE
PS:this is from SAP documention >>If you wish to mark a schedule (line) as invalid, use the INVALIDATE() method of the IF_PURCHASE_ORDER_SCHEDULE_MM interface.
09-25-2008 4:55 AM
there is , But it will hidden,
from the header object read the item objects -> then read the schedule lines data.
IM_HEADER->GET_ITEMS, now loop each item object and get the schedules information using the method item->GET_SCHEDULES
09-25-2008 6:28 AM
10-07-2008 6:25 AM
Hi,
I have also same issue.
How could solve this?
Plz explain in detail
Thanks
10-09-2008 7:04 AM