2013 Apr 16 5:15 AM
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
2013 Apr 16 5:26 AM
Hi,
at the end of the loop you need to refresh bdcdata .
Regards,
Madhumahesh.
2013 Apr 16 5:26 AM
Hi,
at the end of the loop you need to refresh bdcdata .
Regards,
Madhumahesh.
2013 Apr 16 7:58 AM
Madhumahesh T is right, you 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
2013 Apr 16 5:34 AM
Hi,
I did not find open and close group in your code . Check and revert.
Regards,
Rahul Singh
2013 Apr 16 8:00 AM
2013 Apr 16 8:20 AM
2013 Apr 16 5:35 AM
Hello Priya,
Suggestion of Madhumahesh is correct.
Regards
Suresh Nair
2013 Apr 16 5:42 AM
2013 Apr 16 5:42 AM
2013 Apr 16 5:42 AM
2013 Apr 16 5:42 AM
2013 Apr 16 5:58 AM
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
2013 Apr 16 7:05 AM
2013 Apr 16 7:05 AM
2013 Apr 16 8:25 AM
First please try what Madhumahesh T and Raymond Giuseppi 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
2013 Apr 16 6:47 AM
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
2013 Apr 16 8:26 AM
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
2013 Apr 16 9:59 AM
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
2013 Apr 16 10:05 AM
2013 Apr 16 10:05 AM
2013 Apr 16 10:05 AM
2013 Apr 16 10:47 AM
And what was the exact mistake? Just for my future reference.
Regards,
Khushboo
2013 Apr 16 12:14 PM
actually my requirement is different, but here my mistake only refresh the BDCDATA.