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

ALE-BAPI Query (swo_create,swo_invoke)

Former Member
0 Likes
524

Hello,

Iam trying to work with ALE-BAPI interface ie Asynchronous approach...

1) I read from the documentation that i need to use SWO_INVOKE and SWO_CREATE to instantiate object and fire BAPI but Iam not able to understand the level of functionality of these modules can any one explain...?

2) Iam trying to use Standard BAPI(BAPI_GOODSMVT_CREATE) so already there is a BAPI ALE interface created in BDBG so there is a outbound function module(ALE_GOODSMVT_CREATE)

Business obj BUS2017 so i created a distribution model and added BAPI to it... generated partner profile...

Iam not sure how to trigger the BAPI to create the idoc..If i call swo_create and swo_invoke will solve the issue...?

Please help...

Thanks

Larry

1 ACCEPTED SOLUTION
Read only

Peter_Inotai
Active Contributor
0 Likes
436

Hi Larry,

1) I don't you have to do anything with this, probable it happens in the background. From the other hand method CreateFromData is Instance-indepndt, so you don't need instantiate.

2) I think you have to change the customizing, so the during material creation the idoc is generated. I never tried generate Idoc for material documentation outbound, but generally the idoc generation is triggered by the application. For example for Sales order and Invoice it's controlled by the output management.

I'd suggest to try to write a small program, where you fill some data in this FM and call BAPI_TRANSACTION_COMMIT after it. It should generate the idoc, you can check in transaction BD87.

Regards,

Peter

Hello,

Iam trying to work with ALE-BAPI interface ie Asynchronous approach...

1) I read from the documentation that i need to use SWO_INVOKE and SWO_CREATE to instantiate object and fire BAPI but Iam not able to understand the level of functionality of these modules can any one explain...?

2) Iam trying to use Standard BAPI(BAPI_GOODSMVT_CREATE) so already there is a BAPI ALE interface created in BDBG so there is a outbound function module(ALE_GOODSMVT_CREATE)

Business obj BUS2017 so i created a distribution model and added BAPI to it... generated partner profile...

Iam not sure how to trigger the BAPI to create the idoc..If i call swo_create and swo_invoke will solve the issue...?

Please help...

Thanks

Larry

1 REPLY 1
Read only

Peter_Inotai
Active Contributor
0 Likes
437

Hi Larry,

1) I don't you have to do anything with this, probable it happens in the background. From the other hand method CreateFromData is Instance-indepndt, so you don't need instantiate.

2) I think you have to change the customizing, so the during material creation the idoc is generated. I never tried generate Idoc for material documentation outbound, but generally the idoc generation is triggered by the application. For example for Sales order and Invoice it's controlled by the output management.

I'd suggest to try to write a small program, where you fill some data in this FM and call BAPI_TRANSACTION_COMMIT after it. It should generate the idoc, you can check in transaction BD87.

Regards,

Peter