BAPI_RIUTING_CREATE

i  am using BAPI   *BAPI-ROUTING_CREATE' to upload Routing and Operation data.
In operation Structure i am passing three lilne items,but it is creating one one opeation for header.
how to upload multiple operaions(Line items) for a given group.
Thanks & Regards.
Avijit Khajanchi.

Hi Avijit,
use Control Level Processing in the program and your bapi will work fine. Below is code snippet for your reference.
*-----?item-sequence
*operation-group_counter = '1'.
      operation-activity = itab-activity.
      operation-control_key = itab-control_key.
      operation-work_cntr = itab-work_cntr.
      operation-description = itab-description.
      operation-plant = itab-plant.
*      operation-operation_measure_unit = 'EA'.
      operation-denominator = `1`.
      operation-nominator = `1`.
      operation-base_quantity = itab-base_quantity.
      operation-std_value_01 = itab-std_value_01.
      operation-std_value_02 = itab-std_value_02.
      operation-std_value_03 = itab-std_value_03.
      operation-std_value_04 = itab-std_value_04.
      operation-std_value_05 = itab-std_value_05.
      operation-std_value_06 = itab-std_value_06.
*      operation-purch_org = itab-purch_org.
*      operation-cost_elem = itab-cost_elem.
      operation-cost_relevant = 'X'."??????
      append operation.
      at end of material.
*-----?header
        task-task_list_usage = '1'.
        task-task_list_status = '4'.
**---->unit
        select single meins into task-task_measure_unit
               from mara
               where matnr = gt_itab-material.
*      task-task_measure_unit = 'EA'.
        task-description = gt_itab-description."'TEST ROUTING'.
        task-plant = gt_itab-plant.
        task-valid_from = sy-datum.
        task-valid_to_date = '99991231'.
        append task.
rgrds,
Yashwin

Similar Messages

Maybe you are looking for

  • Agent Issue In Obiee 11g

    In OBIEE 11G, how to send automatically one email for different level users for having a look different data by agent? For example: One report architeture: Region--------District---------Sales Region 1------District1--------100 ------------------Dist

  • Port 6800 is Shutting down for Reporting and Analysis Framework

    I have successfully (based on no errors in the log) installed and configured ReportingAnalysis and FR in Wintel 2008 and 11.1.2 environment but when services are started port 6800 and starts but shuts down after few minutes and get Namespace Process

  • JFrame Icon problem

    Hi I have manage to create a JFrame Icon & display it properly by running java <filename>.java it did show the frame & icon. But when i Put it into a JAR file, it cannot locate the Icon anymore (the icon folder are also in the jar file). How do I ask

  • USB Flash Drive is seen by Mac but will not mount

    I use an HP 32GB flash drive, formatted exFAT, to transfer files. My Windows PC and other MacBooks in my house running older Mac OS X versions read this flash drive just fine. This flash drive used to show up on the desktop of my newest MacBook Pro 1

  • How to handle AMC through service contract

    Dear friends, I have an AMC scenario. There is a service contract for AMC of plant equipments. How can we handle payment of the parts replaced by the vendor during the AMC period. The service contract is only for the services. And the cost of the par