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 mapping

Former Member
0 Likes
531

hi experts,

I want one clarification from u, what my requirement is there are multiple delivery numbers in the internal table g_t_dochdr. i want to move those delivery numbers into the transaction field ROIGSI-doc(these fields are in table control with dosnumber field) how should i proceed for this requirement. see below coding as per that can u give me suggestions.

loop at g_t_dochdr.

perform bdc_field using 'ROIGSI-DOC_NUMBER(01)'

g_t_dochdr-b_doc_number. "'408357039'.

perform bdc_field using 'ROIGSI-LOAD_INDI(01)'

'X'.

perform bdc_field using 'ROIGSI-DISCH_INDI(01)'

'X'.

endloop.

1 REPLY 1
Read only

Former Member
0 Likes
427

Hi,

DATA: N(2) TYPE N VALUE 0,

STR1 TYPE STRING VALUE 'ROIGSI-doc(',

STR2 TYPE STRING.

LOOP AT g_t_dochdr.

N = N + 1.

CONCATENATE STR1 N ')' INTO STR2.

perform bdc_field using STR2 g_t_dochdr-b_doc_number.

ENDLOOP.

and use the same logic ( concatenate ) for the fields ROIGSI-DISCH_INDI &

ROIGSI-LOAD_INDI.