cancel
Showing results for 
Search instead for 
Did you mean: 

RAP: Unable Create multiple Outbound Delivery Splits from one Sales Order

Mallik_Nannuri
Newcomer
0 Kudos
150

G"day

We are busy Developing an urgent RAP App for to Create multiple Outbound Deliveries from one single Sales Order with one item.

For Example: From a single Sales Order Quantity with 400 BAGS( 1 item only)

Business require to Automatically Create 40 Outbound Deliveries(1 item each ) with Quantity = 10 BAGS each

We are having the below Technical challenges, can you please guide us:

  • Unable to use BAPI "BAPI_OUTB_DELIVERY_CREATE_SLS" with in the unmanaged Create or Save Methods.(also tried using DESTINATION "NONE"
  • Unable pass a specific Delivery Quantity to the BO "I_OutboundDeliveryTP" Create Method.
  • Unable to create multiple Outbound Deliveries within one Unmanaged Create/save Method.

I really appreciate your assistance in this regard.

Thank you

 

Accepted Solutions (0)

Answers (1)

Answers (1)

DequanXu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

Developing a RAP application for creating multiple outbound deliveries from a single sales order with one item can indeed involve several technical challenges. Here are some steps and considerations that might help you:

Challenges and Possible Solutions

1. Using BAPI ‘BAPI_OUTB_DELIVERY_CREATE_SLS’ within Unmanaged Methods SAP® Digital Supply Chain Logistics in SAP S/4HANA

  • Problem: Unable to use BAPI within unmanaged Create or Save methods.
  • Solution: Ensure that the correct destination is specified. If ‘DESTINATION NONE’ is not working, verify the system and connection configurations. Consider creating a wrapper function module around the BAPI to handle errors more gracefully.

2. Passing Specific Delivery Quantity

  • Problem: Unable to pass specific delivery quantity to Business Object ‘I_OutboundDeliveryTP’ Create Method.
  • Solution: You may need to map the quantity explicitly within the RAP framework. Delivery Management - Creating Multiple Outbound Deliveries Ensure that your method parameters are set up correctly to accept and utilize the quantity value. Validate the input data and ensure it is accessible to the Create Method.

3. Creating Multiple Deliveries

  • Problem: Unable to create multiple outbound deliveries within one unmanaged Create/save Method.
  • Solution: Consider looping through the required quantity split logic within your method. You can implement a batch processing technique or multiple API calls to handle separate creation transactions for each delivery.

Recommendations

  • Testing & Debugging: Use tracing and debugging tools to identify where failures occur in the RAP framework.
  • Error Handling: Implement robust error handling in your RAP methods to catch and resolve issues. This may include logging and returning informative error messages.
  • SAP RAP Documentation: Refer to SAP’s official documentation and community for guidelines specific to RAP architecture. They may have examples or discussion threads that address similar issues.

Best regards, Dequan Xu