09-25-2006 4:42 PM
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.
09-25-2006 4:46 PM
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.
09-25-2006 4:46 PM
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.
09-25-2006 4:56 PM
09-25-2006 4:59 PM
Can you give me your email id so that i can send you the code for creating texts with Function modules.
09-25-2006 5:17 PM
09-25-2006 5:19 PM
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
09-25-2006 5:20 PM
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