Regarding BAPI_MATERIAL_BOM_GROUP_CREATE

Dear All,
              Bom is created with given BAPI_MATERIAL_BOM_GROUP_CREATE. But the issue is while creating multiple subitems for each item. it is creating only one subitem for each item.
Please let me know regarding this.
Regards
Anil

Hello,
        To create a BOM u can use "CSAP_MAT_BOM_CREATE" this FM.
CALL FUNCTION 'CSAP_MAT_BOM_CREATE'
      EXPORTING
        MATERIAL                 = MATERIAL
        PLANT                    = N_PLANT
        BOM_USAGE                = '1'
    VALID_FROM               =
    CHANGE_NO                =
    REVISION_LEVEL           =
        I_STKO                   = I_STKO
    FL_NO_CHANGE_DOC         = ' '
    FL_COMMIT_AND_WAIT       = ' '
    FL_CAD                   = ' '
    FL_DEFAULT_VALUES        = 'X'
  IMPORTING
    FL_WARNING               =
    BOM_NO                   =
      TABLES
        T_STPO                   = T_STPO
    T_DEP_DATA               =
    T_DEP_DESCR              =
    T_DEP_ORDER              =
    T_DEP_SOURCE             =
    T_DEP_DOC                =
    T_LTX_LINE               =
    T_STPU                   =
      EXCEPTIONS
        ERROR                    = 1
        OTHERS                   = 2
    IF SY-SUBRC <> 0.
   MESSAGE I001 WITH 'BOM not Created for' MATERIAL.
elseif SY-SUBRC = 0.
   MESSAGE I001 WITH 'BOM Created for' MATERIAL.
    ENDIF.
Thanks & Regards,
Sayali Paradkar

Similar Messages

  • Change a BOM using BAPI_MATERIAL_BOM_GROUP_CREATE

    Hi All,
    Can I change an existing BOM Group with the BAPI BAPI_MATERIAL_BOM_GROUP_CREATE. or is there any other BAPI to change the BOMs.
    Thanks in advance.
    Regards,
    Anju

    sorry
    i found out the answer

  • BAPI_MATERIAL_BOM_GROUP_CREATE with subitems.

    Dear ABAPers,
           I want to create the BOM with the Subitems.Can anyone send me the Sample code.      
    Thanks & Regards,
    Ashok.

    hi ashok,
    * This code will create a material BoM for the material
    * MAINMATERIAL with the components COMPON1 and COMPON2.
    * Data Declaration
    DATA:
    it_bomgroup LIKE bapi1080_bgr_c OCCURS 0 WITH HEADER LINE,
    it_variants LIKE bapi1080_bom_c OCCURS 0 WITH HEADER LINE,
    it_items LIKE bapi1080_itm_c OCCURS 0 WITH HEADER LINE,
    it_matrel LIKE bapi1080_mbm_c OCCURS 0 WITH HEADER LINE,
    it_itemas LIKE bapi1080_rel_itm_bom_c OCCURS 0 WITH HEADER LINE,
    it_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    * Fill the data
    * Material BoM Group Header Data
    CLEAR it_bomgroup.
    it_bomgroup-bom_group_identification = 'BAPI_SMP_COL1'.
    it_bomgroup-object_type = 'BGR'.
    it_bomgroup-object_id = 'SIMPLE1'.
    it_bomgroup-bom_usage = '5'. " YOU COULD CHANGE THE BOM USAGE TO YOUR
    NEEDS
    it_bomgroup-ltxt_lang = sy-langu.
    it_bomgroup-technical_type = ' '.
    it_bomgroup-bom_text = 'Simple BoM - FM'.
    APPEND it_bomgroup.
    * Header Details of the different variants
    CLEAR it_variants.
    it_variants-bom_group_identification = 'BAPI_SMP_COL1'.
    it_variants-object_type = 'BOM'.
    it_variants-object_id = 'SIMPLE1'.
    it_variants-alternative_bom = '01'.
    it_variants-bom_status = '01'.
    it_variants-base_qty = '1.000'.
    it_variants-valid_from_date = sy-datum.
    it_variants-function = 'NEW'.
    APPEND it_variants.
    * Details of the items of the variants
    CLEAR it_items.
    it_items-bom_group_identification = 'BAPI_SMP_COL1'.
    it_items-object_type = 'ITM'.
    it_items-object_id = 'SIMPLE1'.
    it_items-item_no = '0010'.
    it_items-item_cat = 'L'.
    it_items-component = 'COMPON1'.
    it_items-comp_qty = '2'.
    it_items-valid_from_date = sy-datum.
    APPEND it_items.
    CLEAR it_items.
    it_items-bom_group_identification = 'BAPI_SMP_COL1'.
    it_items-object_type = 'ITM'.
    it_items-object_id = 'SIMPLE1'.
    it_items-item_no = '0020'.
    it_items-item_cat = 'L'.
    it_items-component = 'COMPON2'.
    it_items-comp_qty = '3'.
    it_items-valid_from_date = sy-datum.
    APPEND it_items.
    * Details of the materials of the different variants
    CLEAR it_matrel.
    it_matrel-bom_group_identification = 'BAPI_SMP_COL1'.
    it_matrel-material = 'MAINMATERIAL'.
    it_matrel-bom_usage = '5'.
    it_matrel-alternative_bom = '01'.
    APPEND it_matrel.
    * Linking items to the corresponding variants
    CLEAR it_itemas.
    it_itemas-bom_group_identification = 'BAPI_SMP_COL1'.
    it_itemas-sub_object_type = 'ITM'.
    it_itemas-sub_object_id = 'SIMPLE1'.
    it_itemas-super_object_type = 'BOM'.
    it_itemas-super_object_id = 'SIMPLE1'.
    it_itemas-valid_from_date = sy-datum.
    it_itemas-function = 'NEW'.
    APPEND it_itemas.
    * Create variants
    CALL FUNCTION 'BAPI_MATERIAL_BOM_GROUP_CREATE'
    EXPORTING
    all_error = 'X'
    TABLES
    bomgroup = it_bomgroup
    variants = it_variants
    items = it_items
    materialrelations = it_matrel
    itemassignments = it_itemas
    return = it_return.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    LOOP AT it_return.
    WRITE:/ it_return-type, it_return-id, it_return-number,
    it_return-message.
    ENDLOOP.
    regards,
    sandeep

  • Error in BAPI_MATERIAL_BOM_GROUP_CREATE.

    Dear All,
    I am trying to create BOM using BAPI : "BAPI_MATERIAL_BOM_GROUP_CREATE" in a Program.
    Now the problem is that when I Execute this, after the BAPI, i get Following Error messages in the Return Table of BAPI:
    1) Type W - Error when checking the data of the object type=ITM / Id= of group Id=
    2) Type E - Bill of material is not valid
    3) Type A - No instance of object type BOMGroup has been created. External reference:
    Now the other thing is that When i execute the BAPI through SE37 with the same data that is passed through the Program to BAPI, it is successfully creating BOM without any error.
    Can some one help on this please??
    It is ugent.
    Helpful answers will be rewarded.
    Regards,
    Tejas

    Problem Solved...!
    Instead of '1' as ALTERNATIVE_BOM in VARIANTS and MATERIALRELATIONS of BAPI, I passed '01'.
    that Did it...Cheers.....
    -Tejas

  • Warning and abort message for BAPI_MATERIAL_BOM_GROUP_CREATE

    Hi to all,
    i am creating BOM using FM BAPI_MATERIAL_BOM_GROUP_CREATE , i have passed all necessary parameters, but
    waring and abort message are coming with creating bom for BAPI_MATERIAL_BOM_GROUP_CREATE .
    W BAPI1080             028
    Error/warning when checking the structure of the BOM group with ID=BOMGROUP1
    A BAPI1080             018
    Item ID=BOM1 is not assigned to a variant/alternative
    A BAPI                 001
    No instance of object type BOMGroup has been created. External reference:
    please can any one tell me what will be the soultion for that.
    Regards
    Pavneet Rana
    Edited by: pavneet rana on Aug 23, 2011 6:27 AM

    Thanks for reply ,
    yes i have used that link, and i am using same value , except for matnr and plant.
    but warning and abort message are coming, and no BOM is creating in MAST.
    W BAPI1080             029
    Error when checking the data of the object type=BOM / Id=BOM1 of group Id=BOMGROUP1
    A BAPI                 001
    No instance of object type BOMGroup has been created. External reference:
    please can any one provide me the solution for that.
    code:
    DATA: BOMGROUP  TYPE TABLE OF BAPI1080_BGR_C,
            wa_BOMGROUP LIKE LINE OF  BOMGROUP,
            variant TYPE TABLE OF BAPI1080_BOM_C,
            wa_variant LIKE LINE OF variant,
            ITEM     TYPE TABLE OF BAPI1080_ITM_C,
            WA_ITEM   LIKE LINE OF ITEM,
            MATERIALRELATIONS TYPE TABLE OF BAPI1080_MBM_C,
            WA_MATERIALRELATIONS LIKE LINE OF MATERIALRELATIONS,
            RETURN    TYPE BAPIRET2_T.
    DATA: wa_return LIKE LINE OF RETURN .
    wa_BOMGROUP-BOM_GROUP_IDENTIFICATION = 'BOMGROUP1'.
    wa_BOMGROUP-OBJECT_TYPE = 'BGR'.
    wa_BOMGROUP-OBJECT_ID  = 'BOMGROUP1'  .
    wa_BOMGROUP-TECHNICAL_TYPE = 'M'.
    wa_BOMGROUP-BOM_USAGE  = '1'.
    wa_BOMGROUP-BOM_GROUP = 'BOMGROUP1'  .
    wa_BOMGROUP-CREATED_IN_PLANT = '2000'.
    wa_BOMGROUP-LTXT_LANG = sy-langu .
    wa_BOMGROUP-BOM_TEXT  = 'Created Using BAPI_MATERIAL_BOM_GROUP_CREATE'.
    APPEND wa_BOMGROUP to BOMGROUP.
    VARIANTS
      wa_variant-BOM_GROUP_IDENTIFICATION = 'BOMGROUP1'.
       wa_variant-OBJECT_TYPE   = 'BOM'.  "= 'BGR'. "
      wa_variant-OBJECT_ID  = 'BOM1'  .
       wa_variant-ALTERNATIVE_BOM = '2'.
      wa_variant-BOM_STATUS  =   '1'.
       wa_variant-BASE_QTY  =  '100'.
      wa_variant-BASE_UNIT =  wa_bom_header-BASE_UOM.
       wa_variant-LTXT_LANG = sy-langu .
       WA_VARIANT-LANGU_ISO   = SY-LANGU.
       wa_variant-ALT_TEXT  = 'BAPI_MATERIAL_BOM_GROUP_CREATE'.
      wa_variant-VALID_FROM_DATE = wa_bom_header-VALID_FROM.
       wa_variant-CHANGE_NO = 'ECN1'.
       wa_variant-FUNCTION     = 'NEW'.
       APPEND wa_variant TO VARIANT.
    ITEM
    WA_ITEM-BOM_GROUP_IDENTIFICATION  = 'BOMGROUP1'.
    WA_ITEM-OBJECT_TYPE               = 'ITM'.
    WA_ITEM-OBJECT_ID                 = 'BOM1' .
    *WA_ITEM-ITEM_ID                   = 'BOM1'.
    WA_ITEM-ITEM_NO                   = '0010'.
    WA_ITEM-ITEM_CAT                  = 'L'.
    WA_ITEM-COMPONENT                 =  '300201001'.
    WA_ITEM-COMP_QTY                  = '100'.
    *WA_ITEM-COMP_UNIT                 = 'KGK'.
    WA_ITEM-VALID_FROM_DATE           = SY-DATUM.
    APPEND WA_ITEM TO ITEM.
    MATERIAL
    WA_MATERIALRELATIONS-BOM_GROUP_IDENTIFICATION =  'BOMGROUP1'.
    WA_MATERIALRELATIONS-MATERIAL = '1020007'.  "lv_matnr. "
    WA_MATERIALRELATIONS-PLANT  = '2000'.
    WA_MATERIALRELATIONS-BOM_USAGE  = '1'.
    WA_MATERIALRELATIONS-ALTERNATIVE_BOM  = '2'.
    APPEND WA_MATERIALRELATIONS TO MATERIALRELATIONS.
    data: ITEMASSIGNMENTS TYPE TABLE OF  BAPI1080_REL_ITM_BOM_C,
          wa_ITEMASSIGNMENTS like LINE OF ITEMASSIGNMENTS .
    wa_ITEMASSIGNMENTS-BOM_GROUP_IDENTIFICATION  = 'BOMGROUP1'.
    wa_ITEMASSIGNMENTS-SUB_OBJECT_TYPE = 'ITM'.
    wa_ITEMASSIGNMENTS-SUB_OBJECT_ID = 'BOM1'.
    wa_ITEMASSIGNMENTS-SUPER_OBJECT_TYPE = 'BOM'.
    wa_ITEMASSIGNMENTS-SUPER_OBJECT_ID = 'BOM1'.
    *wa_ITEMASSIGNMENTS-VALID_FROM_DATE
    *wa_ITEMASSIGNMENTS-CHANGE_NO
    wa_ITEMASSIGNMENTS-FUNCTION  = 'NEW'.
    APPEND wa_ITEMASSIGNMENTS to ITEMASSIGNMENTS.
    CALL FUNCTION 'BAPI_MATERIAL_BOM_GROUP_CREATE'
        EXPORTING
      TESTRUN                  = ' '
       ALL_ERROR                = 'X'
      TABLES
        bomgroup                 =  BOMGROUP
        variants                 = VARIANT
       ITEMS                    = ITEM
      SUBITEMS                 =
        materialrelations        = MATERIALRELATIONS
       ITEMASSIGNMENTS          = ITEMASSIGNMENTS
      SUBITEMASSIGNMENTS       =
      TEXTS                    =
        return                   = RETURN
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
       ENDIF.
      loop at RETURN INTO wa_return.
      write:/ wa_return-type, wa_return-id, wa_return-number,
      wa_return-message.
    endloop.
    regards
    pavneet rana
    Edited by: pavneet rana on Aug 23, 2011 8:57 AM

  • Regarding sy-index and sy-tabix

    Hi,
    What is the major difference between sy-index and sy-tabix ,
      can you give me one good example with code..
    Regards,
    Reddy.

    Hi,
    SY-TABIX - Current line of an internal table. SY-TABIX is set by the statements below, but only for index tables. The field is either not set or is set to 0 for hashed tables.
    APPEND sets SY-TABIX to the index of the last line of the table, that is, it contains the overall number of entries in the table.
    COLLECT sets SY-TABIX to the index of the existing or inserted line in the table. If the table has the type HASHED TABLE, SY-TABIX is set to 0.
    LOOP AT sets SY-TABIX to the index of the current line at the beginning of each loop lass. At the end of the loop, SY-TABIX is reset to the value that it had before entering the loop. It is set to 0 if the table has the type HASHED TABLE.
    READ TABLE sets SY-TABIX to the index of the table line read. If you use a binary search, and the system does not find a line, SY-TABIX contains the total number of lines, or one more than the total number of lines. SY-INDEX is undefined if a linear search fails to return an entry.
    SEARCH FOR sets SY-TABIX to the index of the table line in which the search string is found.
    SY_INDEX - In a DO or WHILE loop, SY-INDEX contains the number of loop passes including the current pass.
    sy-tabix is the tab index - the index of the record in the internal table you are accessing,
    sy-index is the loop counter.
    If you use a condition in LOOP the sy-index will go from 1 to n, but sy-tabix will refer to the line in the internal table.
    Hope this helps u.
    Thanks,
    Ruthra

  • Regarding Field Missing in Dso Transformation

    Hi
    Folks
    I am facing the issue like
    In Datasouce to DSO transformation i can see the 55 objects in DSO table, and in DSO to Cube Transformation i can see 54 fields in DSO table, one field is missing , the object  0TXTSH(short discription) is mapped to field 0TXZ01in DS to DSO transformation.
    so How can i get the field in DSO to Cube transformation.??
    any settings have to be change???
    waiting for yours Valuable answers
    Regards
    Anand

    Hi,
    Please identify the object and check it whether it is an attribute or a characteristic, if it is attribute only disable that option then check it.
    Regards,
    Srinivas

  • I am having an issue regarding a placed order via customer service department

    I recently relocated to Anchorage Alaska as part of a permanent change of station per the United States Air Force. I was initially located on the East Coast in the lower 48 and at the time of activating my contract I had purchased two separate Iphone 4 devices. I also recently went in to a store in February to purchase a Nexus 7 as well.
    Upon arrival in Anchorage I had multiple issues regarding the Iphone 4 devices including being unable to send and receive text messages & imessages, unable to make phone calls, dropped phone calls, unable to utilize GPS, as well as not being able to access general account information and use anything related to web browsing or data usage. It was determined that because the Iphone 4 operates on the 3g network and Verizon does not have a 3g network in Alaska, as a result I was utilizing an extended service network from another carrier. As a result of this I am only able to use my Iphone 4 devices while connected to my wi-fi network while within my home, which is totally unacceptable.
    I was not made aware that I would be dealing with this when I moved to Alaska and inquired as the the use of the devices I currently owned prior to purchasing the tablet. I was assured by three separate store employees one of which being a manager that all devices would function at 100% efficiency including the Iphone 4s. In fact I was recently billed 350$ for roaming charges last month, which prompted me to speak with a representative via the online chat regarding the significant increase she said that she was unable to process any sort of credit to the account regardless of what I had been told at a local Verizon store where I purchased the tablet.
    As a result of all of these mishaps since arriving here in Alaska I determined I was in need of newer devices that utilize the 4G LTE network currently provided by Verizon in Alaska. I know for a fact that the 4G LTE works great up here because my Nexus 7 tablet runs flawlessly and does not incur roaming charges when utilizing the 4G LTE network.
    Yesterday I attempted to contact Verizon through the live chat feature regarding upgrading two of the devices on my account. The live chat representative immediately asked me when my upgrade date was. Upon telling her my upgrade date 9/29/2014 she told me I should contact the customer service department as I might be eligible for an early upgrade. I then proceeded to contact the customer service department using my Iphone 4.
    My attempt to speak to anyone in the customer service department resulted in a merry-go-round of being put on hold 6 separate times by two different employees, both of which had me wait for more than an hour while they attempted to speak to a manager to gain approval for an early upgrade. The first rep seemed almost sure she would be able to have my devices upgraded early especially considering the issues I was having regarding service.
    The second rep seemed newer and was very dodgy about my questions and was very unwilling to help at first. He even mentioned that I had been a Verizon customer for almost two years, had never missed a single payment and had outstanding account history which should have garnered some sort of importance to the level of my request. But I digress, during this time I was disconnected from the call twice from each separate representative.
    Both reps assured me they would call me back, I never did get a call back from either one of those reps and I was becoming very frustrated having waited four hours trying to find some sort of solution to my current predicament.
    After waiting an hour for the second representative to call back I grew impatient and contacted the customer service department, was put on hold again, and finally reached a third customer service representative who was able to provide a solution for me.
    I explained everything I had been dealing with to Cory ID #  V0PAC61, both regarding the phones, the issue of the level of service I was receiving, the dire need for working devices and the multiple times I had been disconnected. I explained to him as a result of these issues I was certainly considering switching to a different provider, a local provider even who could provide me the adequate service that I require for my mobile devices.
    I explained to Cory that I had been with Verizon for almost two years, and I had been on a relatives account prior to owning my own Verizon account and had never received this kind of treatment when trying to work towards a simple solution. Cory proceeded to tell me he needed to put me on hold to see if there was anything that could be done regarding the upgrades of the device considering all of the trouble I had been dealing with.
    After Cory reconnected with me in the phone call he was able to successfully reach a solution by allowing me to upgrade my devices. We conversed about the options available and I eventually decided to upgrade both Iphone 4 devices to Moto X devices as we determined those would be sufficient for my needs while in Alaska. I also proceeded to add two Otter Box Defender cases to the order so that the devices would have sufficient protection. Cory inquired as to whether or not I would like to purchase insurance for the phones as well and I opted for the $5.00 monthly insurance which including damage and water protection.
    Cory explained to me the grand total for the devices which included an activation fee of $35.00 for each device, $49.99 for each Otter Box case, and an additional $50.00 for each device which would be refunded as a rebate upon receipt of the devices and activation, a rebate that I would be required to submit. Cory explained to me that the devices would most likely arrive Tuesday of 6/17 and no later than Wednesday 6/18.
    Cory took my shipping information and told me everything was all set and the only thing left to do was to transfer me to the automated service so that I could accept the 2 year agreement for both devices. I thanked him very much, took his name and ID# so that I might leave positive feedback about his exemplary customer service and was then transferred to the automated service.
    Once transferred to the automated service I was then prompted to enter both telephone numbers for the devices that would be upgraded, I was then required to accept the new 2 year agreement for both devices and after doing so I was required to end the call. I did so in an orderly fashion and expected a confirmation # to arrive in my email regarding the placed order.
    I have never received a confirmation email. I decided to sleep on it and assumed a confirmation email would be sent sometime tomorrow. Nothing has since been received however. I woke up early this morning around 6AM Alaska time to speak to another live chat representative, Bryan, in the billing department who assured me the order was currently processing and verified the order #. I asked him whether or not it was typical for a customer to not receive a confirmation email for an order placed and he said it can sometimes take up to 2-3 business days. He then stated that he had taken note of the issues I was experiencing and told me he would transfer me to the sales department as they would be able to provide more information regarding the shipment of both devices and a confirmation email, as he stated he did not want me to have to wait any longer than necessary to receive said devices.
    I was then transferred to Devon in the sales department via the live chat service where I was then required to repeat everything I had said to both Bryan and the other representatives I had spoken too. After a lengthy discussion and repeating everything I have just wrote he told me the order was indeed processing and that he would send a confirmation email in the next 30 minutes.
    That was 2 hours ago. It is now 8am Alaska time and I still have not received a confirmation email regarding my order. I was sent an email by Verizon an hour ago stating I had a device to "discover". The email contained no information regarding the shipment of my device, the order confirmation number, or anything regarding my account. The email I received was a typical spam email asking an individual to check out the current available phones and sign up for a new contract.
    All I want is a confirmation email to assure that the devices are being sent. I need my phone for work and to communicate with my family in the lower 48. I desperately need to make sure that the device is in fact being sent to the proper address, this is why a confirmation email of the order is so important. I do not care about the shipping speed I just want what I ask to be taken care of for a change. I would hate to sit here unable to determine what the status of my devices are only for the order to be stuck in "processing" limbo and be unable to receive the devices when I was told they would be sent.
    I feel I have been given the run around treatment way more than is typically given with any company when an individual is trying to work towards a solution. I have been patient and cordial with everyone I have spoken with, I have not raised my voice or shown stress or anger towards the situation I have only tried my best to work towards a solution with anyone I have spoken too but I am becoming increasingly frustrated with this situation.
    Any help regarding this matter would be greatly appreciated. This situation has left a sour taste in my mouth and if the devices were indeed not actually processed in an order, or they were not shipped correctly, or in fact if the order had never existed at all it will only deter me from keeping my Verizon account active and affect my decision to switch to another provider.

        Hello APVzW, we absolutely want the best path to resolution. My apologies for multiple attempts of replacing the device. We'd like to verify the order information and see if we can locate the tracking number. Please send a direct message with the order number so we can dive deeper. Here's steps to send a direct message: http://vz.to/1b8XnPy We look forward to hearing from you soon.
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

  • Vendor Line item with Opening and Closing Balances report regarding

    Dear All,
    I need a report for vendor line items with Opening and Closing balances.
    Thanks in advance
    Sateesh

    Hi
    Try S_ALR_87012082 - Vendor Balances in Local Currency
    Regards
    Sanil Bhandari

  • Regarding training and event management queries

    hi experts,
    in my company we have ess in which training and event management module is working fine.i need to develop a report in which training booked against employee through tc-psv1 means in sap-r/3 and through ess means tc-pv8i will come.means saggregation for sap r/3 and ess will come.
    please help me regarding this.
    how will i identifie that training has been booked against employees  through sap r/3 or ess on what paramenet we will identifie.
    plz help me....
    is there any function module;....

    solved by own

  • Regarding Exporting and Importing internal table

    Hello Experts,
    I have two programs:
    1) Main program: It create batch jobs through open_job,submit and close job.Giving sub program as SUBMIT.
    I am using Export IT to memory id 'MID' to export internal table data to sap memory in the subprogram.
    The data will be processed in the subprogram and exporting data to sap memory.I need this data in the main program(And using import to get the data,but it is not working).
    Importing IT1 from memory id 'MID' to import the table data in the main program after completing the job(SUBMIT SUBPROGRAM AND RETURN).
    Importing is not getting data to internal table.
    Can you please suggest something to solve this issue.
    Thank you.
    Regards,
    Anand.

    Hi,
    This is the code i am using.
    DO g_f_packets TIMES.
    * Start Immediately
           IF NOT p_imm IS INITIAL .
             g_flg_start = 'X'.
           ENDIF.
           g_f_jobname = 'KZDO_INHERIT'.
           g_f_jobno = g_f_jobno + '001'.
           CONCATENATE g_f_jobname g_f_strtdate g_f_jobno INTO g_f_jobname
                                                  SEPARATED BY '_'.
           CONDENSE g_f_jobname NO-GAPS.
           p_psize1 = p_psize1 + p_psize.
           p_psize2 = p_psize1 - p_psize + 1.
           IF p_psize2 IS INITIAL.
             p_psize2  = 1.
           ENDIF.
           g_f_spname = 'MID'.
           g_f_spid = g_f_spid + '001'.
           CONDENSE g_f_spid NO-GAPS.
           CONCATENATE g_f_spname  g_f_spid INTO g_f_spname.
           CONDENSE g_f_spname NO-GAPS.
    * ... (1) Job creating...
           CALL FUNCTION 'JOB_OPEN'
             EXPORTING
               jobname          = g_f_jobname
             IMPORTING
               jobcount         = g_f_jobcount
             EXCEPTIONS
               cant_create_job  = 1
               invalid_job_data = 2
               jobname_missing  = 3
               OTHERS           = 4.
           IF sy-subrc <> 0.
             MESSAGE e469(9j) WITH g_f_jobname.
           ENDIF.
    * (2)Report start under job name
           SUBMIT (g_c_prog_kzdo)
                  WITH p_lgreg EQ p_lgreg
                  WITH s_grvsy IN s_grvsy
                  WITH s_prvsy IN s_prvsy
                  WITH s_prdat IN s_prdat
                  WITH s_datab IN s_datab
                  WITH p1      EQ p1
                  WITH p3      EQ p3
                  WITH p4      EQ p4
                  WITH p_mailid EQ g_f_mailid
                  WITH p_psize EQ p_psize
                  WITH p_psize1 EQ p_psize1
                  WITH p_psize2 EQ p_psize2
                  WITH spid     EQ g_f_spid
                  TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                  VIA JOB g_f_jobname NUMBER g_f_jobcount AND RETURN.
    *(3)Job closed when starts Immediately
           IF NOT p_imm IS INITIAL.
             IF sy-index LE g_f_nojob.
               CALL FUNCTION 'JOB_CLOSE'
                 EXPORTING
                   jobcount             = g_f_jobcount
                   jobname              = g_f_jobname
                   strtimmed            = g_flg_start
                 EXCEPTIONS
                   cant_start_immediate = 1
                   invalid_startdate    = 2
                   jobname_missing      = 3
                   job_close_failed     = 4
                   job_nosteps          = 5
                   job_notex            = 6
                   lock_failed          = 7
                   OTHERS               = 8.
               gs_jobsts-jobcount = g_f_jobcount.
               gs_jobsts-jobname  = g_f_jobname.
               gs_jobsts-spname   = g_f_spname.
               APPEND gs_jobsts to gt_jobsts.
             ELSEIF sy-index GT g_f_nojob.
               CLEAR g_f_flg.
               DO.                         " Wiating untill any job completion
                 LOOP AT gt_jobsts into gs_jobsts.
                   CLEAR g_f_status.
                   CALL FUNCTION 'BP_JOB_STATUS_GET'
                     EXPORTING
                       JOBCOUNT                         = gs_jobsts-jobcount
                       JOBNAME                          = gs_jobsts-jobname
                    IMPORTING
                       STATUS                           = g_f_status
    *            HAS_CHILD                        =
    *          EXCEPTIONS
    *            JOB_DOESNT_EXIST                 = 1
    *            UNKNOWN_ERROR                    = 2
    *            PARENT_CHILD_INCONSISTENCY       = 3
    *            OTHERS                           = 4
                   g_f_mid = gs_jobsts-spname.
                   IF g_f_status = 'F'.
                     IMPORT gt_final FROM MEMORY ID g_f_mid .
                     FREE MEMORY ID gs_jobsts-spname.
                     APPEND LINES OF gt_final to gt_final1.
                     REFRESH gt_prlist.
                     CALL FUNCTION 'JOB_CLOSE'
                       EXPORTING
                         jobcount             = g_f_jobcount
                         jobname              = g_f_jobname
                         strtimmed            = g_flg_start
                       EXCEPTIONS
                         cant_start_immediate = 1
                         invalid_startdate    = 2
                         jobname_missing      = 3
                         job_close_failed     = 4
                         job_nosteps          = 5
                         job_notex            = 6
                         lock_failed          = 7
                         OTHERS               = 8.
                     IF sy-subrc = 0.
                       g_f_flg = 'X'.
                       gs_jobsts1-jobcount = g_f_jobcount.
                       gs_jobsts1-jobname  = g_f_jobname.
                       gs_jobsts1-spname   = g_f_spname.
                       APPEND gs_jobsts1 TO gt_jobsts.
                       DELETE TABLE gt_jobsts FROM gs_jobsts.
                       EXIT.
                     ENDIF.
                   ENDIF.
                 ENDLOOP.
                 IF g_f_flg = 'X'.
                   CLEAR g_f_flg.
                   EXIT.
                 ENDIF.
               ENDDO.
             ENDIF.
           ENDIF.
           IF sy-subrc <> 0.
             MESSAGE e539(scpr) WITH g_f_jobname.
           ENDIF.
           COMMIT WORK .
         ENDDO.

  • Who do I complain to regarding an Apple iPhone upgrade that has taken my my full screen contact picture and turned it into a tiny circle that is hard to see at a glance!!!

    I'm trying to find an outlet for the frustration I feel regarding the "upgrade" that replaced my full screen picture for my contact numbers to a tiny, little dot in the right hand corner.  Are they going to give us an option to go back or did someone  just need to justify their job by making  changes??

    Apple.com/feedback

  • Is there a major flaw with Iphoto in regards to organizing and backing up?

    Is there a major flaw with Iphoto in regards to organizing and backing up? And how should I proceed??
    Here is my story. I have moved roughly 15,000 photos from 7 computers (4 PCs and 3 Macs - basically everyone's computer in the family) onto one external hard drive. The photos were taken by many different digital cameras, are sparsely labeled, and have the most random names and folders. There are a LOT of duplicates. MY MISSION - label and back them up.
    The way I normally deal with photos/DATA is this: I plug my camera into my Mac and immediately think about organizing and backing them up. With "Preview" I look at photos (and decide which one I like), create a folder called "where-ever I took these photos" and drag them into that folder. The problem with Iphoto is that you have no ability to control folders, unlike many other applications.
    For example, in Itunes you can rename an artist, or even an album, and it will automatically appear in an updated folder. If you alter a photo in Photoshop, it makes you save it is a new file. In Iphoto you cannot make the same "root level" changes without making duplicates. From what I understand, you can place photos into an Album and then export that album (which makes duplicates). Iphoto will rename each duplicate file and then place it in the correct folder. The problem here is I have no idea where the original is to delete it.
    Basically I want to create folders called "Trip to Italy 2003" or "Rachel's Wedding" and place all the photos associated with that event in those folders. The problem I run into is that I have a bunch of duplicates. I have heard of a program called Duplicate Annihilator which has gotten favorable reviews. If I import them into Iphoto all the photos are placed in random named folders. I say random because some of the photos were taken on cameras that didn't have the date set correctly. Hence some of my photos will appear in a labyrinth of folders called "Modified / 2001 / Roll 17 / DCM482 / Image25874654.jpg"
    I am totally willing to wipe my Iphoto library clean and start again if there is a way to organize the photos as described above. Eventually I will take these folders and save them on a data DVD.
    Thanks to anyone who can help.
    Gary

    You do not need to delve into the folders within the iPhoto Library via the finder to access any photo. That is all done within iPhoto itself. If you need a photo for use outside of iPhoto read Terence Devlin's treatise on file access. iPhoto is a DAM application - Digital Asset Management, not a folder manager. There's a big difference. You can use keywords, album and smart albums to organize your photos.
    If you still have the original files you might consider what I do. I rename each file with the date it was taken using the international date format: YYYY-MM-DD-001.jpg. You can download the demo version ofMedia Expression and automatically rename each folder of photos with the EXIF date and a sequential number. This makes chronological searching and sorting much easier both in iPhoto and the Finder.
    If you want to not only manage the photos but the folders then Expression Media will let you do both. It will let you rename files after being imported into a catalog, move them between folders, add ITPC metadata to the files, create virtual albums called Supplemental categories, and much, much more. I use it as my primary DAM and iPhoto for special projects like books, slideshows, calendars, etc.

  • Problem in creation of FSV regarding where to assign the specific GL acct

    Dear All,
    Currently i am working on creation of Financial Statement Version, and have some doubt regarding some of GL account as to where it will get assigned.
    1.Consumption of RM or SFG
    2. Cost of Production of FG
    3. Cost of Good Sold.
    Kindly also tell the relation between the above GL and how it will effect the Balance sheet. and why this is used for.
    Example is below
    1. At the time of issue of RM material to Production order
    Consumption of RM  100
      To Inventay of RM          100
    2.*At the time of Confirmation of FG *
    Inventory of FG                           120               
      To Cost of Production of FG              120
    3. At the time of PGI
    Cost of Good Sold     120
      To Inv of FG                      120
    Thanks in advance
    Regards
    Shayam
    Edited by: Shayam_210 on Aug 9, 2010 9:33 AM

    hi,
    These are all P&L GL accounts and need to be allocated under profit and loss accounts node.
    Under that profit and loss node, there may be diff sub items also.
    Sub item has to be decide d by you depending upon the FSV structure in your org.
    Regards,
    Srinu

  • CUP - Issue regarding creation of New SAP ID in CUP.

    System :  SAP GRC 5.3 SP 12..
    We have requirement where in we need to design a workflow for creation of New SAP ID.
    The Naming convention followed for SAP ID is FIRST LETTER of FIRST NAME and LAST NAME with maximum 8 characters.
    For Eg
    JOHN SMITH would have SAP ID as JSMITH
    JERRY SMITH would  have SAP ID as  JSMITH01
    The requirement here is when user fill the REQUEST FORM for NEW User ID there is field where in the requestor need to put the desired SAP ID,
    Can a validation be set OR Logic be written so that user can put the SAP ID as per the naming convention..?
    Also , any other solution as to how the situtation can be handled in CUP...
    Regards.
    Ajit

    Hi Ajit,
    Yes, you can maintain the user ID in the Active Directory. User id will be now auto populated in the request form, from Active Directory when  we data Source is LDAP -Actice directory. So when user login to end user form to create a request, It's all information( user details + manager details ) will fetched from Active Directory.
    It is not possible to change userid in later stage of approval in the request.
    You can have security as final stage and guide them to create user manually as per naming convention.
    Make auto provisioning OFF in CUP
    Kind Regards,
    Srinivasan

Maybe you are looking for

  • Explain Plan and  COST

    Hi, Is there any relationship between the cost factor in the explain plan and query execution time. I have come across situations in both ways, i.e. high cost and low execution time, low cost and high execution time. What parameters do we need to con

  • Viewing and sending attachments with gmail

    I have the gmail app installed and can not view or send attachments. If I use the BB email it works fine. Anyone know how to get the gmail app to manage attachments or is this not possible with gmail app? Thanks

  • Using JSplitPane for Comparing two Files/Contents

    Hi Java Gurus, I want to develope a Comparison tool which compares 2 jar files and report the difference in a user friendly manner. Everything is fine and i selected the JSplitPane to display the difference report. I face some problems in doing it ex

  • VPRS from INFOREC and not from MBEW-VERPR

    Hi, During POS sales update in ECC 6.0, the VPRS (cost) was taken from MAP value in Table MBEW. This is not the same as the agreed PP price as stored in Purchase info record. How can I configure the sales pricing procedure to seek VPRS from PIR inste

  • I hope next Premiere Pro CC update comes with LetterBox presets

    We missing in build letterbox presets i hope next version comes with letterbox presets