Application Development and Automation 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: 
Read only

BDC using Step loops

Former Member
0 Likes
780

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
Read only

Former Member
0 Likes
733

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
Read only

Former Member
0 Likes
734

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.

Read only

0 Likes
733

Not very sure abt SAVE_TEXT function module.

Some clue plz.

Read only

0 Likes
733

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

Read only

Former Member
0 Likes
733

Hi,

use FM create_text by passing object id.

Regards

amole

Read only

Former Member
0 Likes
733

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

Read only

Former Member
0 Likes
733

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