Skip to Content
0
Former Member
Dec 06, 2006 at 12:36 AM

Handling FROM column when adding records to GS01

57 Views

Hi,

I am writing a BDC for transaction code GS01. I did a recording from SM35 and there is a section of code that I am not sure how would I approach it:

perform bdc_field using 'RGSBL-FROM(01)'

record-FROM_01_008.

perform bdc_field using 'RGSBL-FROM(02)'

record-FROM_02_009.

perform bdc_field using 'RGSBL-FROM(03)'

record-FROM_03_010.

perform bdc_field using 'RGSBL-FROM(04)'

record-FROM_04_011.

FROM varies in number and I think I can't really hardcode this in the program. How would I handle this for varying number of records to be added to the FROM column without the (nn)?

Thanks,

Will