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 program not able to populate values in Tax Classification while extending the customer master.

Former Member
0 Likes
989

Dear Sir,

I am facing a problem where the values are passed in the field 'KNVI-TAXKD(01)'

But the Values are not populating in screen field Tax classification while extending the Customer master from one Company code to other.

Kindly help.... attachment.tax.jpg

I have handled the code for populating the Values to the field.

The highlighted part is where the code that populates the field in screen.

Screen is '1350' in customer master.

PERFORM bdc_dynpro USING 'SAPMF02D' '1350'.

PERFORM bdc_field USING 'BDC_CURSOR'

'KNVI-TAXKD(09)'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=ENTR'.

CLEAR: lv_count.

LOOP AT it_knvi INTO wa_knvi WHERE kunnr = wa_final-kunnr.

lv_count = lv_count + 1.

CLEAR lv_fnam.

CONCATENATE 'KNVI-TAXKD('lv_count')' INTO lv_fnam.

IF wa_knvi-taxkd IS INITIAL.

wa_knvi-taxkd = '0'.

ENDIF.

PERFORM bdc_field USING lv_fnam

wa_knvi-taxkd."'0'.

ENDLOOP.

Kindly suggest how to over come this problem.

Dear Sir,

I am facing a problem where the values are passed in the field 'KNVI-TAXKD(01)'

But the Values are not populating in screen field Tax classification while extending the Customer master from one Company code to other.

Kindly help.... attachment.tax.jpg

I have handled the code for populating the Values to the field.

The highlighted part is where the code that populates the field in screen.

Screen is '1350' in customer master.

PERFORM bdc_dynpro USING 'SAPMF02D' '1350'.

PERFORM bdc_field USING 'BDC_CURSOR'

'KNVI-TAXKD(09)'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=ENTR'.

CLEAR: lv_count.

LOOP AT it_knvi INTO wa_knvi WHERE kunnr = wa_final-kunnr.

lv_count = lv_count + 1.

CLEAR lv_fnam.

CONCATENATE 'KNVI-TAXKD('lv_count')' INTO lv_fnam.

IF wa_knvi-taxkd IS INITIAL.

wa_knvi-taxkd = '0'.

ENDIF.

PERFORM bdc_field USING lv_fnam

wa_knvi-taxkd."'0'.

ENDLOOP.

Kindly suggest how to over come this problem.

1 REPLY 1
Read only

VenkatRamesh_V
Active Contributor
0 Likes
802

Hi,

Try with the mass tcode.

Regards,

Venkat.