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: 

BDC using Step loops

Former Member
0 Kudos

Dear all,

I have an issue in writing a BDC for a step loop.

My BDC creates a PO(ME21) with item quantity and Header texts. But the header texts are on a steploop.There is no option Create /Something else as it is a fixed number of header texts.

Helpful suggestion will be rewarded with points.

Thanks,

Jaleel.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

After running your BDC it will create a PO, you can that PO number from Parameter id. You can insert Header text into PO using the function module <b>save_text</b>.

Hope this helps.

6 REPLIES 6

Former Member
0 Kudos

Hi,

After running your BDC it will create a PO, you can that PO number from Parameter id. You can insert Header text into PO using the function module <b>save_text</b>.

Hope this helps.

0 Kudos

Not very sure abt SAVE_TEXT function module.

Some clue plz.

0 Kudos

Can you give me your email id so that i can send you the code for creating texts with Function modules.

Former Member
0 Kudos

Hi,

use FM create_text by passing object id.

Regards

amole

Former Member
0 Kudos

Hi,

use below code

CALL FUNCTION 'CREATE_TEXT'

EXPORTING

FID = 'ST '

FLANGUAGE = 'E'

FNAME = WS-TEMP_NAME

FOBJECT = 'TEXT'

  • SAVE_DIRECT = 'X'

  • FFORMAT = '*'

TABLES

FLINES = ST_LINES

EXCEPTIONS

NO_INIT = 1

NO_SAVE = 2

OTHERS = 3.

regards

amole

Former Member
0 Kudos

Hi,

text are stored in table stxh,stxl

FM Read_text is used to read text

edit_text-edit text

delete_text-delete text

regards

amole