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

difference in value while recording through SHDB

Former Member
0 Likes
419

hi guys,

well i want to know why there is difference when i do recording. I am using the transaction 'VD01'

while recording i get

perform bdc_field using 'BDC_CURSOR'

'ADDR1_DATA-TRANSPZONE'.

perform bdc_field using 'ADDR1_DATA-NAME1'

record-NAME1_004.

perform bdc_field using 'ADDR1_DATA-SORT1'

record-SORT1_005.

perform bdc_field using 'ADDR1_DATA-STREET'

record-STREET_006.

perform bdc_field using 'ADDR1_DATA-COUNTRY'

record-COUNTRY_007.

perform bdc_field using 'ADDR1_DATA-TRANSPZONE'

record-TRANSPZONE_008.

perform bdc_field using 'ADDR1_DATA-LANGU'

record-LANGU_009.

but the example which i am practicing there it is

PERFORM bdc_field USING 'KNA1-NAME1'

lw_customer-name1. "Name.

PERFORM bdc_field USING 'KNA1-SORTL'

lw_customer-sortl. "Search Term.

PERFORM bdc_field USING 'KNA1-ORT01'

lw_customer-ort01. "City.

PERFORM bdc_field USING 'KNA1-LAND1'

lw_customer-land1. "Country.

PERFORM bdc_field USING 'KNA1-SPRAS'

lw_customer-spras. "Language.

PERFORM bdc_field USING 'KNA1-PSTLZ'

lw_customer-pstlz. "Postol Code.

PERFORM bdc_dynpro USING 'SAPMF02D' '0120'.

PERFORM bdc_field USING 'BDC_CURSOR'

'KNA1-LZONE'.

well i just want to know why do i get 'ADDR1_DATA-NAME1' but in example it is 'KNA1-NAME1' and so on to other fields.

kindly let me know what is happening here

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
381

Hi,

When you record the transaction VD01 in the initial screen a check box is there for central address managament.

If you check that box different screen will be called for the adress management, so the structures used in the screen is different.

Uncheck the check box "Use central address management" while recording you will get what you are expecting.

Regards

Praveen

1 REPLY 1
Read only

Former Member
0 Likes
382

Hi,

When you record the transaction VD01 in the initial screen a check box is there for central address managament.

If you check that box different screen will be called for the adress management, so the structures used in the screen is different.

Uncheck the check box "Use central address management" while recording you will get what you are expecting.

Regards

Praveen