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 call transaction error

sameer_mehta
Participant
0 Likes
1,152

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

10 REPLIES 10
Read only

Former Member
0 Likes
1,100

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

Read only

Former Member
0 Likes
1,100

hi,

execute your bdc in foreground and see where are you getting this error.

Read only

madhu_vadlamani
Active Contributor
0 Likes
1,100

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.

Read only

0 Likes
1,100

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

Read only

0 Likes
1,100

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?

Read only

0 Likes
1,100

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.

Read only

0 Likes
1,100

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.

Read only

0 Likes
1,100

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?

Read only

0 Likes
1,100

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

Read only

0 Likes
1,100

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