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

Former Member
0 Likes
806

Hi experts,

I am recording the transaction VL02n to update the item text for material.

After entering to item text ,for one of items i updated text as "test123" and saveed the document.After finishing the recording i have trasnfered that to SE 38 program.

I tested from se38.It is working fine.But in the code in SE38 i am not able to see the text "test123" which i have passed. If i want to change that i need to pass one more value thru program.But that value is not trapped.Can any body let me know how to resolve this?

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
734

can you paste your code over here?

5 REPLIES 5
Read only

Former Member
0 Likes
735

can you paste your code over here?

Read only

0 Likes
734

See the code:

report ZTEST_BDC_VL02N

no standard page heading line-size 255.

include bdcrecx1.

start-of-selection.

perform open_group.

perform bdc_dynpro using 'SAPMV50A' '4004'.

perform bdc_field using 'BDC_CURSOR'

'LIKP-VBELN'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'LIKP-VBELN'

'80028812'.

perform bdc_dynpro using 'SAPMV50A' '1000'.

perform bdc_field using 'BDC_OKCODE'

'=ITEX_T'.

perform bdc_field using 'LIKP-BLDAT'

'17.07.2007'.

perform bdc_field using 'BDC_CURSOR'

'LIPS-POSNR(01)'.

perform bdc_field using 'LIKP-WADAT'

'17.07.2007'.

perform bdc_field using 'LIKP-WAUHR'

'00:00:00'.

perform bdc_field using 'LIKP-BTGEW'

'26,240'.

perform bdc_field using 'LIKP-GEWEI'

'KG'.

perform bdc_field using 'RV50A-LIPS_SELKZ(01)'

'X'.

perform bdc_dynpro using 'SAPMV50A' '3000'.

perform bdc_field using 'BDC_OKCODE'

'=%_GC 108 25'.

perform bdc_field using 'LV70T-SPRAS'

'EN'.

perform bdc_dynpro using 'SAPMV50A' '3000'.

perform bdc_field using 'BDC_OKCODE'

'=SICH_T'.

perform bdc_transaction using 'VL02N'.

perform close_group.

I think it is not from LIPS-ARKTX

Read only

0 Likes
734

hi ravi,

instead of writing the text in that item text,wat u do is u double click on the blank space provided for the text,it will take u to a different screen,there u fill up the details.

also this will be reflected in ur recording and the code in se38

Read only

0 Likes
734

where are you passing your text in the code?

Read only

Former Member
0 Likes
734

Hi Ravi,

you have to fill:

perform bdc_field using 'LIPS-ARKTX(01)'

<b>record-ARKTX_01_007</b>.

look also to the ather values of table record.

Regards, Dieter