BAPI_INTERNALORDRGRP_CREATE

Hello Experts,
I have to create lots of internal order group using KOH1, But problem is i cannot create BDC for this KOh1, i read that there is a BAPI name BAPI_INTERNALORDRGRP_CREATE, I want to know how to use this BAPI, Is there any body Can guide me how to use this BAPI.
or how to upload data using KOh1. Please guide me.
Regards
Shelly Malik
Edited by: shelly Malik on Feb 2, 2010 7:37 AM

is there any body can guide me how to make uploader for KOH1 tcode, Please
Regards
Shelly Malik

Similar Messages

  • BDC - Creating Inspections Plans using T-Code QP01

    Hi All,
    I want to Create Inspection Plans using QP01 transaction using BDC.
    It having 4 screens. Third and Fourth screens having line item details.
    I did recording. Upto First and second screens data is populating properly, coming to third screen data is not taking even though bdctable having data (in debug mode i found). I don't know hw to resolve this problem.
    Can u please explain hw to populate line-item details, possible give some example coding .
    Regards,
    Prabhakar

    Hi,
      If you are comfortable using function modules then you will not have any difficulty in using the BAPI, only thing we need to take care of the following, refer the following this is not using the bapi for Inspection plan, this is done for different purpose, still you can refer this and use accordingly,
    Data declarations,
    DATA: TOPNODEONLY LIKE BAPICO_GROUP-TOPNODEONLY,
          RETURN LIKE BAPIRET2,
          LT_HIERARCHYNODES LIKE BAPISET_HIER OCCURS 0,
          LT_HIERARCHYVALUES LIKE BAPI1117_VALUES OCCURS 0,
          LS_HIERARCHYNODES LIKE BAPISET_HIER,
          LS_HIERARCHYVALUES LIKE  BAPI1117_VALUES,
          LV_FLAG TYPE I,FLAG.
    DATA: BEGIN OF ORDERS OCCURS 0,
          ORDER_GROUP TYPE GRPDYNP-NAME_COALL,
          DESC(30),
          ORDER TYPE GRPVALUES-VFROM,
          END OF ORDERS.
    START-OF-SELECTION.
      CALL FUNCTION 'WS_UPLOAD'
           EXPORTING
                FILENAME = FILENAME
                FILETYPE = 'DAT'
           TABLES
                DATA_TAB = ORDERS.
      SORT ORDERS BY ORDER_GROUP ORDER.
      LOOP AT  ORDERS.
        IF LV_FLAG NE 1.
          TRANSLATE ORDERS-ORDER_GROUP TO UPPER CASE.
          LS_HIERARCHYNODES-GROUPNAME = ORDERS-ORDER_GROUP.
          LS_HIERARCHYNODES-DESCRIPT = ORDERS-DESC.
          LS_HIERARCHYNODES-HIERLEVEL = 0.
          LS_HIERARCHYNODES-VALCOUNT = 0.
          APPEND LS_HIERARCHYNODES TO LT_HIERARCHYNODES.
          LV_FLAG = 1.
        ENDIF.
        CLEAR LS_HIERARCHYNODES.
        LS_HIERARCHYNODES-GROUPNAME = ORDERS-ORDER.
        LS_HIERARCHYNODES-HIERLEVEL = 1.
        LS_HIERARCHYNODES-VALCOUNT = 0.
        APPEND LS_HIERARCHYNODES TO LT_HIERARCHYNODES.
        AT END OF ORDER_GROUP.
          FLAG = 'X'.
        ENDAT.
        IF FLAG = 'X'.
    BAPI is called to create Internal Order group in the system
          CALL FUNCTION 'BAPI_INTERNALORDRGRP_CREATE'
               TABLES
                    HIERARCHYNODES  = LT_HIERARCHYNODES
                    HIERARCHYVALUES = LT_HIERARCHYVALUES.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
          CLEAR :  LT_HIERARCHYNODES[], LS_HIERARCHYNODES.
          CLEAR : LV_FLAG,FLAG.
        ENDIF.
      ENDLOOP.
    Hope this helps,
    Rgds,

  • Migration internal order group

    Hi all,
    I am doing the migration program for internal order group creation.(KOH1)
    I have used the FM for BAPI_INTERNALORDRGRP_CREATE and BAPI_INTERNALORDRGRP_ADDNODE                     
    for creating internal order group. using those FM in my program , the internal order group created successfully,
    But, i check these data's in transaction code KOH3.
    the internal order description is not come, that means internal order group has more internal orders, that internal orders already created one. so when displaying that internal order in my internal order group, the description is not display.
    Expected: already created internla order it displayed, but the internal order description from table it doesn't show.
    Anyone clear my doubts.
    Thanks,
    Amudha.

    Hi,
      You can get the ordergroup as SETNAME in SETHEADER table for the SETCLASS '0103', the order details are found in SETLEAF for the setname obtained from SETHEADER,
    Hope this helps,
    Rgds,

Maybe you are looking for

  • Length error occurred during the IMPORT statement.

    i have problem in Zprogram.its working fine in 4.6b ,but its problem in ECC5.0.its giving dump and saying Error analysis                                                                         An exception occurred. This exception will be dealt with

  • Premiere Pro CS6 stopped working, for one user profile

    So Premiere Pro CS6 wouldn't open today. Opened fine yesterday, and the days before that. The program didn't crash yesterday or close improperly. I just get the logo splash screen, but I don't see the usual text stream of applications starting up on

  • Link my Macbook to my TV?

    Simple question right? Just want to use my Macbook via my TV using the "air mouse" app on the iPhone. I have to keep my computer close to a window for a WiFi signal. (yes, I'm getting my own internet hooked up next week, but until the cable guy comes

  • Reg Query Optimization - doubts..

    Hi Experts, This is related to Blog by Mr Prakash Darji regarding "Query Optimization" posted on Jan 26 2006.In this to optimize query Generation of Report is suggested. I tried this, but I am not sure I am analyzing this correctly. I collected Stats

  • A Simple JMS Client  ... doesnt seems to work

    Hi , I trying my first baby steps on JMS and your help is needed. I have setup the ConnectionFactory & TopicConnection in the GlassFish server. Following is the simple client code which I am writing in Netbeans IDE, public class TopicSender {     pub