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

problem in uploading data in so10 tr.code uding BDC method

Former Member
0 Likes
564

Hi Experts,

i am uploadign data into the tr.code SO10. by usimg BDC call transaction method. The data is in the flat file.

now my problem is when the text length is more than 72 characters the program is not creating the text. and it is saying that text length is more.

but in my flat file the text length is more tha 72 characters.how can i do it?

my porgram is:

types: begin of i_so10,

TDNAME type TDOBNAME,

TDID type TDID,

TDSPRAS type TDSPRAS,

TEXT type STRING,

end of i_s010.

data: it_so10 type standard table of i_so10,

wa_so10 type i_so10.

loop at it_so10 into wa_so10.

perform bdc_dynpro using 'SAPMSSCE' '1100'.

perform bdc_field using 'BDC_CURSOR'

'RSSCE-TDNAME'.

perform bdc_field using 'BDC_OKCODE'

'=CREA'.

perform bdc_field using 'RSSCE-TDNAME'

wa_so10-TDNAME.

perform bdc_field using 'RSSCE-TDID'

wa_so10-TDID.

perform bdc_field using 'RSSCE-TDSPRAS'

wa_so10-TDSPRAS.

perform bdc_dynpro using 'SAPLSTXX' '1100'.

perform bdc_field using 'BDC_CURSOR'

'RSTXT-TXLINE(02)'.

perform bdc_field using 'BDC_OKCODE'

'=EDNP'.

perform bdc_field using 'RSTXT-TXLINE(02)'

wa_so10-text.

call transaction 'so10' using it_bdcdata

MODE 'A'

UPDATE 'S'.

endloop.

*************************************************************************

perform bdc_field using 'RSTXT-TXLINE(02)'

wa_so10-text.

the text stored in wa_so10-text is more than 72 characters.but RSTXT-TXLINE(02) length is only 72 characters.

the recording code at the screen of store text is:

perform bdc_field using 'RSTXT-TXLINE(02)'

'tttttttttttttttttttttttttttttttttttttt'

& 'tttttttttttttttttttttttttttttttttt'.

perform bdc_dynpro using 'SAPLSTXX' '1100'.

perform bdc_field using 'BDC_CURSOR'

'RSTXT-TXLINE(03)'.

perform bdc_field using 'BDC_OKCODE'

'=EDNP'.

perform bdc_field using 'RSTXT-TXLINE(03)'

'tttttttttttttttttttttttttttttttttttttt'

& 'tttttttttttttttttttttttttttttttttt'.

perform bdc_dynpro using 'SAPLSTXX' '1100'.

perform bdc_field using 'BDC_CURSOR'

'RSTXT-TXLINE(04)'.

perform bdc_field using 'BDC_OKCODE'

'=EDNP'.

perform bdc_field using 'RSTXT-TXLINE(04)'

'tttttttttttttttttttttttttttttttttttttt'

& 'tttttttttttttttttttttttttttttttttt'.

perform bdc_dynpro using 'SAPLSTXX' '1100'.

perform bdc_field using 'BDC_CURSOR'

'RSTXT-TXLINE(05)'.

perform bdc_field using 'BDC_OKCODE'

'=TXSV'.

perform bdc_field using 'RSTXT-TXLINE(05)'

'tttttttttttttttttttttttttttttttttttttt'.

perform bdc_dynpro using 'SAPLSTXX' '1100'.

perform bdc_field using 'BDC_CURSOR'

'RSTXT-TXLINE(05)'.

give solution for this.

thanks in advance,

Mythily.

3 REPLIES 3
Read only

Former Member
0 Likes
486

Hi, instead of using BDC coding it is mutch easier to use a standard SAP function like CREATE_TEXT.

Using BDC you have to split your lines into lines of 72 characters. Succes

Read only

0 Likes
486

Hi,

how to handle the function module create_text when text length is more than 72 characters. will u suggest me with coding.

Read only

Former Member
0 Likes
486

Hi all,

i am not getting any useful answers. will help me this regard.

thanks