2015 Nov 12 9:49 AM
Hello Gurus,
Working BDC for transaction ME11 and ME12. The requirement is if the plant is not exist in the flat file then plant should be mandatory. But in transaction level plant is not mandatory field. If they set plant is mandatory then it will effect other BDC programs, so I need to validate in BDC program and if plant does not exist then that particular row should be in error record. Please help me on this.
Thanks and Regards,
Muralikrishna Peravali
Hello Gurus,
Working BDC for transaction ME11 and ME12. The requirement is if the plant is not exist in the flat file then plant should be mandatory. But in transaction level plant is not mandatory field. If they set plant is mandatory then it will effect other BDC programs, so I need to validate in BDC program and if plant does not exist then that particular row should be in error record. Please help me on this.
Thanks and Regards,
Muralikrishna Peravali
2015 Nov 12 9:57 AM
2015 Nov 12 10:31 AM
Hello Raymond,
Thank you for reply. Sorry I didn't get your solution, can you please elaborate?
Thanks and Regards,
Muralikrishna Peravali
2015 Nov 12 9:58 AM
Hi.
I suggest you to separate execution.
Two tables:
- 1 with plant that exist;
- 2 with plant that doesn't exist.
After you can launch BDC 1 in background mode with errors registration and BDC 2 in foreground with dynpro selection.
Or you can create an enhancement for ME11/ME12 to manage mandatory field Only for your report.
Hope to help
Bye
2015 Nov 12 10:34 AM
Hello Roberto,
Thank you for your reply. I will try to implement your suggestion.
Thanks and Regards,
Muralikrishna Peravali
2015 Nov 20 1:02 PM
Hello Gurus,
I have managed to skip the record by using CONTINUE statement in BDC loop if there is no entry for mandatory field. Is this approach correct or any suggestion on this?
Thanks and Regards,
Muralikrishna Peravali
2015 Nov 20 1:45 PM
Hi Muralikrishna,
Just dont skip the record. Capture that Record as well in the type of BDCMSGCOLL and later you can add that in your BDC Session Messages. You need to know which records you have not proceesed.
Cheers,
Kripa Rangachari.
2015 Nov 20 2:06 PM
I would create two batch input sessions - one with the records that are not in error. This one would be processed normally. The other one would contain the records with no plant. This one would not be processed automatically, but would have to be processed by the user who would then fix the plant.
Rob
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |