‎2011 Jul 14 8:46 AM
Hi,
I have created a BDC call transaction for XD01. It is running successfully however it gaves me error when Postal code is missing stating Postal code is missing but when I run manually i.e. without BDC then I runs successfully.
I dont know why it is happening like that. Please help...
Thanks
‎2011 Jul 14 8:58 AM
Hi,
My first suggestion will be, use BAPI_CUSTOMER_CREATE instead of BDC to avoid such problem.
Now coming to your problem on BDC, can you please check if the postal code field is getting auto-populated (mostly from parameter id, based on last input you used on XD01) during manual processing of the transaction? If yes, include BDC code to populate value in this field.
Regards,
Anid
‎2011 Jul 14 10:38 AM
hi,
execute your bdc in foreground and see where are you getting this error.
‎2011 Jul 14 10:41 AM
Hi Mengamin,
Please check the screen and it is fields how data is going. Watch carefully check boxes in fore ground mode and where and all you are pressing enter.Post if need help. If you want to create multi customers then go for batch input.
Hi Anid ,
As you told that bapi will open xd01 screen directly. It is not useful .
Regards,
Madhu.
‎2011 Jul 14 11:10 AM
Yes I have also executed in the foreground, it stucks to the same screen and gaving me error message "You have not entered a postal code or postal code for the post box". This error must not come as I think postal code is not a mandatory field.
Edited by: megamin79 on Jul 14, 2011 12:11 PM
‎2011 Jul 14 11:16 AM
I am creating new customers using existing customers. There is no postal code in the existing customer. Why BDC call is gaving error and not when I manually create the customer?
‎2011 Jul 14 11:19 AM
Hi,
If you are getting an error , that means postal code is a mandatory input field.CHeck your configeuration setting to confirm if its mandatory or not.
‎2011 Jul 14 11:20 AM
Hi,
I think postal code is not a mandatory field..
Did you checked whether you kept this as mandatory or not.Check this in customer master.
Regards,
Madhu.
‎2011 Jul 14 11:40 AM
Then it must gave error when I am executing it manually. Through BDC call transaction system is calling different screen number than from transaction XD01. Like in my case I have set a breakpoint where the code is getting stuck but when I run it throug XD01 manually system is not stopping the code at breakpoint.
Is it possible that the logic is different while in case running through BDC and through manually executing the transaction?
‎2011 Jul 14 3:57 PM
Make sure that the "Use central address management" checkbox is ticked in the first screen. It is normally hidden, but you should see it when creating a recording with SHDB.
Rob
‎2011 Jul 20 10:50 AM
You can use DEBITOR_BDCDATA FM to generate the BDC screens. You can get the logic on how to populate this table from FM ERP_IDOC_INPUT_DEBITOR
Edited by: Varun Maharshi on Jul 20, 2011 11:51 AM