Handling Multiple Production Lines

I am implementing OPM R12 for Cement Industry. Our client has 7 production lines and needs to create batches and production plan for each production line. Can anyone suggest how to do this by creating a single Inventory Org? Or is creating multiple Inventory Orgs the only solution?
*Note:- Our client does not have different sub-inventory for each production line. There is a common sub-inventory for each production line.
Thanks,
Birju

Hi,
You wouldn't want to create multiple inventory organisations.
The best way you can achieve what you need is to group all the plant resources in each production line into a resource group. For example we group all our packing machines into a resource group called Packaging. This means in planning (ASCP) we can view the plan by resource group.
OPM batches are specific to a recipe selected, so I guess the name of your routing should reflect the name of the production line.

Similar Messages

  • Multiple schedule line and reschedule for product selection

    Hi,
    Is it possible to mainatine multiple sechedule line for sales order where product selection is active
    Let me explain the problem in detail.
    We are using product selection functionality while creating sales order. Say for example in VB11 transaction I have maintained A= A1, A2 and A3. Where A1 has stock 50, A2 has stock 30, A3 has stock 20. Suppose my sales order is 150 for material A. The reason used is 0004 'automatic'. So while creating the sales order, confirmed qty for A1=50, A2 =30 and A3
    = 20. I have unconfirmed qty. 50. for this scenario, I need to enable a
    partial delivery, 1st I need to let the customer know when my 100 pcs going to be delivered and 2nd when my balance 50 pcs going to be delivered. So in the sales order I need to maintain two schedule line , one for
    confirmed 100 and another for unconfirmed 50. I am not able to do this.
    I can maintain only one schedule line per main item and at the sub item
    level not possible to maintain.
    The second problem is that, when I get stock for unconfirmed 50, I can
    not reschedule. can anyone please help to solve this issue?
    Regards,
    Beena

    goto item and doublle click on item and goto schedule lines and chenage the shedule lines..
    wat i know is by avaiblity check it propose the delievry dates of items...
    goto MM02 and mrp 1.. you can give there days to producee..
    OR doc type propose delivery dates.. lead days...
    hope it helps
    you
    ramki

  • Particular sales order of the same line item hv created multiple production

    sir,
    I am having a problem in MD04. A particular sales order of the same line item hv created multiple production order.and continously planning is going on... I didn't get why it happens.
    Will u please suggest me what should i do in this case?
    Regards
    Meenu

    Hello sir,
    yes, ofcourse, for the finished material have the BOM with some semifinished productes which are to be produced .
    In co02 , we can go through the collective production order.
    One more thing is that, in the multiple production order date(scheduling date) shows in forward(future dates).
    For ex:09-05-2010.
    Regards
    Meenu

  • How to handle multiple line items in lsmw

    hi all,
    how can i handle multiple line items in lsmw either by using direct input method or BDC recording.
    first preference is Bdc recording in lsmw . can u tell me the steps in detail.
    thanks,
    harini.c

    Hi Harini,
    Check this link.
    BDC - Header with multiple line items.
    Regards,
    Arun

  • Multiple production orders for sales order line item

    hello Guru's
    In our case Requirements are created in 2 ways
    Case 1:
    1)     Sales Orders are created at Plant level with schedule line category CP
    2)     Sales Orders are created at Depot level
    In the above mentioned 2 cases the requirements are taken as inputs and the process is carried at plant level 
    Step 1: Automated MDO3.
    Sales Orders are created if there is short fall of the Quantity at the Depot and Plant Sales Orders are raised against the plant for which the requirements are generated and MRP run is carried out at Single Item single level.
    Step 2:
    For the results of the step1 are then transferred and Production orders are created for the planned Orders.
    The issues is whenever there is change in confirmed quantity or change in confirmed  date the requirements are considered again as inputs and the multiple production orders are getting generated for the single requirement
    Actually we dont want this to have multiple production orders
    regards

    Hi,
    Can you let us know the strategy group used for this material ? If i understood the query correctly, each time there is a change in the sales order (i.e. increase in qty), there is a triggering of new planned orders to meet that demand.
    Regards,
    Vivek

  • How to create multiple schedule lines for configurable products

    Hi -
    We have enabled variant configuration and would like to have multiple scheudule lines created , but it seems that only one line is avaialble, is there any way to configure the use of multiple schedule lines? 
    Note - we are not using KMAT material types, rather triggering a unique kit compoments within Sales BOM.
    We have been able to make the necessary adjustments to allow the creation of the Scheduling agreement and have the BOM explode correctly, but just am not able to trigger multiple sched lines.
    thanks
    Bill

    Your context node shall contain all these fields like country,city,etc as different attributes.so in your view configuration,add all these fields whatever you require from the AVAILABLE FIELDS section to the DISPLAYED FIELDS section.NOw all these attributes would be added in diff rows.What you need to do is,select the first attribute,lets say COUNTRY,click on this attribute and then on the buttn SHOW FIELD PROPERTIES.Thsi will show you the label name etc.Here you change the label name to NATIONALITY.Also ,it will show you the row no,cloumn span of the field and column span of the label.You need to reduce the column span of the field value.Ie if the column span is from D TO H,reduce it from D TO F.Now goto the next attribute eg CITY and in the same way,goto the attribute properties.Here ,There is a check box SHOW LABEL,uncheck this,and now goto the row no and the cloumn span.Make the row no same as that of the COUNTRY FIELD.The column span should howevrbe statring from where the column span of country field ended.Ie Teh column apsn of counrty field ended at F .So for CITY,the column span should start from G to amybe H.Now this is how you need to accomodate the other fields also in the same row,by changing the row no and column span in the field properties.
    Suvidha

  • Service ticket process caters to multiple product scenario ?

    Hi All,
    We have an existing business process where in we use IC service ticket to trouble shoot customers problems.
    The process is
    a) Agent confirms the customer
    b) Agent registers the product or confirms the registered product.
    c) Agent creates the service ticket
    When a customer calls in with issues for multiple products then agent has to create multiple service tickets and customer has to remember multiple tickt ids in order to follow up.
    This leads to a bad customer experience.
    So is there any way we can have multiple products in service ticket? So that agent gives one single ticket id to customer and also agent maintains one single ST to track.
    We thought of using complaints,but its too risky for us to change the entire business process at this time.
    If we use service order then also the same since IC service order UI is same as IC ST ui,.
    Apart from customization is there any OOTB  way to deal this use case ?
    Thanks
    AMol

    Hi Amol,
    You can definitely add multiple products once the Service Order is created. However if your requirement is to confirm multiple products at the time of registration then it would require you to tweak a lot of code around confirm. Also, you will have make amendments to the UI on the Account Identification screen to handle this as well.
    I hope it helps.
    Thanks,
    Amrut

  • Posting multiple VAT lines through BAPI

    At my customer we are importing vendor invoices from a third party system into SAP. For this we use BAPI "BAPI_INCOMINGINVOICE_CREATE1"
    The third party system also calculates the TAX amounts. Therefore, we need to be able to post multiple VAT lines for one invoice line item. This has to do with the fact that we have deductible and non deductible taxes. To do this we would like to use the TAXDATA Table from the BAPI. However, when we post multiple lines here for one Tax Code, we get an error for duplicates in RBTX.
    Has anyone ever dealt with this problem before? How can we post multiple tax lines for a single invoice tax line, either using the above BAPI or using a workaround. I do have to mention that using the BAPI for the initial posting is needed since we have to do with certain Dutch legislation that can only be handled using this BAPI.
    Regards,
    Sjaak van den Berg

    I guess u need to add
    POSCHEDULEX-PO_ITEMX = X.
    before appending the table Parameter POSCHEDULEX
    One for each append statement on table internal table POSCHEDULEX
    Regards
    Alok Pathak

  • How to handle multiple DEV clients in CHARM

    Experts:
    We have many DEV clients  in our ECC landscape.
    Some customizing needs to be imported into all DEV clients.
    In order to use CHARM to do above import into different  DEV clients, I want to define some logical components with only
    2 systems, i.e. source DEV client and target DEV client (e.g.  DEV100->DEV200).  Then link this logical component to a
    project.
    In this way we will define  many projects (logical componets, maintenance cycles)  depending on how path combinations existing on  the STMS setup.
    Could you help verify whether this will work as expected? Because I did not configure 2 system  tp for CHARM before therefore I am not sure.
    Thanks a lot!

    Hi,
    you should take a look to those 2 threads especially the second one IF those other clients are USED FOR CREATING TR:
    Re: Multiple clients in DEV and QA for CHARM setup
    Change Request Management for multiple production clients
    IF the other clients should just be synchronized with custo done in the first one then the lines above will help you.
    Important fact "A Solman Project can have more than a logical component."
    So for example in your case if you are trying to update DEV 200 with DEV 100 when importing TR to quality system (200 must be a kind of reference client for you),
    you ll simply have to declare a Solman Project containing the core logical component (for ex: DEV 100 -> QUAL 100 -> PRD 100) AND another one that ll let you import in DEV 200 (DEV 100 -> DEV 200).
    In your generated tasklist you'll then find DEV 200 under Target Systems node; like if it was a QUAL system AND you ll find tasks as "Import Transport Requests" available for DEV 200.
    As a prerequesite you MUST declare DEV 200 in your logical component as a Target Role System and not as a Source Role System (like DEV 100) (Transaction SMSY). Otherwise Solman will understand that DEV 200 will be used only for creating and releasing TR and it will be considered like DEV 100
    Hope it helps
    Keep me updated with how it goes
    Regards
    Khalil

  • How to handle multiple save exceptions (Bulk Collect)

    Hi
    How to handle Multiple Save exceptions? Is it possible to rollback to first deletion(of child table) took place in the procedure.
    There are 3 tables
    txn_header_interface(Grand Parent)
    orders(parent)
    order_items (Child)
    One transaction can have one or multiple orders in it.
    and one orders can have one or multiple order_items in it.
    We need to delete the data from child table first then its parent and then from the grand parent table.if some error occurs anywhere I need to rollback to child record deletion. Since there is flag in child table which tells us when to delete data from database.
    Is it possible to give name to Save exceptions?
    e.g.
    FORALL i IN ABC.FIRST..ABC.LAST SAVE EXCEPTIONS A
    FORALL i IN abc.FIRST..ABC.LAST SAVE EXCEPTIONS B
    if some error occurs then
    ROLLBACK A; OR ROLLBACK B;
    Please find the procedure attached
    How to handle the errors with Save exception and rollback upto child table deletion.
    CREATE OR REPLACE
    PROCEDURE DELETE_CONFIRMED_DATA IS
    TYPE TXN_HDR_INFC_ID IS TABLE OF TXN_HEADER_INTERFACE.ID%TYPE;
    TXN_HDR_INFC_ID_ARRAY TXN_HDR_INFC_ID;
    ERROR_COUNT NUMBER;
    BULK_ERRORS EXCEPTION;
    PRAGMA exception_init(bulk_errors, -24381);
    BEGIN
    SELECT THI.ID BULK COLLECT
    INTO TXN_HDR_INFC_ID_ARRAY
    FROM TXN_HEADER_INTERFACE THI,ORDERS OS,ORDER_ITEMS OI
    WHERE THI.ID = OS.TXN_HDR_INFC_ID
    AND OS.ID = OI.ORDERS_ID
    AND OI.POSTING_ITEM_ID = VPI.ID
    OI.DW_STATUS_FLAG =4 --data is moved to Datawarehouse
    MINUS
    (SELECT THI.ID FROM TXN_HEADER_INTERFACE THI,ORDERS OS,ORDER_ITEMS OI
    WHERE THI.ID = OS.TXN_HDR_INFC_ID
    AND OS.ID = OI.ORDERS_ID
    OI.DW_STATUS_FLAG !=4);
    IF SQL%NOTFOUND
    THEN
    EXIT;
    END IF;
    FORALL i IN TXN_HDR_INFC_ID_ARRAY.FIRST..TXN_HDR_INFC_ID_ARRAY.LAST SAVE
    EXCEPTIONS
    DELETE FROM ORDER_ITEMS OI
    WHERE OI.ID IN (SELECT OI.ID FROM ORDER_ITEMS OI,ORDERS
    OS,TXN_HEADER_INTERFACE THI
    WHERE OS.ID = OI.ORDERS_ID
    AND OS.TXN_HDR_INFC_ID = THI.ID
    AND THI.ID = TXN_HDR_INFC_ID_ARRAY(i));
    FORALL i IN TXN_HDR_INFC_ID_ARRAY.FIRST..TXN_HDR_INFC_ID_ARRAY.LAST SAVE
    EXCEPTIONS
    DELETE FROM ORDERS OS
    WHERE OS.ID IN (SELECT OS.ID FROM ORDERS OS,TXN_HEADER_INTERFACE THI
    WHERE OS.TXN_HDR_INFC_ID = THI.ID
    AND THI.ID = TXN_HDR_INFC_ID_ARRAY(i));
    FORALL i IN TXN_HDR_INFC_ID_ARRAY.FIRST..TXN_HDR_INFC_ID_ARRAY.LAST SAVE
    EXCEPTIONS
    DELETE FROM TXN_HEADER_INTERFACE THI
    WHERE THI.ID = TXN_HDR_INFC_ID_ARRAY(i);
    COMMIT;
    DBMS_OUTPUT.PUT_LINE(TO_CHAR(SYSDATE, 'DD-MON-YY HH:MIPM')||':
    DELETE_CONFIRMED_DATA: INFO:DELETION SUCCESSFUL');
    EXCEPTION
    WHEN OTHERS THEN
    ERROR_COUNT := SQL%BULK_EXCEPTIONS.COUNT;
    DBMS_OUTPUT.PUT_LINE(TO_CHAR(SYSDATE, 'DD-MON-YY HH:MIPM')||':
    DELETE_CONFIRMED_DATA: ERROR:Number of errors is ' ||ERROR_COUNT);
    FOR indx IN 1..ERROR_COUNT LOOP
    DBMS_OUTPUT.PUT_LINE('Error ' || indx || 'occurred during
    '||'iteration'||SQL%BULK_EXCEPTIONS(indx).ERROR_INDEX);
    DBMS_OUTPUT.PUT_LINE('Error is '
    ||SQLERRM(-SQL%BULK_EXCEPTIONS(indx).ERROR_CODE));
    END LOOP;
    END DELETE_CONFIRMED_DATA;
    Any suggestion would be of great help.
    Thanks in advance
    Anu

    If you have one or two places in your code that need multiple exceptions, just do it with multiple catch statements. Unless you are trying to write the most compact Programming 101 homework program, inventing tricks to remove two lines of code is not good use of your time.
    If you have multiple catches all over your code it could be a code smell. You may have too much stuff happening inside one try statement. It becomes hard to know what method call throws one of those exceptions, and you end up handling an exception from some else piece of code than what you intended. E.g. you mention NumberFormatException -- only process one user input inside that try/catch so it is easy to see what error message is given if that particular input is gunk. The next step of processing goes inside its own try/catch.
    In my case, the ArrayIndexOutOfBoundsException and
    NumberFormatException should be handled by the same way.Why?
    I don't think I have ever seen an ArrayIndexOutOfBoundsException that didn't indicate a bug in the code. Instead of an AIOOBE perhaps there should be an if statement somewhere that prevents it, or the algorithm logic should prevent it automatically.

  • How can we handle multiple applications in session method

    how can we handle multiple applications in .. session method.
    can any body reply me.
    thanks

    Hari,
    hi Check out this sample code to use session method
    REPORT  ztest_report
    NO STANDARD PAGE HEADING
                            LINE-SIZE 255
                            MESSAGE-ID ZRASH.
                    Internal Table Declarations                          *
    *--Internal Table for Data Uploading.
    DATA : BEGIN OF IT_FFCUST OCCURS 0,
             KUNNR(10),
             BUKRS(4),
             KTOKD(4),
             ANRED(15),
             NAME1(35),
             SORTL(10),
             STRAS(35),
             ORT01(35),
             PSTLZ(10),
             LAND1(3),
             SPRAS(2),
             AKONT(10),
           END OF IT_FFCUST.
    *--Internal Table to Store Error Records.
    DATA : BEGIN OF IT_ERRCUST OCCURS 0,
             KUNNR(10),
             EMSG(255),
           END OF IT_ERRCUST.
    *--Internal Table to Store Successful Records.
    DATA : BEGIN OF IT_SUCCUST OCCURS 0,
             KUNNR(10),
             SMSG(255),
           END OF IT_SUCCUST.
    *--Internal Table for Storing the BDC data.
    DATA : IT_CUSTBDC LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    *--Internal Table for storing the messages.
    DATA : IT_CUSTMSG LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA : V_FLAG1(1) VALUE ' ',
    "Flag used for opening session.
           V_TLINES LIKE SY-TABIX,
           "For storing total records processed.
           V_ELINES LIKE SY-TABIX,
           "For storing the no of error records.
           V_SLINES LIKE SY-TABIX.
           "For storing the no of success records.
             Selection screen                                            *
    SELECTION-SCREEN BEGIN OF BLOCK B1.
    PARAMETERS : V_FNAME LIKE RLGRAP-FILENAME,
                 V_SESNAM  LIKE RLGRAP-FILENAME.
    SELECTION-SCREEN END OF BLOCK B1.
             Start-of-selection                                          *
    START-OF-SELECTION.
    *-- Form to upload flatfile data into the internal table.
      PERFORM FORM_UPLOADFF.
           TOP-OF-PAGE                                                   *
    TOP-OF-PAGE.
      WRITE:/ 'Details of the error and success records for the transaction'
      ULINE.
      SKIP.
             End of Selection                                            *
    END-OF-SELECTION.
    *-- Form to Generate a BDC from the Uploaded Internal table
      PERFORM FORM_BDCGENERATE.
    *--To write the totals and the session name.
      PERFORM FORM_WRITEOP.
    *&      Form  form_uploadff
        Form to upload flatfile data into the internal table.
    FORM FORM_UPLOADFF .
    *--Variable to change the type of the parameter file name.
      DATA : LV_FILE TYPE STRING.
      LV_FILE = V_FNAME.
    *--Function to upload the flat file to the internal table.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                      =  LV_FILE
        FILETYPE                      = 'ASC'
          HAS_FIELD_SEPARATOR           = 'X'
        HEADER_LENGTH                 = 0
        READ_BY_LINE                  = 'X'
        DAT_MODE                      = ' '
      IMPORTING
        FILELENGTH                    =
        HEADER                        =
        TABLES
          DATA_TAB                      = IT_FFCUST
        EXCEPTIONS
          FILE_OPEN_ERROR               = 1
          FILE_READ_ERROR               = 2
          NO_BATCH                      = 3
          GUI_REFUSE_FILETRANSFER       = 4
          INVALID_TYPE                  = 5
          NO_AUTHORITY                  = 6
          UNKNOWN_ERROR                 = 7
          BAD_DATA_FORMAT               = 8
          HEADER_NOT_ALLOWED            = 9
          SEPARATOR_NOT_ALLOWED         = 10
          HEADER_TOO_LONG               = 11
          UNKNOWN_DP_ERROR              = 12
          ACCESS_DENIED                 = 13
          DP_OUT_OF_MEMORY              = 14
          DISK_FULL                     = 15
          DP_TIMEOUT                    = 16
          OTHERS                        = 17
      IF SY-SUBRC = 0.
    *--Deleting the headings from the internal table.
        DELETE IT_FFCUST INDEX 1.
    *--Getting the total number of records uploaded.
        DESCRIBE TABLE IT_FFCUST LINES V_TLINES.
      ENDIF.
    ENDFORM.                    " form_uploadff
    *&      Form  Form_bdcgenerate
        Form to Generate a BDC from the Uploaded Internal table
    FORM FORM_BDCGENERATE .
    *--Generating the BDC table for the fields of the internal table.
      LOOP AT IT_FFCUST.
        PERFORM POPULATEBDC USING :
                                    'X' 'SAPMF02D' '0105',
                                    ' ' 'BDC_OKCODE'  '/00' ,
                                    ' ' 'RF02D-KUNNR' IT_FFCUST-KUNNR,
                                    ' ' 'RF02D-BUKRS' IT_FFCUST-BUKRS,
                                    ' ' 'RF02D-KTOKD' IT_FFCUST-KTOKD,
                                    'X' 'SAPMF02D' '0110' ,
                                    ' ' 'BDC_OKCODE'  '/00',
                                    ' ' 'KNA1-ANRED'  IT_FFCUST-ANRED,
                                    ' ' 'KNA1-NAME1' IT_FFCUST-NAME1,
                                    ' ' 'KNA1-SORTL'  IT_FFCUST-SORTL,
                                    ' ' 'KNA1-STRAS' IT_FFCUST-STRAS,
                                    ' ' 'KNA1-ORT01' IT_FFCUST-ORT01,
                                    ' ' 'KNA1-PSTLZ' IT_FFCUST-PSTLZ,
                                    ' ' 'KNA1-LAND1' IT_FFCUST-LAND1,
                                    ' ' 'KNA1-SPRAS' IT_FFCUST-SPRAS,
                                    'X' 'SAPMFO2D' '0120',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0125',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0130',     
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0340',     
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0360',
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0210',     
                                    ' ' 'KNB1-AKONT'  IT_FFCUST-AKONT,
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0215',
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0220',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0230',     
                                    ' ' 'BDC_OKCODE'  '=UPDA'.
    *--Calling the transaction 'fd01'.
        CALL TRANSACTION 'FD01' USING IT_CUSTBDC MODE 'N' UPDATE 'S'
        MESSAGES INTO IT_CUSTMSG.
        IF SY-SUBRC <> 0.
    *--Populating the error records internal table.
          IT_ERRCUST-KUNNR = IT_FFCUST-KUNNR.
          APPEND IT_ERRCUST.
          CLEAR IT_ERRCUST.
    *--Opening a session if there is an error record.
          IF V_FLAG1 = ' '.
            PERFORM FORM_OPENSESSION.
            V_FLAG1 = 'X'.
          ENDIF.
    *--Inserting the error records into already open session.
          IF V_FLAG1 = 'X'.
            PERFORM FORM_INSERT.
          ENDIF.
    *--Populating the Success records internal table.
        ELSE.
          IT_SUCCUST-KUNNR = IT_FFCUST-KUNNR.
          APPEND IT_SUCCUST.
          CLEAR IT_SUCCUST.
        ENDIF.
    *--Displaying the messages.
        IF NOT IT_CUSTMSG[] IS INITIAL.
          PERFORM FORM_FORMATMSG.
        ENDIF.
    *--Clearing the message and bdc tables.
        CLEAR : IT_CUSTBDC[],IT_CUSTMSG[].
      ENDLOOP.
    *--Getting the total no of error records.
      DESCRIBE TABLE IT_ERRCUST LINES V_ELINES.
    *--Getting the total no of successful records.
      DESCRIBE TABLE IT_SUCCUST LINES V_SLINES.
    *--Closing the session only if it is open.
      IF V_FLAG1 = 'X'.
        PERFORM FORM_CLOSESESS.
      ENDIF.
    ENDFORM.                    " Form_bdcgenerate
    *&      Form  populatebdc
          FOrm to Populate the BDC table.
    FORM POPULATEBDC  USING    VALUE(P_0178)
                               VALUE(P_0179)
                               VALUE(P_0180).
      IF P_0178 = 'X'.
        IT_CUSTBDC-PROGRAM = P_0179.
        IT_CUSTBDC-DYNPRO = P_0180.
        IT_CUSTBDC-DYNBEGIN = 'X'.
      ELSE.
        IT_CUSTBDC-FNAM = P_0179.
        IT_CUSTBDC-FVAL = P_0180.
      ENDIF.
      APPEND IT_CUSTBDC.
      CLEAR IT_CUSTBDC.
    ENDFORM.                    " populatebdc
    *&      Form  FORM_OPENSESSION
          Form to Open a session.
    FORM FORM_OPENSESSION .
    *--Variable to convert the given session name into reqd type.
      DATA : LV_SESNAM(12).
      LV_SESNAM = V_SESNAM.
    *--Opening a session.
      CALL FUNCTION 'BDC_OPEN_GROUP'
       EXPORTING
         CLIENT                    = SY-MANDT
         GROUP                     = LV_SESNAM
         HOLDDATE                  = '20040805'
         KEEP                      = 'X'
         USER                      = SY-UNAME
         PROG                      = SY-CPROG
    IMPORTING
       QID                       =
       EXCEPTIONS
         CLIENT_INVALID            = 1
         DESTINATION_INVALID       = 2
         GROUP_INVALID             = 3
         GROUP_IS_LOCKED           = 4
         HOLDDATE_INVALID          = 5
         INTERNAL_ERROR            = 6
         QUEUE_ERROR               = 7
         RUNNING                   = 8
         SYSTEM_LOCK_ERROR         = 9
         USER_INVALID              = 10
         OTHERS                    = 11
      IF SY-SUBRC <> 0.
        WRITE :/ 'Session not open'.
      ENDIF.
    ENDFORM.                    " FORM_OPENSESSION
    *&      Form  FORM_INSERT
          fORM TO INSERT ERROR RECOED INTO A SESSION.
    FORM FORM_INSERT .
    *--Inserting the record into session.
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          TCODE                  = 'FD01'
        POST_LOCAL             = NOVBLOCAL
        PRINTING               = NOPRINT
        SIMUBATCH              = ' '
        CTUPARAMS              = ' '
        TABLES
          DYNPROTAB              = IT_CUSTBDC
        EXCEPTIONS
          INTERNAL_ERROR         = 1
          NOT_OPEN               = 2
          QUEUE_ERROR            = 3
          TCODE_INVALID          = 4
          PRINTING_INVALID       = 5
          POSTING_INVALID        = 6
          OTHERS                 = 7
      IF SY-SUBRC <> 0.
        WRITE :/ 'Unable to insert the record'.
      ENDIF.
    ENDFORM.                    " FORM_INSERT
    *&      Form  FORM_CLOSESESS
          Form to Close the Open Session.
    FORM FORM_CLOSESESS .
      CALL FUNCTION 'BDC_CLOSE_GROUP'
        EXCEPTIONS
          NOT_OPEN    = 1
          QUEUE_ERROR = 2
          OTHERS      = 3.
      IF SY-SUBRC <> 0.
      ENDIF.
    ENDFORM.                    " FORM_CLOSESESS
    *&      Form  FORM_FORMATMSG
          Form to format messages.
    FORM FORM_FORMATMSG .
    *--Var to store the formatted msg.
      DATA : LV_MSG(255).
      CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          ID        = SY-MSGID
          LANG      = SY-LANGU
          NO        = SY-MSGNO
          V1        = SY-MSGV1
          V2        = SY-MSGV2
          V3        = SY-MSGV3
          V4        = SY-MSGV4
        IMPORTING
          MSG       = LV_MSG
        EXCEPTIONS
          NOT_FOUND = 1
          OTHERS    = 2.
      IF SY-SUBRC = 0.
        WRITE :/ LV_MSG.
      ENDIF.
      ULINE.
    ENDFORM.                    " FORM_FORMATMSG
    *&      Form  form_writeop
          To write the totals and the session name.
    FORM FORM_WRITEOP .
      WRITE :/ 'Total Records Uploaded :',V_TLINES,
               / 'No of Error Records :',V_ELINES,
               / 'No of Success Records :',V_SLINES,
               / 'Name of the Session :',V_SESNAM.
      ULINE.
    ENDFORM.                    " form_writeop
    Don't forget to reward if useful..

  • Multiple production order

    Hi Gurus,
    I am facing a problem that sap system generates in one sales order multiple production order in mto cases,now from table i want to find out the multiple production order against one sales order pl tellme the selelection criteria.

    Dear ,
    The best way to address this issue to check the report
    1.MD4C-Give Sales Order  , it will display all the Planned Order , Production Order etc
    2.COOIS-Order Header -Stantdar Profile -Enter Plant Code /Order Type , Sales Order Number and Execute , It will diplay all the Sales order with respected line itme .
    Please make sure that all the sales order have credit realsed (VKM3-Sales Order ) .
    4.You can also check thriough COHV/CO46 etc .
    Try and revert
    Regards
    JH

  • Return vendor rejection from production line

    Hi,
    Guru,
    How to return vendor rejection from production line and it should be vendor wise.
    regards,
    rakesh patel

    Hi..
    To achieve this requirement there are some developments are required.
    e.g.:- One different movement type should be there for handling vendor rejection from production line to transit store.
    One different transit store should be there  for handling the rejections.
    And you must know that particular material has come from which vendor e.g. 10nos are from xyz vendor and 7 nos from abc vendor.
    Now you can do the transfer posting thru MIGO from production line to transit store. and can select supplier from partner tab.
    Different movement type and storage location would be very helpful for reporting part. And maintain discipline.
    Regards
    Vivek.

  • Change over time on production line.

    Hi Experts,
    We have a scenario where we need to schedule the orders also considering the changeover times on a production line from one product to another. Suppose I am producing product A on the line and my next product is B, say the change over time is 10 mins. But suppose if I am changing from product C to product B, then the changeover time is 15 mins. Similarly it is different from one product to other based on what will be produced on the line next.
    Like,
    A---->B is 10mins
    C----->B is 15 mins
    D----->C is 30 mins and so on.
    A big matrix exists for the same.
    Is there any way that I will be able to handle this in standard SAP? Ideas will be much appreciated.
    Regards,
    Sachin

    Hi,
    You need to maintain the Setup Group Key in the routing, and then in capacity levelling table you group orders by this key, and then there's a function to reduce/change setup time for each order and for the group.
    Definition of Setup Group Key - transaction OP43
    Definition of Setup Matrix - transaction OPDA. In here you define the "new" setup times that substitute the "old" setup times, and are setup group dependent.
    In the routing opration detail in CA02 or CA01 choose the setup group key on the "general Data" part.
    For the capacity levelling part, it is too complex to guide you here.
    Regards,
    Mario

  • Handle multiple material numbers as import parameter in a function module

    Hello Folks,
    I want to handle multiple material numbers as import parameters.. I have tried using table types but having problem while reading the data....
    My requirement is user will input say 10 materials , now i need to get all the information for that particular material ..
    I am unable to use for all entries as it is saying that it is not internal table... I have found table types which is having sigon , option, low and high fields but user doesn't want it... He wants to enter only materials... Currently am using this MD_T_MATNR(table type)
    I am stuck up here..
    Appreciate any kind of help.
    Regards,
    Raj

    Hi,
    it looks like you are on a good way, just something little is missing. Type MD_T_MATNR is suitable for your issue. I have tried it and probably your problem is that You have to use
    SELECT ... FOR ALL ENTRIES IN it_matnr WHERE mara~matnr EQ it_matnr~table_line.
    instead of
    SELECT ... FOR ALL ENTRIES IN it_matnr WHERE mara~matnr EQ it_matnr~matnr.
    In this example I suppose that a name of your variable of type MD_T_MATNR is it_matnr. Problem is that table line is not structure, but data element, therefore You have to use ~table_line instead of ~matnr.
    Hope it helps.
    Adrian

Maybe you are looking for

  • Significance of Interfaces in ABAP Objects

    Hi Guys, here I have a query - Why do we use Interfaces in ABAP Objects?, and what is the significance of Interfaces in ABAP Objects? Please clarify the above with a suitable example.

  • How can I start two Vi at the same time?

     I have two Vi's, each of these Vi has a stop button. I want to start these two Vis at the same time. I also want to be able to stop the two Vis at the same time. What should I do? Thanks.

  • Storage Location by Plant

    Hi, I need some advice from functional perpspective. Is there a T-code where I can view storage location by multiple plant? Appreciate your advice. Thanks Rick

  • RFC Function module executing in tasks error

    Hi Gurus, I have a rfc enabled function module that I am executing in tasks . The first two passes went correct but the third pass gave the shortdump: Communication failure. What can be done to correct this . A RAISE statement in the program "SAPLYQM

  • Can I get a different modem for my verizon service?

    Hello, I am wondering if Verizon offers a modem with a wireless router built in? I would like to know if I could exchange my current modem for one without having to upgrade my service to something more expensive. Right now I have the basic Verizon ds