cancel
Showing results for 
Search instead for 
Did you mean: 

BDC

Former Member
0 Kudos

Hi,

I need help with my BDC program.

This is for transaction VF01 - automatically create a credit note.

There are only 2 fields that i will use, billing type and document number. As for billing type, i want to make sure its always constant at YG2 and for document number, i will extract from a vbrk-vbeln.

There is no file uploading involved.

I am having touble with both fields.

Can anyone help with the coding?

Thanks in advance.

View Entire Topic
Former Member
0 Kudos

hi.. yes, the batch is created in SM35.

there is a problem with this part of the code:

PERFORM bdc_field USING 'KOMFK-VBELN' "SD document number

it_display-vbeln.

the value from it_display-vbeln does not update komfk-vbeln. there is a value in it_display-vbeln.

Message was edited by: Charlene Tan

Former Member
0 Kudos

Please check if you have missed specifying the record number:

perform bdc_field using 'KOMFK-VBELN<b>(01)</b>'

it_display-vbeln.

Kind Regards

Eswar

Former Member
0 Kudos

Hi Charlene...is u again..hehe

your coding:

perform bdc_field using 'KOMFK-VBELN(01)'

it_display-vbeln.

I think your internal table values it_display-vbeln is overwriting the values in 'KOMFK-VBELN(01)'. When the coding is 'KOMFK-VBELN(01)', it means KOMFK-VBELN is always pointing on line item no 1. If you wish to pass your value to line item no 2, please use a counter and assign it to KOMFK-VBELN.