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: 

abt bapi

Former Member
0 Kudos
43

My requiremetn is Creating the Open PurCHASe REQIUISITION USING BAPI_REQUISITION _CREATE.

after this I want to insert header text (which is table STXH. )..

how to pass header text to that one..

very urgent

1 ACCEPTED SOLUTION

Former Member
0 Kudos
25

Hi,

Use function Module SAVE_TEXT to add the header text. It is important to know that you can do this only after the purchase requisition is created because you will need the purchase requisition number.

EXPORT PARAMETERS

HEADER-TDOBJECT = 'EBANH'.

HEADER-TDNAME = <Complete Purchase requisition number... 10 digits>

HEADER-TDID = 'B01'

HEADER-TDSPRAS = sy-langu

HEADER-TDFORM = 'SYSTEM'

HEADER-MANDT = sy-mandt

TABLES

LINES-TDFORMAT = '*'

LINES-TDLINE = <Header text line 1>

Repeat the LINES entries based on the number of lines you want entered.

Hope this helps.

2 REPLIES 2

Former Member
0 Kudos
26

Hi,

Use function Module SAVE_TEXT to add the header text. It is important to know that you can do this only after the purchase requisition is created because you will need the purchase requisition number.

EXPORT PARAMETERS

HEADER-TDOBJECT = 'EBANH'.

HEADER-TDNAME = <Complete Purchase requisition number... 10 digits>

HEADER-TDID = 'B01'

HEADER-TDSPRAS = sy-langu

HEADER-TDFORM = 'SYSTEM'

HEADER-MANDT = sy-mandt

TABLES

LINES-TDFORMAT = '*'

LINES-TDLINE = <Header text line 1>

Repeat the LINES entries based on the number of lines you want entered.

Hope this helps.

0 Kudos
25

please giv me the steps,so that i ll try....