cancel
Showing results for 
Search instead for 
Did you mean: 

CIF Planned Orders created via BAPI_MOSRVAPS_SAVEMULTI3

0 Kudos

Hi SAP Experts,

I would like to ask for your inputs on the issue I'm currently having.

Here's the scenario:

When I create orders using /SAPAPO/RRP3, it is automatically transferred to the ECC system and changed the order number with a new one.

However, when I create orders using BAPI_MOSRVAPS_SAVEMULTI3, it creates the orders in APO but these orders are not transferred to ECC.

Can you give me your thoughts on this issue?

Thank you,

Jo Seczar

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Jo.

As a default behavior, the BAPI does not create transfer events for the orders. If you want them to be transferred, please, make sure that importing parameter EVENT_CONTROL is set to 1 when calling the BAPI.

Regards,

Tiago

0 Kudos

Thank you Tiago for your input.

I have added the importing parameter EVENT_CONTROL with a value 1, however the planned orders are still not transferred.

In /SAPAPO/CCR, it return message 153, saying the order only exists in APO.

Here's what I input on the BAPI:

      CALL FUNCTION 'BAPI_MOSRVAPS_SAVEMULTI3'

        EXPORTING

          logical_system         = logsys

          order_type             = ordtype

          ext_number_assignment  = space

          commit_control         = c_commit3

          plng_version           = plvers

          check_source_existence = checkppm

          event_control          = '1'

        TABLES

          order_head             = ordhead

          order_head_x           = ordheadx

          cfg_headers            = cfg_headers

          cfg_instances          = cfg_instances

          cfg_values             = cfg_values

          mapping_data           = i_mapping_data

          extension_in           = extension_in

          return                 = return_tmp.

Thank you for your help.

Jo

rupesh_brahmankar3
Active Contributor
0 Kudos

Hi Jo Seczar,

Are you able to CIF manually created (without BApi) orders to ECC-R/3?

Please check APO-CIF distribution criteria must be set correctly, so that events can be transferred to an (R/3) system.

Active integration model should be there for Order.

Also valid source of supply should be there in order.

Note also that it is very important to use the correct logical source system (field LOGICAL_SYSTEM) that other logical systems events are sent to.The logical system specified must be in the same SAP system group as the R/3 System.

In APO Customizing transaction /sapapo/rrpcust1,  Transfer to R/3 In-House Production- Always Create transfer Event.

Also check the CIF queues if any?

Regards,

R.Brahmankar

0 Kudos

Hi Rupesh,

Thank you for responding.

Yes I can be able to CIF manually created orders to ECC-R/3.

Logical system I provided in the BAPI is also the APO system.

Transfer to R/3 in-house production is also set to "Always Create Transfer Event".

There are no enteries in the CIF queues.

I observed the behavior of the issue, may it can lead to something:

  • First if I use BAPI create the planned order
  • Then I go to /SAPAPO/RRP3, and refresh. The order number does not change, hence it is not transferred across
  • So, still in RRP3, I changed to "edit" mode, double click that same order and change any field, e.g. ticking or unticking the "Output fixed"
  • After saving, the order number changed and the order is sent across.
  • Also if I performed an ATP Check on the order in RRP3, the order is also sent across

Thanks,

Jo

0 Kudos

Hi Rupesh,

I revisted my code and it is now working.

I indicated a wrong commit_control. changed it to 'E' with event_control = '1' and my problem is now solved thanks to you!

Here's my code, might be helpful to some who'll encounter same issue:

      CALL FUNCTION 'BAPI_MOSRVAPS_SAVEMULTI3'

        EXPORTING

          logical_system         = logsys

          order_type             = '5'

          ext_number_assignment  = space

          commit_control         = 'E'

          plng_version           = plvers

          check_source_existence = checkppm

          event_control          = '1'

        TABLES

          order_head             = ordhead

          mapping_data           = i_mapping_data

          return                 = return_tmp.

Cheers,

Jo

Answers (1)

Answers (1)

thamizhchelvan_gunasekara
Active Participant
0 Kudos

Hi,

Check the table /sapapo/dmcp whether you can able to see the new planned order entries , if so push these orders through the transaction /sapapo/c5.

BR

Thamizh