Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Extract PO.

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

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