on 09-26-2011 6:11 PM
Dear Experts,
I need to do some validation in MIGO tcode based on item Purchase Order and item. I have already identified badi MB_MIGO_BADI and methods CHECK_ITEM also. but problem is in CHECK_ITEM method having Item Number only as Input parameter. I am unable to get PO Number and Item in this method to do validation.
Please let me know how can i get Po number and Item in my methos CHECK_ITEM???
Thanks in Advance,
Siva
Hi Siva,
If there is no PO number is available, fetch the global data of PO number from MIGO screen using field symbols.The following example will help to get it into your method CHECK_ITEM.
FIELD-SYMBOLS: <FS_PONUM> TYPE EBELN.
DATA: w_ebeln type ebeln.
ASSIGN ('(SAPLMIGO)GODYNPRO-PO_NUMBER') TO <FS_PONUM>.
MOVE <FS_PONUM> TO w_ebeln.
Thanks,
Prasad GVK.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Siva,
Check like this
CALL METHOD im_header->get_items
RECEIVING
re_items = lt_items. If you use this method you can not get po no.
Suppose if your business requirement is to check when ever an item enter in line then you can use line_modify.This will fire when ever you enter line item.In this case you can use parameter cs_goitem for po reference.If there is any macro available then easy to give the message.
Regards,
Madhu.
Edited by: madhurao123 on Sep 26, 2011 11:20 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.