06-26-2008 5:55 AM
Hi All,
I am working on 3.1i version,
I have to extract the PO number before clicking the SAVE button in ME21
Could you please help me out on this issue ?
From where i can extract the PO before saving.(tables or any FM or any exit )
Thanks in Advance.
06-26-2008 6:07 AM
Hi,.
Go to EKKO -ebeln field .The Parameter ID for This BES.
Before Saving ,
Set The parameter id to BES,
And Get That Value Usung GET Parameter.
Use The FM BAPI_PO_CREATE To Get PO Number.
Data: w_ebeln type ekko-ebeln,
w_value type ekko-ebeln.
Set PARAMETER ID 'BES' Field w_ebeln.
Get PARAMETER ID 'BES' Field w_value.
Use Can Use bove Code To Get Value From Parameter ID.
I Hope it will be helpful.
Thanks
06-26-2008 6:15 AM
Hi,
In SNRO check the RANGE No. for which u want the next number against object MATERIALNR .
Use fm: NUMBER_GET_NEXT,
CALL FUNCTION 'NUMBER_GET_NEXT'
exporting
NR_RANGE_NR = '01'
OBJECT = 'MATERIALNR'
QUANTITY = 1
importing
number = next_num
exceptions..............
This is for material no. similarlyh check the object for PO in SNRO.
Regards,
Subramanian
Edited by: Subramanian PL on Jun 25, 2008 10:17 PM