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 with BDC in VA01

Former Member
0 Likes
2,699

hi ,

i am getting some problem in BDC for VA01, when i am executing from my system it updating fine, when i am trying from other system it giving error that

field RV45A-MABNR(4) does not exist in the screen SAPMV45A 400

i am using the code like this. and i am working in ECC 6.0.

v_cnt1 = 01.

loop at i_matnr into wa_matnr

where sold = wa_upload-sold

and bstnk = wa_upload-bstnk.

concatenate 'RV45A-MABNR( ' v_cnt1 ')' into v_matnr.

concatenate 'RV45A-KWMENG(' v_cnt1 ')' into v_kwmeng.

perform bdc_field using 'BDC_CURSOR'

v_kwmeng.

perform bdc_field using v_kwmeng

wa_matnr-qty.

perform bdc_field using 'BDC_CURSOR'

v_matnr.

perform bdc_field using v_matnr

wa_matnr-matnr.

perform bdc_dynpro using 'SAPMV45A' '4001'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

v_cnt1 = v_cnt1 + 1.

if v_cnt1 > 10.

perform bdc_field using 'BDC_OKCODE'

'P+'.

clear: v_cnt1.

v_cnt1 = 01.

endif.

clear: wa_matnr, v_matnr, v_kwmeng.

endloop.

how to correct it please suggest me how to correct that.

thanks in advance,

chinnu.p

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,170

Chinnu

VA01 screen layout varies depending on the configuration settings... So, I would suggest you to go for BAPI BAPI_SALESORDER_CREATEFROMDAT2 instead of BDC.

See BAPI Documentation for more details.

Thanks

Amol Lohade

Chinnu

VA01 screen layout varies depending on the configuration settings... So, I would suggest you to go for BAPI BAPI_SALESORDER_CREATEFROMDAT2 instead of BDC.

See BAPI Documentation for more details.

Thanks

Amol Lohade

10 REPLIES 10
Read only

Former Member
0 Likes
2,170

check whether

field RV45A-MABNR(4) does not exist in the screen SAPMV45A 400

exists in the system...

If it is a table control values you should handle the scenario in a different way..

Read only

alpesh_saparia3
Active Contributor
0 Likes
2,170

Hi,

This is the problem with the Screen Resolution of desktop. There is not the problem with your bdc. To avoid this do page down one every record.

-Alpesh

Read only

Former Member
0 Likes
2,171

Chinnu

VA01 screen layout varies depending on the configuration settings... So, I would suggest you to go for BAPI BAPI_SALESORDER_CREATEFROMDAT2 instead of BDC.

See BAPI Documentation for more details.

Thanks

Amol Lohade

Read only

Former Member
0 Likes
2,170

Hi ,

I think you are using an existing code on the new server.

I will suggest you to do a recording again using transaction SHDB. You will get the field names and exact screen numbers with screen flow for the server you are working with.

THnx!

Harry

Read only

Former Member
0 Likes
2,170

Hello chinnu

Sometimes what happed is when we create our BDC through SHDB the resolution of system is different

that runs fine in that system in other system as the resolution changes and it doesnot fint the particular field then BDC gives these kind of errors .

For these issues there is option called default size which is being check when you create recording

so when you pass options in call transaction in options make default size option as checked

Hope it solves your issue

Regads

HItesh

Read only

0 Likes
2,170

ya i tried that also for every record i am extending the page but i am unable to process same error i am getting can any one send me sample code....for this............

Read only

0 Likes
2,170

hey chinnu

no need to extend the page ok do onething

declare a data type of CTU_PARAMS

data : opt type table of CTU_PARAMS .

opt-DEFSIZE = 'X'

Please check call transaction syntax and add options to it .

hope it soles your problem .

Read only

Former Member
0 Likes
2,170

i got the solution

Read only

0 Likes
2,170

Hi chinnu,

I am also getting the same type of error.

can i know the solution that you got.

Regards,

kk

Read only

0 Likes
2,170

Hi,

Use -


opt-DEFSIZE = 'X'.

as specified by many people above.

Regards,

Harsh Bansal