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 uploading do not process the next record why?

Former Member
0 Likes
2,865

hi friends,

       iam using bdc uploading program for fd32(credit management change) transaction,. if iam uploading 4 records, loop executed 4 times but first record only 4 times running, iam clear the itab also, it is not working.

  please give me the suggestion

1 ACCEPTED SOLUTION
Read only

koolspy_ultimate
Active Contributor
0 Likes
2,572

Hi,

at the end of the loop you need to refresh bdcdata .

Regards,

Madhumahesh.

hi friends,

       iam using bdc uploading program for fd32(credit management change) transaction,. if iam uploading 4 records, loop executed 4 times but first record only 4 times running, iam clear the itab also, it is not working.

  please give me the suggestion

22 REPLIES 22
Read only

koolspy_ultimate
Active Contributor
0 Likes
2,573

Hi,

at the end of the loop you need to refresh bdcdata .

Regards,

Madhumahesh.

Read only

0 Likes
2,572

ou MUST refresh internal table BDCDATA after each transaction call so either at start or end of the code in the LOOP AT IT_TAB

Regards,

Raymond

Read only

Former Member
0 Likes
2,572

Hi,

I did not find open and close group in your code . Check and revert.

Regards,

Rahul Singh

Read only

0 Likes
2,572

NB: He used a CALL TRANSACTION, no group management required, but refresh of bdcdata required.

Regards,

Raymond

Read only

0 Likes
2,572

Yes, You are right ..

Read only

former_member15255
Active Participant
0 Likes
2,572

Hello Priya,

Suggestion of Madhumahesh is correct.

Regards

Suresh Nair

Read only

0 Likes
2,572

This message was moderated.

Read only

0 Likes
2,572

This message was moderated.

Read only

0 Likes
2,572

This message was moderated.

Read only

0 Likes
2,572

This message was moderated.

Read only

Former Member
0 Likes
2,572

Hi there!

Every field you are using in PERFORM BDC, make sure it is a field of structure 'TY_FD32', since you are looping internal table IT_TAB. So while passing it has to be passed using work-area 'WA_TAB', no other work area and not  passing in direct 'tablename-fieldname' format.

Thankyou,

Khushboo

Read only

0 Likes
2,572

This message was moderated.

Read only

0 Likes
2,572

i can't understand

Read only

0 Likes
2,572

First please try what    and    has suggested, to refresh internal table BDCDATA. If that is not solving your issue, please see if you are passing all your fields (KNKA-KLIMG, KNKA-KLIME, etc) in 'PERFORM BDC_FIELD ' using WA_TAB and not directly with tablenames.

Regards,

Khushboo

Read only

Former Member
0 Likes
2,572

Hello,

In FORM GET_DATA,

LOOP AT IT_TAB INTO WA_TAB.

* Your code....

CLEAR : USER, HIGHLIMIT, WA_TAB, KLIMK, C_KLIMK .

* Clear BDC data table....

CLEAR: BDCDATA,

             BDCDATA[].

ENDLOOP.

Regards,

Vj

Read only

Former Member
0 Likes
2,572

Hi Priya,

Please clear work area and refresh the table.

in the

FORM BDC_TRANSACTION  USING  TCODE.

  CALL TRANSACTION TCODE USING BDCDATA[]
                       MODE   'A'
                       UPDATE 'A'
                       MESSAGES INTO IT_MESSTAB[].

After Call transaction write clear and refresh.

Clear :BDCDATA.

Refresh: BDCDATA[].

Hope this helps.

Regards,

Amit

Read only

Former Member
0 Likes
2,572

Hello Priya,

     In the form routine get_data, you are constructing the BDC data and calling the BDC transaction. Immediately after calling the transaction, you will have to clear the work area and the table.

After this code piece in you BDC_TRANSACTION routine,

  CALL TRANSACTION TCODE USING BDCDATA[]

                       MODE   'A'

                       UPDATE 'A'

                       MESSAGES INTO IT_MESSTAB[].

insert this piece of code,


CLEAR: BDCDATA.

REFRESh: BDCDATA[].

This will solve your issue.

Please revert if you have any questions.

Best Regards,

Praveenkumar T

Read only

Former Member
0 Likes
2,572

This message was moderated.

Read only

Former Member
0 Likes
2,572

This message was moderated.

Read only

Former Member
0 Likes
2,572

Thanks to all, i got the result

thread is closed

Read only

0 Likes
2,572

And what was the exact mistake? Just for my future reference.

Regards,

Khushboo

Read only

0 Likes
2,572

actually my requirement is different, but here my mistake only refresh the BDCDATA.