Application Development 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: 

About BDC Session Method

former_member532868
Participant
0 Kudos

HI Experts

I am executing sales order (VA01) ZBDC function module in call transaction method then it will create both Foreground & Background Methods.It will execute successfully while giving longtext in sales order header data.

If I executes same above bdc in session method of background.it will show error.Here also giving Long Text.If I execute Foreground in session method then it will create successfully.

If I use SHDB creating new recording with bdc function module for va01 tcode with out taking text tab on sales order header level then I executes that function module in session method of both foreground & background it will generated sales order successfully.

Regards,

Hari

1 ACCEPTED SOLUTION

santosh_kumarm
Participant
0 Kudos

Hi ,

See that you are not calling any popup screen in background mode.

Use function module create_text to create the text. set the processing in 'E' mode and analyse the error

Regards

Santosh

4 REPLIES 4

Former Member
0 Kudos

Hi Prasad,

Can you tell me what is the error your getting in the session method.You can see it by double clicking and there will be detailed error description.

Or you can also use bdcmsgcoll table. Take a internal table of this table type and loop it iot gives you all the messgea that have occured during the BDC,you might find your error ther.

Hope it helps!

Much Regards,

Amuktha.

Former Member
0 Kudos

Hi,

Use error mode in the session method and then check if its working fine...

Regards

Siddarth

Former Member
0 Kudos

Hi hari

BDC will with some transactions give errors in background

better use this BAPI BAPI_SALESORDER_CREATEFROMDAT2

Pushpraj

santosh_kumarm
Participant
0 Kudos

Hi ,

See that you are not calling any popup screen in background mode.

Use function module create_text to create the text. set the processing in 'E' mode and analyse the error

Regards

Santosh