Application Development 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: 

Problem in BDC

Former Member
0 Kudos

Hi All,

I have done a BCD recording for MK02 and generrated program.In the program i have added another field WRF02K-D0380.But it is not getting displayed in the screen.what should be done?

report ZRAK_BDC

no standard page heading line-size 255.

include bdcrecx1.

start-of-selection.

perform open_group.

perform bdc_dynpro using 'SAPMF02K' '0108'.

perform bdc_field using 'BDC_CURSOR'

'RF02K-D0110'.

perform bdc_field using 'RF02K-LIFNR'

'2442'.

perform bdc_field using 'RF02K-D0110'

'X'.

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

perform bdc_field using 'WRF02K-D0380'

'X'.

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

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_dynpro using 'SAPMF02K' '0110'.

perform bdc_field using 'BDC_CURSOR'

'LFA1-ANRED'.

perform bdc_field using 'BDC_OKCODE'

'=UPDA'.

perform bdc_field using 'LFA1-ANRED'

'Firma'.

perform bdc_field using 'LFA1-NAME1'

'Rakesh More'.

perform bdc_field using 'LFA1-SORTL'

'HUENERSDOR'.

perform bdc_field using 'LFA1-NAME2'

'PLASTIC-U.METALLWARENFABRIK'.

perform bdc_field using 'LFA1-STRAS'

'EISENBAHNSTRASSE 6'.

perform bdc_field using 'LFA1-PFACH'

'569'.

perform bdc_field using 'LFA1-ORT01'

'LUDWIGSBURG'.

perform bdc_field using 'LFA1-PSTLZ'

'71636'.

perform bdc_field using 'LFA1-PSTL2'

'71605'.

perform bdc_field using 'LFA1-LAND1'

'DE'.

perform bdc_field using 'LFA1-SPRAS'

'DE'.

perform bdc_field using 'LFA1-TELF1'

'07141-147-311'.

perform bdc_field using 'LFA1-TELFX'

'07141-147290'.

perform bdc_transaction using 'MK02'.

perform close_group.

Thanks,

Rakesh.

5 REPLIES 5

GauthamV
Active Contributor
0 Kudos

hi,

you should not add new fields in bdc program directly.if you want new fields in your bdc then you have to do the recording again and then add the field in the program.

Former Member
0 Kudos

I dont get this field(contact person) while recording.

GauthamV
Active Contributor
0 Kudos

I dont get this field(contact person) while recording.

Then how you thought of adding in your program directly.

Check in normal mode whether you are getting that field.or else check with your functional consultant wether they have changed some settings.

also try XK02 .

Former Member
0 Kudos

thIs is what my problem is.I dont get this field while recording but its visible dirctly through transaction.

Former Member
0 Kudos

hello Rakesh,

is better do recording once agian....

thank u,

santhosh