2016 Apr 29 4:49 AM
Hi,
I have a situation where material (specific type )created via bdc using 'MM01' transaction is not working properly (earlier it was), however material created via transaction 'MM01' directly is working.
I didn't understand the issue for specific type material.
Please Help me out.
Regards,
Ravi Pratap Singh
2016 Apr 29 11:20 AM
Thanks for your reply.
the code is.
PERFORM BDC_DYNPRO USING 'SAPLMGMM' '0060'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RMMG1-MATNR'.
PERFORM BDC_FIELD USING 'RMMG1-MATNR'
YGENERATOR-GENRATOR_ID. "Material Code
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RMMG1-MTART'.
CALL TRANSACTION 'MM01' USING BDCDATA MODE 'A'.
COMMIT WORK AND WAIT.
WAIT UP TO 5 SECONDS.
REFRESH : BDCDATA.
CLEAR BDCDATA.
through BDC program we pass Material Number rest exercise done manually, entry exist with user. After Entrer all the details when user 'SAVE' it will not save in MARA Table. Program Exit without any message. This activity is happening for few type of materials only, few created by same process.
I checked message during BDC run, no creation message exist. But material directly created via 'MM01' and save.
Kindly suggest.
2016 Apr 29 5:08 AM
hi, You said. however material created via transaction 'MM01' directly is working.
But That specific type is working or not you had not mentioned.
2016 Apr 29 5:08 AM
Hello
What error / issue you are encountering in MM01 BDC?
Please share some details with screen shots.
Shubham
2016 Apr 29 5:09 AM
You have to track error message log And Check it any views are added Recently.
In development run it in Foreground then you can know what is the problem.
2016 Apr 29 5:13 AM
While debugging Put a breakpoint just before using Call Transaction statement in your program.
And compare the internal table of BDCDATA with the recording done using SHDB tcode.
You will find the source of your problem can resolve.
2016 Apr 29 10:31 AM
Hi Ravi,
Please specify the Error message.
and the method of BDC call transaction or Session ??
Regards
Sunil
2016 Apr 29 11:23 AM
Hi Sunil,
No error message received only success & warning message received,
Material creation message also not received.
Regards,
Ravi Pratap Singh
2016 Apr 29 10:45 AM
Hi,
Go to SM35 and execute the BTCI in foreground mode for see where is the problem and analyse with protocol tab.
Then modify your BTCI in consequence.
The screens are probably different depending on the specific type .
In this case it is necessary that you write different BTCI by specific type.
Cordially,
2016 Apr 29 11:20 AM
Thanks for your reply.
the code is.
PERFORM BDC_DYNPRO USING 'SAPLMGMM' '0060'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RMMG1-MATNR'.
PERFORM BDC_FIELD USING 'RMMG1-MATNR'
YGENERATOR-GENRATOR_ID. "Material Code
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RMMG1-MTART'.
CALL TRANSACTION 'MM01' USING BDCDATA MODE 'A'.
COMMIT WORK AND WAIT.
WAIT UP TO 5 SECONDS.
REFRESH : BDCDATA.
CLEAR BDCDATA.
through BDC program we pass Material Number rest exercise done manually, entry exist with user. After Entrer all the details when user 'SAVE' it will not save in MARA Table. Program Exit without any message. This activity is happening for few type of materials only, few created by same process.
I checked message during BDC run, no creation message exist. But material directly created via 'MM01' and save.
Kindly suggest.
2016 Apr 29 12:12 PM
I agree with Nikhil, COMMIT WORK does nothing related to the CALL TRANSACTION. If you want to wait, do call the transaction with "update mode" (see abap documentation) set to 'S' or 'L' (synchronous/local execution).
Anyway, the COMMIT WORK is not related to your issue, which is maybe due that by default a BDC stops at any COMMIT WORK executed inside the call transaction (not related to your commit work), without message. To continue the bdc, you need to call transaction with OPTIONS FROM, with field NOBIEND='X' (no batch input end (in case of commit work)).
2016 May 04 12:56 PM
Thanks to All.
I used RACOMMIT = 'X' options to resolve my issue.
Thanks.
Ravi Pratap Singh
2016 Apr 29 11:40 AM
Hi Ravi,
Remove below part and try.
COMMIT WORK AND WAIT.
WAIT UP TO 5 SECONDS.
In BDC commit work will not work I tried once that you can try this out.
Hope this will work for you.
Regards,
Nikhil