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

create long text while creating pr thr bdc

Former Member
0 Likes
530

Hi all,

i ahve a requirement to create pur req through bdc(me51) , and i m facing a problem while craeting is how to uplaod the long text for item , i have uploaded long text in int table, but i don't know how to save it in me51 tcode , i know about save_text fn module but problem is taht i don't know what to pass in header parametr , coz i don't have text name until i save my pr , so how to create text while creating pr.

thanks

regards

sarabjit

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
486

Hi Sarabjit,

Try to use any userexit which triggers before save and or during preparing for save, at this point you can get the document number and item number from buffer tables.

Check the user exits which suits your requirements.

Regards,

Dinakar.

3 REPLIES 3
Read only

Former Member
0 Likes
487

Hi Sarabjit,

Try to use any userexit which triggers before save and or during preparing for save, at this point you can get the document number and item number from buffer tables.

Check the user exits which suits your requirements.

Regards,

Dinakar.

Read only

Former Member
0 Likes
486

HI,

In header of save_text function module you have to pass the following:

TDOBJECT = EBAN

TDNAME = CONCATENATE PR NUMBER(LENGTH 10) AND ITEM NUMBER(LENGTH 5 TOTAL 15)

FOR EXAMPLE PRNUMBER 10001304 AND ITEM NUMBER 10 FOR THIS TD NAME IS 001000130400010

TDID = B01 (FOR ITEM TEXT)

TDSPRAS = SY-LANGU

I hope this will help you.

Regards and Best wishes.

Read only

0 Likes
486

thnaks to kiran and dinakr , but kiran i don't know what is pr no , coz i haven't save my pr yet so , i don't have the pr no, but i will try diankar's solution and revert back.

nways thanks to both of u

sarabjit