Skip to Content
0
Dec 07, 2022 at 11:32 AM

Loading program for networks, operations, relations, etc with BAPI PS.

202 Views Last edit Dec 07, 2022 at 10:55 PM 2 rev

Dear SAP

Could you give us an advice please? in a s4hana v2020.

We can create this project using this CNMASSCREATE transacton, very very useful, but in SAP does not exist a loading program for networks, activity :internal, costs,external, relations, etc. or Could exist in s4hana or not yet?

image.png

And we need to create networks with activities, relations, etc on the project. For example, we have the following this excel:

image.png

We have a zprogram using BAPI_NETWORK_MAINTAIN but this BAPI does not has parameters "extensionin", "extensionout". In some cases, we need to include some “z” field. Then, in first time we create orders and activities and in a second time we change activities using BAPI_BUS2002_ACT_CHANGE_MULTI. The expected result is perfect.

image.png

However, in some cases, I can observe that the system creates networks correctly but it can not possible to update in consecuence.

image.png

The programmer ask me What does he can do on this? The following:

image.png

and then this very useful program calls the following functions from the "treat_network_activity" rutine or perform, the following:

1.CALL FUNCTION 'DEQUEUE_ESORDER' ==> pass for the network number..

2.CALL FUNCTION 'BAPI_PS_INITIALIZATION'

3.cl_abap_container_utilities=>fill_container_c => using (BAPI_TE_NETWORK_ACTIVITY)

4.CALL FUNCTION 'BAPI_BUS2002_ACT_CHANGE_MULTI', it gets the result correctly on “e_return”

5. But BAPI_PS_PRECOMMI => in some cases, it does not get a good result from “et_return”.

My question is the following:

How long do we have to wait before we can update network activities? Or Could you give us any suggestion for this behavior?


All recommendations are welcome!

Best regards

Gustavo

http s://people.sap.com/gustavo.hermozaazaldegui#overview

Attachments

image.png (232.4 kB)
image.png (19.9 kB)
image.png (352.5 kB)
image.png (270.9 kB)
image.png (286.3 kB)