Regarding CS_BOM_EXPL_MAT_V2 and table returned STB

Hi Gurus ,
I am facing one diffulty.
I am calling following FM
      CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
           EXPORTING
                capid                 = ' '
                datuv                 = pa_datga
                mdmps                 = lv_dummy
                mehrs                 = lv_mehr
                mtnrv                 = ls_mast-matnr
                stlal                 = ls_mast-stlal
                stlan                 = ls_mast-stlan
                svwvo                 = gc_x
                werks                 = pa_werks
                vrsvo                 = gc_x
           IMPORTING
                topmat                = ls_bom_header
           TABLES
                stb                   = lt_pos
           EXCEPTIONS
                alt_not_found         = 1
                call_invalid          = 2
                material_not_found    = 3
                missing_authorization = 4
                no_bom_found          = 5
                no_plant_data         = 6
                no_suitable_bom_found = 7
                conversion_error      = 8
                OTHERS                = 9.
I am doing multilevel & dummy Bom explosion .
One internal table is returned  " stb                   = lt_pos"
But i am not able to relate which is assmbly & its sub components .
Also Dummy Bom assembly & components from the table returned .
May be stufe field is making some sence as level , But still couldnt find the realtion between all IDNRK .
Please help me to solve this puzzle .

hi flavio,
this report is used for total raw material estimation for the fiascal year for particular material.
my exact requirement is on the selection screen i have  material,year,target qty.
when user pressess  execute i need to display all the raw materials (to lower bom level) required for the material
proportional to the target qty.
for this i have used functiuon module CS_BOM_EXPL_MAT_V2 and able to retrieve the lower bom
level raw materials and their quantities  into ltab and root material and its subcomponents into mtab
in this raw materials used for sub comp[onents and for the root material may overlap  but the recipe for the raw materials
depends on the bom of base quantity of root material,
here my problem is how to differentiate the raw materials belongs to root material and its subcomponents ,( to perform
calculations against the target quantity) which we r getting in ltab of fm after bom explosion.
anybody pls suggest me .

Similar Messages

  • Stored procedure and function - return table type

    Hello again :)
    I have one simple question :) Maybe on this forum the question was asked, but I found only similar question and they didn't help me.
    It's possible return in Stored Function (with StoredProcedureFunction) as result return TABLE type? Or return table type with output parametr with Stored Procedure? Or instead of the table return the db object, but it is similar problem:)
    Now, I can using db types TABLES or DB OBJECTS as INPUT parameters with call stored functions or procedures, for example:
    I have this simple db object:
    create or replace type BUFFER_DATA_R as object( detail  VARCHAR2(4000 ))
    And this simple table:
    CREATE OR REPLACE TYPE BUFFER_DATA_T IS TABLE OF BUFFER_DATA_R
    I create simple domain class object:
    *public class DMBufferDataStruct {*
    public String bufferData;
    And I mapped in java with ObjectRelationalDataTypeDescriptor:
    ObjectRelationalDataTypeDescriptor descriptor = new ObjectRelationalDataTypeDescriptor();
    descriptor.setJavaClass(DMBufferDataStruct.class);
    descriptor.setTableName("BUFFER_DATA_T");
    descriptor.setStructureName("BUFFER_DATA_R");
    descriptor.setPrimaryKeyFieldName("DETAIL");
    descriptor.addFieldOrdering("DETAIL");
    descriptor.addDirectMapping("bufferData", "DETAIL");
    and join to server session ...
    Well, i using this doimain class object as input parametr wih stored procedure call:
    ObjectRelationalDatabaseField ordf = new ObjectRelationalDatabaseField("");
    ordf.setSqlType(Types.STRUCT);
    spCall.addNamedArgument(key, key,
    Types.ARRAY,
    "BUFFER_DATA_T",
    ordf);           
    query.addArgument(key);
    args.add(paramsInputs.get(key));
    in paramsInputs is Vector of DMBufferDataStruct...
    Well, this work fine!
    But I can not figure, how to return this table from output parameters of stored procedure or as a return value from stored function?
    Example of exceptions:
    The number of arguments provided to the query for execution does not match the number of arguments in the query definition. - return as output parameter
    PLS-00382: expression is of wrong type - used as result from stored function
    So, my question is: Is possible return this table type from stored procedure or function? And if YES, how can I set output argument for call?
    Thx advance!
    Sorry for my English! :)
    Best regards, KLD

    Your question is: what is faster PL/SQL or PL/SQL? And the answer is: it is PL/SQL of course!
    As a general rule, you use a function when you return exactly one result: a number or a string or (more complex) instance of an object type or REF CURSOR or PL/SQL collection.
    You use a procedure when:
    a) you just do the job and return no result
    b) you return multiple results - you can use multiple IN/OUT or OUT parameters
    Imagine you have to write a program unit that performs a partitioned table maintenance by adding a partition.
    You can implement this unit:
    a) if you want return a "status code" (0 on successful completion or non-zero in case of error) then you should use a function
    b) if you want no "status code" (in case of error an exception is raised that is handled outside of the program unit) then you should use a procedure
    c) if you want "status code", name of tablespace where a partition was created (assume you program is so complex that it can choose different tablespaces based on metadata and free space available) and free space in that tablespace after the creation of a new partition then you should use a procedure with 3 OUT parameters.
    But these are good programming practices that can be applied to (almost) any 3rd generation programming language, not only PL/SQL.

  • Regarding Mail:  When I return to my computer after it has gone to sleep, my accounts go offline, and are always asking me for the password.  THis is very annoying.  How can I prevent this?

    Regarding Mail:  When I return to my computer after it has gone to sleep, my accounts go offline, and are always asking me for the password.  THis is very annoying.  How can I prevent this?

    Back up all data.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Select the login keychain from the list on the left side of the Keychain Access window. If your default keychain has a different name, select that.
    If the lock icon in the top left corner of the window shows that the keychain is locked, click to unlock it. You'll be prompted for the keychain password, which is the same as your login password, unless you've changed it.
    Right-click or control-click the login entry in the list. From the menu that pops up, select Change Settings for Keychain "login". In the sheet that opens, uncheck both boxes, if not already unchecked.
    From the menu bar, select
    Keychain Access ▹ Preferences ▹ First Aid
    If the box marked Keep login keychain unlocked is not checked, check it.
    Select
    Keychain Access ▹ Keychain First Aid
    from the menu bar and repair the keychain. Quit Keychain Access.

  • EBS architecture regarding DB, tablespace, users and tables

    Hi All,
    I do have some questions regarding the database, data model, table space... architecture of an EBS 12.1.1 installation (I use Windows 2008 as platform):
    1)
    Table space:
    Is it correct that the table space used for EBS Apps tables is applsys? Is there more than one table space used for EBS tables?
    2)
    User:
    The Database user used by EBS to connect to the DB is "apps", right? The users mfg, sysadmin... are logical users which do not have a correspondent db account. Is that correct as well?
    3)
    DB Access:
    How can I setup the right environment to access the DB. In order to execute sqlplus, I need to set a proper environment. There is a script called "c:\oracle\VIS\apps\apps_st\appl\VIS_ebs1.cmd". Is that the right script?
    I do have more that one script with that name. Example: C:\oracle\VIS\inst\apps\VIS_ebs1\ora\10.1.3\VIS_ebs1.cmd
    How do I know, which one is the right script for what purpose?
    4)
    Data model and tables:
    I found etrm which should give an overview of the EBS data model (and much more), but up to know, I'm not wuite sure how to use it to find the information I'm looking for.
    Example: I would like to know where EBS items are stored. I found these tables:
    INVFG_ITEMS
    INVFV_ITEMS.
    In INVFG_ITEMS I was able to find my newly created items, but is it the "main" table for items. How can I find that out? Is etrm the right tool for this?
    In etrm, there is a section with FND and another section with DBA. What is the difference and when would I use which section?
    I'm sorry for that much questions but right now, my understanding of the EBS and it's architecture is still very basic and these are things which I need to know in order to get a better picture...
    Many thanks,
    Konrad

    Hi Konrad;
    1)
    Table space:
    Is it correct that the table space used for EBS Apps tables is applsys? Is there more than one table space used for EBS tables?There are some other tablespace for EBS. Please check Oracle Application Concept manuel Part 3-4
    For r12.1.1:
    http://download.oracle.com/docs/cd/B53825_01/current/html/docset.html
    2)
    User:
    The Database user used by EBS to connect to the DB is "apps", right? The users mfg, sysadmin... are logical users which do not have a correspondent db account. Is that correct as well?For windows installation there is only one user for can connect db and apps and also run utulity liek (adpatch etc)
    For unix/linux we can use 2 users,1 for dbtier and other for appstier.
    MFG sysadmin etc... those are EBS user which is pre-define before.
    Please check user guide and also installation guide
    For r12.1.1:
    http://download.oracle.com/docs/cd/B53825_01/current/html/docset.html
    3)
    DB Access:
    How can I setup the right environment to access the DB. In order to execute sqlplus, I need to set a proper environment. There is a script called "c:\oracle\VIS\apps\apps_st\appl\VIS_ebs1.cmd". Is that the right script?For Windows, for can accsess apps or db you have top run env file, This file contains information about your ebs. You have to run below cmd for can access for db or apps
    For db:
    c:\oracle\VIS\db\tech_st\11.1.0\VIS_ebs1.cmd (SID_Hostname.cmd)
    For apps:
    c:\oracle\VIS\apps\apps_st\appl\APPSVIS_ebs1.cmd (APPSSID_Hostname.cmd)
    4)
    Data model and tables:
    I found etrm which should give an overview of the EBS data model (and much more), but up to know, I'm not wuite sure how to use it to find the information I'm looking for.
    Example: I would like to know where EBS items are stored. I found these tables:
    INVFG_ITEMS
    INVFV_ITEMS.
    In INVFG_ITEMS I was able to find my newly created items, but is it the "main" table for items. How can I find that out? Is etrm the right tool for this?Please check below:
    table and column name in R12 web screen
    Check the table and column name in R12 web screen
    Re: What is Best Way to Get Table Name in Oracle Applications : 12.1.1 (web)
    Hope those are helps
    Regard
    Helios

  • Lookup and a return table

    1.0 what's a lookup and a return table,  are they same thing?
    2.0 how do you create it?
    thanks

    Hi,
    a lookup table to enhance your data while loading. For instance you load sales in a cube and your source is providing the site and you require to post the Sale Organization.
    In a start routine (Ttransfer or Update rules) you fill via ABAP a lookup table having the relation site to Sales Org.
    In the sales org routine you read this lookup table with the key site and post the corresponding sales org in your IObj.
    The return table functionality in update rules:
    Imagine you are loading sales in a KF in a cube. Your requirement is have a year to date key figure stored as well in your cube.
    So you load sales for January, posted to period JAN.
    You would need to post this record for next 11 months as well in order to able to see YTD sales correctly when you select period FEB.
    The return table enables you to post many records from 1 loaded records.
    The lookup tables are created as internal table via ABAP in start routines
    The return table is located in an update routine for a particular key figure and you use ABAP as well
    Hoping this will answer your enquiries
    Olivier.

  • Serial number field and table

    Hi,
    I want Serial number field and table,
    Scenario like this,for returnable packging material we have assigned serial numbers,mtrl type is LEIH,so for tracking of RTP material now we are going to Develop one Report for this i need ur Help.
    Logic is:1)Matrl doc at the time of Delievery.
                Qty,Posting Date,Customer,Mvt type,Serial numbers for all.
                 Beacause at the time of Del we are mentioned all serial numbrs.
                2)Material Document at the time of GI.
                Same field as mentioned as above.
    After that,3)System is to Calculate How many Matrl are deliever to Custmer upto current  Period.Say  10.
    4)Calculte  How many Matrl are Recieved from the Custmer upto current  period.say 5
    5)Del - Issue=Total Number of Material is in Customer side.Say 5
    6)According to the Serial Number wise system has to calculate in which month delieverred matrl is in still customer side.
    (Ex PGI date 20.02.2007  3 qty
    Serial Number    1,2,3
    Issue date    20.03.2007   2 qty
    Serial Number    2,3
    Serial number  1 still is in Customer side.
    Age is 2 month)
    I am giving simple ex.
    so pls any body is having this idea pls Shared with me.
    Thanks
    Raghu

    Hi Raghu,
    Check table SER01(Document Header for Serial Numbers for Delivery).
    OBJK is the object table and you will have SERNR as serial number in this table.
    check table EQUI
                          EQUI -SERGE
                          EQUI-GERNR.
    EQUI-SERGE is Manufacturer serial number.chk if this is the one u r looking for.
    MARC-SERNP.
    key in plant and material in this table to fetch the Serial number profile of the material.
    Check in IKPF AND ISEG Tables... ( inventory )
    MSEG~EQUNR
    Hope it will hep u
    Regards
    Hareesha

  • User Exits for Invoice creation ,cancellation and sales return

    Hi Gurus,
    Pl help me it's very urgent.
    I did not find any user exit invoice creation so i wrote the following code in include program
    MV60AF0B_BELEG_SICHERN.
    This code is to update the Z*table while saving invoice ,cancellation and sales return.
    The code modification is like below
          FORM BELEG_SICHERN                                            *
          Buchen Fakturabelege                                          *
    FORM BELEG_SICHERN.
      READ TABLE XVBRK INDEX 1.
      IF SY-SUBRC NE 0.
        CALL FUNCTION 'DEQUEUE_ALL'.
        MESSAGE S032.
        EXIT.
      ENDIF.
      IF SAMH_MOD = ON.
        EXPORT XKOMFK TO MEMORY ID 'SDBILLDL'.
      ENDIF.
      DATA: CALC_TYPE.
      IF REBATE_DETERMINED = 'Y'.
        CALC_TYPE = 'A'.
      ELSE.
        CALC_TYPE = 'I'.
      ENDIF.
    *{   INSERT         RD1K903017                                        1
    Work Area*********************
    data : wa_xvbrk type VBRKVB.
    data : wa_xvbrp type vbrpvb.
    data : wa_zmigo type zmigo.
    data : wa_vbrp type vbrp.
    Internal table Creation*******
    DATA:  BEGIN OF tab_XVBRP OCCURS 100.
             INCLUDE STRUCTURE VBRPVB.
    DATA:  END OF tab_XVBRP.
    data : begin of tab_vbeln occurs 10,
           vbeln type vbrk-vbeln,
           knumv type vbrk-knumv,
           end of tab_vbeln.
    data : tab_zmigo type table of zmigo.
    data : tab_vbrp type table of vbrp.
    *****Data declaration*************
    data : v_no_of_inv type i.
    data : v_vbeln_no(10) type n.
    data : v_last_inv_no(10) type n.
    data : v_first_inv_no(10) type c.
    data : v_tot_qty type i.
    data : v_frbnr type mkpf-frbnr.
    *******Ranges*********************
    ranges : r_vbeln for vbrk-vbeln.
    *****Populating IT****************
    tab_xvbrp[] = xvbrp[].
    describe table xvbrk lines v_no_of_inv.
    *}   INSERT
      CALL FUNCTION 'RV_INVOICE_DOCUMENT_ADD'
           EXPORTING
                VBSK_I           = VBSK
                WITH_POSTING     = 'A'
                PREISFINDUNGSART = CALC_TYPE
           IMPORTING
                VBSK_E           = VBSK
           TABLES
                XKOMFK           = XKOMFK
                XTHEAD           = XTHEAD
                XVBFS            = XVBFS
                XVBSS            = XVBSS
                XVBRK            = XVBRK
                XVBRP            = XVBRP
                XVBPA            = XVBPA
                XKOMV            = XKOMV.
    *{   INSERT         RD1K903017                                        2
    data : v_count type i,v_fkimg type i .
    data : v_no_of_records(10) type n.
    wa_xvbrk = xvbrk.
    ********Selecting the last rec no from ZMIGO
          select max( sr_no ) from zmigo into v_no_of_records.
    *****If Distribution channel is not ZB*********
    if  wa_xvbrk-vtweg ne 'ZB' and ( wa_xvbrk-fkart = 'ZRIN' or wa_xvbrk-fkart = 'ZRTE' ).
    if v_no_of_inv = 1.              " Process only when there is one invoice
    loop at tab_xvbrp into wa_xvbrp  where (           matnr ne 'CDGSTP0001'       and
                                                       matnr ne 'CD-RW'            and
                                                       matnr ne 'CD-RW65OHS'       and
                                                       matnr ne 'CABLE'            and
                                                       matnr ne 'CD-R'             and
                                                       matnr ne 'CDQ80N4'          and
                                                       matnr ne 'GENERAL'          and
                                                       matnr ne 'NERO'             and
                                                       matnr ne 'OTHERS'           and
                                                       matnr ne 'SPARE PARTS'      and
                                                       matnr ne 'PROMO ITEM'       and
                                                       matnr ne 'PROMO-1'          and
                                                       matnr ne 'PROMO-2'          and
                                                       matnr ne 'PROMO-3'          and
                                                       matnr ne 'PROMO-4'          and
                                                       matnr ne 'PROMO-5'          and
                                                       matnr ne 'PROMO-6'          and
                                                       matnr ne 'PROMO-7'          and
                                                       matnr ne 'PROMO-8'          and
                                                       matnr ne 'PROMO-9'          and
                                                       matnr ne 'PROMO-10' ).
    v_fkimg = wa_xvbrp-fkimg .
    v_fkimg = v_fkimg / 1000.
                do v_fkimg times.
                  v_no_of_records = v_no_of_records + 1.
                  wa_zmigo-sr_no = v_no_of_records.
                  wa_zmigo-po_no = wa_xvbrk-vbeln.
                  wa_zmigo-item_no  = wa_xvbrp-posnr.
                 wa_zmigo-mblnr  = wa_xmkpf-mblnr.
                  wa_zmigo-doc_type = wa_xvbrk-fkart.
                  wa_zmigo-posting_date = wa_xvbrk-fkdat.
                  wa_zmigo-created_on = sy-datum.
                  wa_zmigo-created_time = sy-uzeit.
                 wa_zmigo-bill_lno = v_frbnr.
                  wa_zmigo-material = wa_xvbrp-matnr.
                 wa_zmigo-inv_no = wa_xvbrk-vbeln.
                 wa_zmigo-inv_item_no = wa_xvbrp-posnr.
                  wa_zmigo-plant = wa_xvbrp-werks.
                  wa_zmigo-inv_date = wa_xvbrk-fkdat.
                  wa_zmigo-customer = wa_xvbrk-kunag.
                  wa_zmigo-unit = 1.
                  wa_zmigo-mtype = '601'.
                  insert into zmigo values wa_zmigo.
                enddo.
                clear : wa_zmigo.
    endloop.
    clear : v_count,v_fkimg,wa_zmigo.
    refresh tab_zmigo[].
    clear v_no_of_inv.
    else.                              "When there are Split Invoices
    v_last_inv_no = wa_xvbrk-vbeln.
    v_vbeln_no = v_last_inv_no - v_no_of_inv + 1.
    v_first_inv_no = v_vbeln_no.
    sort tab_xvbrp by vbeln.
    loop at tab_xvbrp into wa_xvbrp  where (           matnr ne 'CDGSTP0001'       and
                                                       matnr ne 'CD-RW'            and
                                                       matnr ne 'CD-RW65OHS'       and
                                                       matnr ne 'CABLE'            and
                                                       matnr ne 'CD-R'             and
                                                       matnr ne 'CDQ80N4'          and
                                                       matnr ne 'GENERAL'          and
                                                       matnr ne 'NERO'             and
                                                       matnr ne 'OTHERS'           and
                                                       matnr ne 'SPARE PARTS'      and
                                                       matnr ne 'PROMO ITEM'       and
                                                       matnr ne 'PROMO-1'          and
                                                       matnr ne 'PROMO-2'          and
                                                       matnr ne 'PROMO-3'          and
                                                       matnr ne 'PROMO-4'          and
                                                       matnr ne 'PROMO-5'          and
                                                       matnr ne 'PROMO-6'          and
                                                       matnr ne 'PROMO-7'          and
                                                       matnr ne 'PROMO-8'          and
                                                       matnr ne 'PROMO-9'          and
                                                       matnr ne 'PROMO-10' ).
    v_fkimg = wa_xvbrp-fkimg .
    v_fkimg = v_fkimg / 1000.
                do v_fkimg times.
                  v_no_of_records = v_no_of_records + 1.
                  wa_zmigo-sr_no = v_no_of_records.
                  wa_zmigo-po_no = v_vbeln_no.                      "wa_vbrp-vbeln.
                  wa_zmigo-item_no  = wa_xvbrp-posnr.
                 wa_zmigo-mblnr  = wa_xmkpf-mblnr.
                  wa_zmigo-doc_type = wa_xvbrk-fkart.
                  wa_zmigo-posting_date = wa_xvbrk-fkdat.
                  wa_zmigo-created_on = sy-datum.
                  wa_zmigo-created_time = sy-uzeit.
                 wa_zmigo-bill_lno = v_frbnr.
                  wa_zmigo-material = wa_xvbrp-matnr.
                 wa_zmigo-inv_no = v_vbeln_no.
                 wa_zmigo-inv_item_no = wa_xvbrp-posnr.
                  wa_zmigo-plant = wa_xvbrp-werks.
                  wa_zmigo-inv_date = wa_xvbrk-fkdat.
                  wa_zmigo-customer = wa_xvbrk-kunag.
                  wa_zmigo-unit = 1.
                  wa_zmigo-mtype = '601'.
                  insert into zmigo values wa_zmigo.
                enddo.
                clear : wa_zmigo.
    at end of vbeln.
    v_vbeln_no = v_vbeln_no + 1.
    endat.
    clear : v_count,v_fkimg,wa_zmigo.
    refresh tab_zmigo[].
    endloop.
    endif.                             "End of first 2nd IF.
    clear : v_no_of_inv, v_vbeln_no.
    endif.
    ****************Sales return************************************
    if  wa_xvbrk-fkart = 'ZRRE' and wa_xvbrk-vtweg ne 'ZB'.
    loop at tab_xvbrp into wa_xvbrp where (            matnr ne 'CDGSTP0001'       and
                                                       matnr ne 'CD-RW'            and
                                                       matnr ne 'CD-RW65OHS'       and
                                                       matnr ne 'CABLE'            and
                                                       matnr ne 'CD-R'             and
                                                       matnr ne 'CDQ80N4'          and
                                                       matnr ne 'GENERAL'          and
                                                       matnr ne 'NERO'             and
                                                       matnr ne 'OTHERS'           and
                                                       matnr ne 'SPARE PARTS'      and
                                                       matnr ne 'PROMO ITEM'       and
                                                       matnr ne 'PROMO-1'          and
                                                       matnr ne 'PROMO-2'          and
                                                       matnr ne 'PROMO-3'          and
                                                       matnr ne 'PROMO-4'          and
                                                       matnr ne 'PROMO-5'          and
                                                       matnr ne 'PROMO-6'          and
                                                       matnr ne 'PROMO-7'          and
                                                       matnr ne 'PROMO-8'          and
                                                       matnr ne 'PROMO-9'          and
                                                       matnr ne 'PROMO-10' ).
             v_fkimg = wa_xvbrp-fkimg.
             v_fkimg = v_fkimg / 1000.
             v_tot_qty = v_tot_qty + v_fkimg.
              do v_fkimg times.
                v_no_of_records = v_no_of_records + 1.
                wa_zmigo-sr_no = v_no_of_records.
                wa_zmigo-po_no = wa_xvbrk-vbeln.
                wa_zmigo-item_no  = wa_xvbrp-posnr.
                wa_zmigo-doc_type = wa_xvbrk-fkart.
                wa_zmigo-posting_date = wa_xvbrk-fkdat.
                wa_zmigo-created_on = sy-datum.
                wa_zmigo-created_time = sy-uzeit.
                wa_zmigo-material = wa_xvbrp-matnr.
               wa_zmigo-inv_no = wa_xvbrk-vbeln.
               wa_zmigo-inv_item_no = wa_xvbrp-posnr.
                wa_zmigo-plant = wa_xvbrp-werks.
                wa_zmigo-inv_date = wa_xvbrk-fkdat.
                wa_zmigo-customer = wa_xvbrk-kunag.
                wa_zmigo-unit = 1.
                wa_zmigo-mtype = '651'.
                condense wa_xvbrk-xblnr.
                wa_zmigo-reference = wa_xvbrk-xblnr.
    ********Bill of lading no**
               select single bill_lno from zmigo_final into v_frbnr where inv_no = wa_xvbrk-xblnr and material = wa_xvbrp-matnr.
               if sy-subrc eq 0.
               wa_zmigo-bill_lno = v_frbnr.
               endif.
                insert into zmigo values wa_zmigo.
              enddo.
              clear : wa_zmigo,wa_xvbrp , v_fkimg, v_frbnr.
    endloop.
    endif.
    *******Invoice Cancellation*****************************
    if  wa_xvbrk-fkart = 'ZRS1' and wa_xvbrk-vtweg ne 'ZB'.
    delete tab_xvbrp[] where shkzg eq 'X'.
    loop at tab_xvbrp into wa_xvbrp where (            matnr ne 'CDGSTP0001'       and
                                                       matnr ne 'CD-RW'            and
                                                       matnr ne 'CD-RW65OHS'       and
                                                       matnr ne 'CABLE'            and
                                                       matnr ne 'CD-R'             and
                                                       matnr ne 'CDQ80N4'          and
                                                       matnr ne 'GENERAL'          and
                                                       matnr ne 'NERO'             and
                                                       matnr ne 'OTHERS'           and
                                                       matnr ne 'SPARE PARTS'      and
                                                       matnr ne 'PROMO ITEM'       and
                                                       matnr ne 'PROMO-1'          and
                                                       matnr ne 'PROMO-2'          and
                                                       matnr ne 'PROMO-3'          and
                                                       matnr ne 'PROMO-4'          and
                                                       matnr ne 'PROMO-5'          and
                                                       matnr ne 'PROMO-6'          and
                                                       matnr ne 'PROMO-7'          and
                                                       matnr ne 'PROMO-8'          and
                                                       matnr ne 'PROMO-9'          and
                                                       matnr ne 'PROMO-10' ).
             v_fkimg = wa_xvbrp-fkimg.
             v_fkimg = v_fkimg / 1000.
             v_tot_qty = v_tot_qty + v_fkimg.
              do v_fkimg times.
                v_no_of_records = v_no_of_records + 1.
                wa_zmigo-sr_no = v_no_of_records.
                wa_zmigo-po_no = wa_xvbrk-vbeln.
                wa_zmigo-item_no  = wa_xvbrp-posnr.
                wa_zmigo-doc_type = wa_xvbrk-fkart.
                wa_zmigo-posting_date = wa_xvbrk-fkdat.
                wa_zmigo-created_on = sy-datum.
                wa_zmigo-created_time = sy-uzeit.
                wa_zmigo-material = wa_xvbrp-matnr.
               wa_zmigo-inv_no = wa_xvbrk-vbeln.
               wa_zmigo-inv_item_no = wa_xvbrp-posnr.
                wa_zmigo-plant = wa_xvbrp-werks.
                wa_zmigo-inv_date = wa_xvbrk-fkdat.
                wa_zmigo-customer = wa_xvbrk-kunag.
                wa_zmigo-unit = 1.
                condense wa_xvbrk-zuonr.
                wa_zmigo-reference = wa_xvbrk-zuonr.
                wa_zmigo-mtype = '602'.
    ********Bill of lading no**
               select single bill_lno from zmigo_final into v_frbnr where inv_no = wa_xvbrk-xblnr and material = wa_xvbrp-matnr.
               if sy-subrc eq 0.
               wa_zmigo-bill_lno = v_frbnr.
               endif.
                insert into zmigo values wa_zmigo.
              enddo.
              clear : wa_zmigo,wa_xvbrp , v_fkimg.
    endloop.
    endif.
    clear : v_no_of_records.
    *}   INSERT
      CALL FUNCTION 'STACK_RESET'.
      R185D-DATALOSS = SPACE.
      FOLGEAUFRUF102 = SPACE.
      PERFORM SETPAR_INIT.
    *{   INSERT         RD1K903017                                        3
    *}   INSERT
      LEAVE.
    ENDFORM.
    This program is working fine for single user but in production where no of people are creating the invoices from different places the data is not getting updated in table ZMIGO.
    sometime populating with wrong data , partial data and sometimes no updation at all.
    I have used the table locking system enqueue and dequeue FM's before n after updation but still the same
    thing is happening.
    What could be the reason.
    Looking for help very urgent any other alternate option.

    Hi,
    Go thru these..
    Enhancement
    SDVFX009 Billing doc. processing KIDONO (payment reference numbe
    SDVFX010 User exit item table for the customer lines
    SDVFX011 Userexit for the komkcv- and kompcv-structures
    V05I0001 User exits for billing index
    V05N0001 User Exits for Printing Billing Docs. using POR Procedu
    V60A0001 Customer functions in the billing document
    V60P0001 Data provision for additional fields for display in lis
    V61A0001 Customer enhancement: Pricing
    SDVFX001 User exit header line in delivery to accounting
    SDVFX002 User exit for A/R line (transfer to accounting)
    SDVFX003 User exit: Cash clearing (transfer to accounting)
    SDVFX004 User exit: G/L line (transfer to accounting)
    SDVFX008 User exit: Processing of transfer structures SD-FI
    SDVFX007 User exit: Billing plan during transfer to Accounting
    SDVFX006 User exit: Tax line (transfer to accounting)
    SDVFX005 User exit: Reserves (transfer to accounting)
    Business Add-in
    SD_CIN_LV60AU02 BADI for billing
    If it is helpful rewards points
    Regards
    Pratap.M

  • Doubt in  export, import and table para when creating Function Module

    Dear fellow ABAPers,
    I have a doubt in defining export, import and table parameter while creating a function module.
    I am calling a function module inside a user exit. Now in the user exit the SAP fills an internal table called i_lfa1 with all the data user has eneterd.
    Now I want to pass this whole internal table to function module and the perform some checks on the values of internal table.
    After that function module fills an error structure with values depending on some check.
    1)
    How do I pass this internal table to function module ? 
    When I am creating function module in se37 where do I define this iternal table type ? Is it in Import or Table parameter during function module creation?
    2)
    Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
    Please clear my doubt..
    Relevant points will be awarded.
    Regards,
    Tushar.

    Hi Tushar,
    1. How do I pass this internal table to function module ?
       I assume u are creating your own Y/Z FM.
       Pass it thru TABLES parameter.
    2. When I am creating function module in se37 where do I define this iternal table type
       Define this in TABLES interface.
       What Type ?
       THE SAME TYPE WHICH HAS BEEN DEFINED
        WHILE PASSING IN THE USER-EXIT FUNCTION MODULE.
       IF U SEE THE FM OF THE USER-EXIT,
       U WILL COME TO KNOW.
    3.
    Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
    Define it in TABLES interace. (not in export, import)
      (Since what u are going to return is an internal table)
      U can take for eg. BDCMSGCOLL.
      OR u can create your own Y/Z structure
    for the same purpose.
      (or u can use the structure type T100)
    I hope it helps.
    Regards,
    Amit M.

  • How to relate data of tables returned by FM for reading data from ST03N

    Hello,
    I am using the FM SWNC_COLLECTOR_GET_AGGREGATES to retrieve data displayed in T-Code ST03N into my report.
    I am able to get the required data in different tables like Times, Memory, Usertcode, Userworkload, Hitlist_database.
    However I am unable to undertand how to relate the data of these different tables, prepare another internal table with only the fields that are required for my report and then display those details.
    Like, I want to loop through one of these internal tables, read data from other internal tables and consolidate my required data. But I am unable to understand based on what criteria I can read other internal tables inside a loop of any one of the above said internal tables.
    I searched a lot and found many threads and blogs related to ST03N and learnt a lot about this T-code. But I could not find how to relate the data of all these tables.
    Request you to please help.
    Thanks and Best Regards,
    Eswar

    Hi,
    I see the common fields like TaskType, EntryId. But, I want to make sure that these are the fields that are enough to read the records or is there any other way that I can be sure that I am getting the correct record in my read statement. So my question is specific to the tables returned from the FM SWNC_COLLECTOR_GET_AGGREGATES and not a generic one.
    Thank you for your help.
    Best Regards,
    Eswar.
    Edited by: eswar praveen on Aug 20, 2010 12:19 PM

  • Is Retail Tcodes and Tables

    HEllo
    I would like to know from where we can get the list of Tcodes and Tables related to IS Retail
    Regards
    Mohammed

    Hi ,
    Pl find below list of Retail TCodes :
    R11 Merchandise Related Master Data
    Transaction code transaction text
    SU3 Maintain User Profile
    MM41 Create Article
    MM42 Chang Article
    MM43 Display Article
    WSL11 Evaluation of listing condition
    WSO7 Display Assortment Module Assignment to Assortment
    MASS_MARC Logistic/replenishment Mass Maintenance
    REFSITE Reference Sites Mangement
    WSL1 Listing conditions
    MR21 Price Change
    MB1C Enter Other Goods Receipts
    MB1B Enter Transfer Posting
    MB03 Display Transfer Posting
    RWBE Stock Overview Generic Articles
    R12 Retail Pricing
    Transaction code transaction text
    SU3 Maintain User Profile
    VKP5 Create Price Calculation
    WPMA Direct Request For POS Outbound
    WMB1 Create Price Entry
    WKK1 Create Market-basket Price Calculation
    SPRO Assign Price Point Group to Org. Level/Merchandise Category
    WVA3 Display VKP Calcultion Sur
    WVA7 Display VKP Calcultion Sur
    WEV3 Display Ret. Markup SP Ca
    MEKE Conditions By Vendor
    ME21N Create Purchase Order
    V-61 Create Customer Discount Condition
    V-64 Display Customer Discount
    VK13 Display Condition Records
    V/LD Execute Pricing Report
    VA01 Create Sales Order
    MEI4 Create Automatic Document worklist
    BD22 Delete Change Pointers
    WVN0 Generate Pricing Worklist
    WVN1 Release Worklist
    R13 Assortment Management
    Transaction code transaction text
    SU3 Maintain User Profile
    WSOA3 Assortment Display
    WSOA1 Assortment Create
    WSOA2 Assortment Change
    WSOA6 Assortment Assignment Tool
    REFSITE Reference Sites Mangement
    WSL5 Modules In Assortment
    MM41 Create Article
    MM42 Chang Article
    WSL1 Listing conditions
    WSP4 Create Individual Listing Material / Assortment
    WSO1 Assortment Module Create
    WSO5 Maintain Assortment Module assignment to Assortment
    SE38 ABAP Editor
    WLWB Space Management: Layout Workbench
    WPLG Display Article In Layout Module
    WLCN Delete All Listing Conditions From Layout Module
    WSOA1 Assortment Create
    WSK1 Assortment Copy
    WSPL Display / edit article master segments that cannot be generted
    WSL0 Merchandise Categories – Article Assortments Consistency Check
    WSP6 Delete Individual Listing Material/Assortment
    WSM8 Reorganize Listing Conditions By Merchandise Category
    WSM4A Automatic Relisting Via Change to Assortment Master Data
    WSL11 Evaluation of listing condition
    WB02 Site Change
    MB1C Enter Other Goods Receipts
    WSE4 Article Discontinuation( Article / Site Discontinuation)
    WSM9 Deletion of Obselete Listing Conditions
    SE16 Data Browser
    R21 Procurement of Replenishable Merchandise
    Transaction code transaction text
    SU3 Maintain User Profile
    MM42 Chang Article
    MP30 Execute Forecast: Initial
    MP33 Forecast Reprocessing
    MD21 Display Planning File Entries
    MD03 Requirements Planning Single-Item, Single-Level
    MD05 RP List
    MD04 Stock/Requirements List
    MB01 Enter Other Goods Receipts
    ME01 Maintain Source List
    ME51 Create Purchase Requisition
    ME52 Change Purchase Requisition
    ME59 Automatic Creation of Purchase Orders from Requisitions
    ME21N Create Purchase Order
    MIGO Goods Receipt for Purchase Order
    ME13 Display Info Record
    ME31K Create Contract
    ME33K Display Contract
    RWBE Stock Overview
    MB1C Enter Other Goods Receipts
    WWP1 Planning Workbench
    WWP3 Planning Workbench
    SPRO Maintain Rounding Profile
    WB02 Site Change
    MK02 Change Vendor
    MD04 Display Stock/Requirements Situation
    WLB1 Determining Requirements for Investment Buying
    WLB6 ROI-Based PO Proposal for Purchase Price Changes
    WLB2 Investment Buying Analysis
    WLB13 Automatic Load Building
    WLB4 Results List for Automatic Load Building Run
    WLB5 Combine a Number of POs to Create a Collective Purchase Order
    ME2L Purchasing Documents per Vendor
    ME23N Display Purchase Order
    ME61 Maintain Vendor Evaluation
    ME63 Calculate Scores for Semi-Automatic and Automatic Subcriteria
    ME64 Evaluation Comparison
    ME65 Ranking List of Vendors
    ME6B Ranking List of Vendor Evaluations Based on Material/Material Group
    R22 Procurement of Non-replenishable Merchandise
    Transaction code transaction text
    SU3 Maintain User Profile
    MM41 Create Article
    MM42 Chang Article
    WSL1 Listing conditions
    MR21 Price Change – Overview
    ME51 Create Purchase Requisition
    ME41 Create RFQ
    ME47 Maintain Quotation
    MB1C Other Goods Receipts
    ME49 Price Comparison List
    ME1E Quotation Price History
    ME48 Display Quotation
    ME4M Purchasing Documents for Article
    ME21N Create Purchase Order
    ME28 Release (Approve) Purchasing Documents
    MB01 Goods Receipt for Purchase Order
    ME2L Display Purchasing Documents per Vendor
    ME23N Display Purchase Order
    SPRO Maintain Rounding Profile
    MD03 Single Item, Single Level
    MD04 Stock/Requirements List
    RWBE Stock Overview
    WLB13 Automatic Load Building
    WLB4 Results List for Automatic Load Building Run
    WLB5 Bundle multiple orders logically
    ME63 Calculate Scores for Semi-Automatic and Automatic Subcriteria
    ME61 Maintain Vendor Evaluation
    ME64 Evaluation Comparison
    ME65 Ranking List of Vendors
    ME6B Ranking List of Vendor Evaluations Based on Material/Material Group
    R23 Fresh Items Procurement
    Transaction code transaction text
    SU3 Maintain User Profile
    WDBI Assortment List: Initialization and Full Version
    WDFR Perishables Planning
    MB1C Other Goods Receipts
    MIGO Goods Receipt Purchase Order
    WF30 Merchandise Distribution: Monitor
    VL06O Outbound Delivery Monitor
    MB0A Goods Receipt-PO Unknown
    WDFR Perishables Planning
    VL10B Fast Display Purchase Orders,
    MB01 Post Goods Receipt for PO
    RWBE Stock Overview
    ME61 Maintain Vendor Evaluation
    ME63 Calculate Scores for Semi-Automatic and Automatic Subcriteria
    MEKH Market Price
    ME64 Evaluation Comparison
    ME65 Ranking List of Vendors
    ME6B Ranking List of Vendor Evaluations Based on Material/Material Group
    R25 Subsequent Settlement
    Transaction code transaction text
    SU3 Maintain User Profile
    MEB3 Display Rebate arrangement
    MEU2 Perform Comparison of Business Volumes
    MEB4 Create Settlement Document Via Report
    MEB3 Create Service Notification-Malfn.
    MEB1 Create Agreement
    ME21N Create Purchase Order
    MB01 Goods Receipt for Purchase Order
    ME81 Analysis of Order Values
    MIRO Enter Invoice
    MEB8 Detailed Settlement
    SECATT Generating business volume with CATT
    SECATT Generating business volume with CATT
    R26 Invoice Verification
    Transaction code transaction text
    SU3 Maintain User Profile
    ME21N Create Purchase Order
    MB01 Goods Receipt for Purchase Order
    ME81 Analysis of Order Values
    MIRO Enter Incoming Invoice
    MIR4 Display Invoice Document
    MIR7 Park Invoice
    MIRA Enter Invoice for Invoice verification in Background
    WC23 Invoice Verification-Background Check
    MRRL Evaluated Receipt Settlement (ERS)
    ME22N Retroactive Price Changes in Purchase Order
    MRNB Revaluation with Log. Invoice Verification
    MIR6 Invoice Overview-Selection Criteria
    MRBR Release Blocked Invoices
    R31 Sales Order Management
    Transaction code transaction text
    SU3 Maintain User Profile
    VV32 Change Export Billing Document
    VV31 Create Export Billing Document
    MB1C Enter Other Goods Receipts
    ME21N Create Purchase Order
    VV32 Change Export Billing Document
    RWBE Stock Overview
    VV31 Create Export Billing Document
    VA01 Create Sales Order
    MM42 Chang Article
    VA03 Display Sales Order
    RWBE Stock Overview
    VL01N Enter Other Goods Receipts
    LT03 Create Transfer Order for Delivery Note
    LT12 Confirm Transfer Order
    ME5A Displaying Purchase Requisition
    ME81 Analysis of Order Values
    MIRO Enter Invoice
    VA02 Change Sales Order
    SECATT Backorder Processing
    WFRE Distribution of Returns Among Backorders
    V_V2 Rescheduling sales and stock transfer documents
    VA05 List of Sales Order
    V_R2 Rescheduling of sales and stock transfer documents
    SECATT Generating Processing Document(s) via CATT
    VF01 Create Billing Document
    VF05 List of Billing Documents
    VF02 Change Billing Doc
    VF04 Maintain Billing Due List
    V.21 Log of Collective Run
    F-29 Post Customer Down Payment
    F-39 Clear Customer Down Payment
    VL02N Outbound Delivery Single Document
    VF31 Output from Billing
    MB1B Enter Transfer Posting
    VL06O Outbound Delivery Monitor
    VBO3 Displaying the Status of Rebate Agreement
    VBO2 Settlement of the Agreement
    VBO1 Creating Rebate Agreement
    VBOF Update Billing Documents
    LT03 Create Transfer Order for Delivery Note
    LT12 Confirm Transfer Order
    VA02 Releasing Credit Memo Request for the Partial Rebate Settlement
    VL01N Create Outbound Delivery with Order Reference
    VA01 Create Sales Order
    VA03 Display Sales Order
    VA41 Create Contract
    VA43 Display Contract
    CV01N Create Document
    MM42 Chang Article
    MM43 Display Article
    WWM1 Create product catalog
    XD02 Customer Display
    OVKK Define Pricing Procedure Determination
    SPRO Maintain Pricing Procedures
    WWM2 Change Product Catalog
    WAK2 Promotion Change
    R32 Instore Customer Relationship Management
    Transaction code transaction text
    SU3 Maintain User Profile
    SICF HTTP Service Hierarchy Maintenance
    ME5A List Display of Purchase Requisitions
    ME21N Generating a Purchase Order on the Basis of the Purchase Requisition
    MIRO Entering an Incoming Vendor Invoice
    VF01 Create Billing Document
    VF02 Change Billing Doc
    R33 Service - Return ProcessingTransaction code transaction text
    SU3 Maintain User Profile
    WPMI POS Outbound:Initialization
    WPMA Direct request for POS ountbound
    WPER POS Interface Monitor
    WPMU Creating Change Message
    WE02 Displaying Created IDocs in POS Monitor
    MM42 Chang Article
    VD02 Customer Change
    WB60 Creating Site Group
    WB66 Maintain Assignment of Sites
    WAK1 Create promotion
    WE02 Displaying Idoc
    WDBI Initialization and Full Version
    WDBM Manual Selection Assortment List
    RWBE Stock Overview
    MB1C Other Goods Receipts
    WPUK POS Simulation:Selection
    WPUF Cash Removal
    FB03 Displaying Accounting Document
    FAGLL03 Displaying Clearing Account
    WPCA Execute Settlement
    F-06 Post Incoming Payments:Header Data
    WVFB Simulation Store Orders:Header Data Selection
    WE02 Displaying Confirmation Order
    VL10B Fast Display Purchase Orders,
    VL02N Outbound Delivery Single Document
    WPUW Goods Movements
    MB0A Returning Goods to Vendor
    MB1B Posting Goods to ‘Unrestricted Use’
    ME23N Displaying Purchase Order
    MIRO Invoice Verification
    WR60 Replenishment:Parameter Overview
    ME27 Create Purchase Order
    WRP1 Replenishment:Planning
    VL02N Change Outbound Delivery
    LT12 Confirm Transfer Order
    RWBE Stock Overview
    WB02 Site Change
    MB1C Enter Other Goods Receipts
    MI01 Create physical inventory document
    MI31 Selected Data for Phys. Inventory Docmts W/O Special Stock
    MI02 Change physical inventory document
    WVFD Send physical inventory document
    WVFI Simulation:Store Physical Inventory/Sales Price Change
    MI03 Display physical inventory document
    MI20 List of Inventory Differences
    MIDO Display Physical Inventory Overview
    WPUW Goods Movements
    WPUS Simulation:Inbound Processing
    WE19 Test tool for IDoc processing
    MM41 Create Article
    VBG1 Create Article Grouping
    VBK1 Create bonus buy
    R34 Store Business online
    Transaction code transaction text
    SU3 Maintain User Profile
    SICF HTTP Service Hierarchy Maintenance
    WB02 Site Change
    WSOA6 Assortment Assignment Tool
    WSM8 Reorganize Listing Conditions By Merchandise Category
    WDBI Assortment List:Initialization and Full Version
    WA01 Create allocation table:Initial
    WA08 Follow-On Document Generation Allocation Table
    VL02N Change Outbound Delivery
    WAK1 Create Promotion
    WAK5 Promo. Subsequent processing
    WPUK POS Simulation
    MM42 Change Article
    VL10B Fast display Purchase Orders
    VL02N Change Outbound Delivery
    WMBE Stock Overview
    MB1C Enter Other Goods Receipts
    VKP1 Change Price Calculation
    VKU6 Revaluation at Retail
    R35 Promotion Management
    Transaction code transaction text
    SU3 Maintain User Profile
    RWBE Stock Overview
    MB1C Enter Other Goods Receipts
    WB60 Creating Site Group
    WB66 Maintaining Site Group
    WA21 Allocation Rule Create
    WAK1 Create promotion
    WAK5 Promo. Subsequent processing
    WAK2 Change Promotion
    WA08 Follow-On Document Generation Allocation Table
    VL06O Outbound Delivery Monitor
    MB0A Goods Receipt-PO Unknown
    WAK15 Promotions per Site
    WAK14 Promotions per article
    VA01 Create Sales Order
    VL01N Create Outbound Delivery with Order Reference
    VL06P Outbound Deliveries for Picking
    VL06C Confirming Transfer Order and Post Goods Issue
    VL03N Display Outbound Delivery
    VF01 Create Billing Document
    R41 Distribution Center Logistics with Lean-WM
    Transaction code transaction text
    ME21N Create Purchase Order
    VL31N Creating Inbound Delivery
    WAP2 Create Purchase Order
    VL41 Create Rough Goods Receipt
    WAP2 Create Purchase Order
    MB0A Goods Receipt – PO Unkown
    MB03 Display Article Document
    MBRL Enter Return Delivery
    MB02 Change Article Document
    MB90 Output from Goods Movements
    VL01NO Create Output Delivery Without Order Reference
    LT03 Create Transfer Order for Delivery Note
    LT12 Confirm Transfer Order
    VL02N Posting Goods issue
    VL01NO Create Outbound Delivery Without Order Reference
    VL35 Create Piching Waves According to Delivery Compare Times
    VL06P Outbound Deliveries for Picking
    LT42 Create TOs by Mult.Processing
    LT25N Transfer Order for Each Group
    VLSP Subsequent Outbound-Delivery Split
    VL06G Outbound Deliveries for Goods Issue
    MI01 Create physical inventory document
    MI31 Selected Data for phys.Inventory Docmts W/o Special Stock
    MI04 Enter inventory count
    MI20 List of Inventory Differences
    MIDO Display Physical Inventory Overview
    VL06O Outbound Delivery Monitor
    VL37 Wave Pick Monitor
    VLLG Rough Workload Estimate
    R42 Distribution Center Logistics With Lean Warehouse Management
    Transaction code transaction text
    SU3 Maintain User Profile
    RWBE IM Stock Overview
    LS26 WM Stock Overview
    SPRO Assign Processor to Queues
    ME21N Create Purchase Order
    VL31N Creating Inbound Delivery
    WAP2 Create Purchase Order
    VL41 Create Rough Goods Receipt
    MB0A Goods Receipt – PO Unknown
    LT06 Create Transfer Order for Article Document
    LT12 Confirm Transfer order
    LRF1 Resource Planning with the RF Monitor
    LM00 Mobile Data Entry
    LRF1 Monitoring with the RF Monitor
    MB03 Display Article Document
    MBRL Enter Return Delivery
    MB02 Change Article Document
    MB90 Output from Goods Movements
    LB12 Process Article Document
    LP21 Replenishment for Fixed Bins in WM
    LB10 Display Transfer Requirement: List for Storage Type
    VL01NO Create Outbound Delivery Without Order Reference
    LT03 Create Transfer Order for Delivery Note
    LRF1 Resource Planning in the Monitor for Mobile Data Entry
    LRF1 Monitoring from the Mobile Data Entry Monitor
    VL02N Posting Goods Issue
    VL35 Create Picking Waves According to Delivery Compare Times
    VL06P Outbound Deliveries for Picking
    LT42 Create TOs by Mult. Processing
    LT25N Transfer Orders for Each Group
    VLSP Subsequent Outbound-Delivery Split
    VL06G Outbound Deliveries for Goods Issue
    LX16 Carry out Continuous Inventory
    LI11N Enter Inventory Count
    LI14 Start Recount
    LI20 Clear Differences in WM
    LI21 Clearing of differences in Inventory Management
    LX18 Statistics for Inventory Differences
    LX25 Inventory status
    LL01 Warehouse Activity Monitor
    VL06O Outbound Deliveries for Picking
    VL37 Wave Pick Monitor
    VLLG Rough Workload Estimate: Total Overview
    R43 Merchandise Distribution
    Transaction code transaction text
    SU3 Maintain User Profile
    ME21N Create Purchase Order
    ME31K Create contract
    WA21 Allocation Rule Create
    WA01 Create Allocation Table
    WA11 Allocation Table Message Bundling / Notification Creation
    WA04 Create Notification
    WA08 Create Follow-On Documents
    MB01 Goods Receipt for Purchase Order
    WF10 Create Collective Purchase Order
    MB01 Create Purchase Order
    WF30 Adjusting Distribution and Generating an Outbound Delivery
    VL06O Outbound Delivery Monitor
    VL02N Outbound Delivery Single Document
    WF50 Adjusting Distribution
    WF70 Creating Distribution Order
    LT23 Display Distribution Order
    WF60 Generating Outbound Delivery
    WA01 Create allocation table:Initial
    R50 ECR-Compliant Procurement Processes
    Transaction code transaction text
    PRICAT Initial Screen: Price Catalog Maintenance
    PRICATCUS1 Change View "Assignment of ILN-Vendor-Purchasing group": Overview
    PRICATCUS2 Change View "Assignment of ILN-merch.catgry-SAP merch.catgry": Ove
    PRICATCUS3 Change View "Assignment of SAP merchandise category - purchasing group"
    WE19 Test tool for IDoc processing
    WE20 Partner profiles
    ME21N Create Purchase Order
    WE02 Idoc list
    ME23N Display Purchase Order
    MB0A Goods Receipt - PO Unknown: Initial Screen
    MIR4 Display Invoice Document
    WVM2 Transfer of Stock and Sales Data
    Regards,
    ManiKumaar

  • Capt. return msgs if any and put return msg f all OK else I should displ er

    I selected a certain number of ZKONV entries in internal table itab.
    I should execute deletion and capture return messages if any and put return message if all OK otherwise I should display error message and rollback.
    How to do that?

    Hi Tina,
    Please do not irgnore this severe warning: You should never delete any BSEG records because there are dependencies in the system you may not even ever know of. It will take you to hell and  - regarding any legal standards - put you in jail with one leg.
    Use business transactions to cancel documents - this is allowed.
    NOTHING ELSE
    Regards,
    Clemens

  • Question regarding selectOneMenu and PROCESS_VALIDATIONS(3) phase

    Hi im a bit lost regarding selectOneMenu and how validation phase all works together.
    The thing is that i have a simple selectOneMenu
    <h:form id="SearchForm">                                                  
         <h:panelGrid columns="3"  border="0">
              <h:outputLabel id="caseTypeText" value="#{msg.searchCaseCaseType}" for="caseType" />                         
              <h:selectOneMenu id="caseType" value="#{searchCaseBean.caseType}" style="width: 200px;" binding="#{searchCaseBean.caseTypeSelect}">     
                   <f:selectItem itemValue="" itemLabel="#{msg.CommonTextAll}" />                                             
                   <f:selectItems value="#{searchCaseBean.caseTypes}"  />                              
              </h:selectOneMenu>
              <h:message for="caseType" styleClass="errorMessage" />
              <h:panelGroup />
              <h:panelGroup />
              <h:commandButton action="#{searchCaseBean.actionSearch}" value="#{msg.buttonSearch}" />
         </h:panelGrid>
    </h:form>Now when i hit submit button i can see that the bean method searchCaseBean.caseTypes (used in the <f:selectItems> tag) is executed in the PROCESS_VALIDATIONS(3) phase. How come? I dont whant this method to be executed in phase 3, only in phase 6.
    If i add the this in the method if (FacesContext.getCurrentInstance().getRenderResponse())
    public List<SelectItem> getStepStatuses(){
         List<CaseStep> caseSteps = new ArrayList<CaseStep>();
         if (FacesContext.getCurrentInstance().getRenderResponse()) {
              caseSteps = getCaseService().getCaseStep(value);     
         List<SelectItem> selectItems = new ArrayList<SelectItem>(caseSteps.size());
         for(int i=0; i < caseSteps.size(); i++){
              CaseStep step = caseSteps.get(i);               
              String stepStatus = step.getStatus() + "_" + step.getSubStatus();           
              selectItems.add(new SelectItem(stepStatus, step.getShortName()));
         return selectItems;
    } Now i get a validation error (javax.faces.component.UISelectOne.INVALID) for the select field and only phase1, phase2, phase 3 and phase 6 is executed.
    Im lost?

    I see. Many thanxs BalusC. Im using your blog very often, and its very helpfull for me.
    I changed now to use the constructor load method instead. But know im getting problem of calling my service layer (Spring service bean). Its seems they havent been init when jsf bean is calling its constructor.
    Can i init the spring service bean from the faces-config file?
    JSF Bean
        public SearchCaseBean() {
              super();
                    //caseService need to be init
              if(getCaseService() == null){
                   setCaseService((CaseService)getWebApplicationContextBean("caseService"));
              fillCaseTypeSelectItems();
              fillCaseStatusSelectItems();
    .....faces-config
    <managed-bean>
              <managed-bean-name>searchCaseBean</managed-bean-name>
              <managed-bean-class>portal.web.SearchCaseBean</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>          
              <managed-property>
                   <property-name>caseService</property-name>
                   <value>#{caseService}</value>
              </managed-property>
         </managed-bean>

  • How to find how name of view and table using in Discoverer report

    Hi all,
    Please help me, i have requirement, i need name of views and tables used in discoverer reports.
    plz help its urgent.
    regards,
    Vivek Gautam

    As per my knowledge goes, We can see from Administrator which Folder is associated with a Workbook. Else you may have to manually open each and every workbook and look for the objects.

  • Reg: Report on GR Returns and IR Returns with PI 2005.1 700

    Hi,
       I would like to report on GR Returns and IR retuns from Purchasing Datasources i.e. 2LIS_02_SCL(total returns).
       I created GR with 101 movement and GR with 102 movement. I checked in RSA3, i could see data with Procecs Key 002. But, i don't see any entry with process key 006. <u>Does any body investigated how these process keys attached to document changes? am i missing some thing?</u> I can able to calculate Actual Delived Qty and Invoice Qty, but i could't able to calculate total GR and IR Returns?.
    We are on ECC 6.0 and PI 2005.1 700 and BI 7.0 .
    Does any body have any idea about this.
    Note: as of now i don't want to look into IM for return quantity. we don't have any Plans to implement IM.
    Thanks in advance!
    Nagesh Ganisetti.

    Chetan,
       Both notes won't help... as you didn't understood my Issue. I was able to get actual Delivered or Invoiced Qty or Values. 1st won't help in my Case (This note is for how to calculate Invoice or GR value with Current Exachnge Rate instead of Original Exchange Rate).
    I did all the settings for Purchasing. Some reason i couldn't able to generate any Entry with Process Key '6' or '7'.
    Any idea where these process keys attached to these Documents. I want to debugg this, as you know i need to debugg while filling setup tables.
    I would be very happy if you can share any Document on BI Objects Naming Conventions (Query or Cube or any BI Object).
    Nagesh Ganisetti.

  • Field and table names requested for BAPI_INCOMINGINVOICE_CREATE

    Hi all,
    The following data is being hardcoded in BAPI_INCOMINGINVOICE_CREATE functional module for testing the functioning of this bapi.  Now kindly suggest me how to make this BAPI useful for all PO's.  the following data is being passed into BAPI for generation of invoice.  Kindly provide technical names along with table names for the following fields. 
    HEADERDATA
            INVOICE_IND                    X
            DOC_TYPE                       RE
            DOC_DATE                       24.07.2007
            PSTNG_DATE                   24.07.2007
            REF_DOC_NO                   5000000940
            COMP_CODE                    ACW
            CURRENCY                       INR
            GROSS_AMOUNT             33,750.0000
            CALC_TAX_IND                  X
            BLINE_DATE                     24.07.2007
    iTEM DATA
         INVOICE_DOC_ITEM               000001
         PO_NUMBER                         10070100
         PO_ITEM                                00001
         TAX_CODE                             V0
         ITEM_AMOUNT                       33,750.0000
         SHEET_NO                             1000002022
         ITEM_TEXT                              SDFDS
         SHEET_ITEM                           0000000001
    Thanx in advance.
    Krishna

    Hi I have taken particular PO and Executed the code. It is generating the Invoice Document No. Now it want to remove all the Hardcoding. Code i have used is as follows. How do i remove the hardcoding ?? send meif sample code is available???
    Internal table declaration *
    DATA: gt_headerdata TYPE STANDARD TABLE OF bapi_incinv_create_header
    INITIAL SIZE 0,
    gt_itemdata TYPE STANDARD TABLE OF bapi_incinv_create_item
    INITIAL SIZE 0,
    gt_accountingdata TYPE STANDARD TABLE OF bapi_incinv_create_account
    INITIAL SIZE 0,
    gt_return TYPE STANDARD TABLE OF bapiret2
    INITIAL SIZE 0.
    DATA: gs_headerdata LIKE bapi_incinv_create_header.
    DATA: gs_itemdata LIKE bapi_incinv_create_item.
    DATA: gs_accountingdata TYPE bapi_incinv_create_account.
    DATA: gs_return TYPE bapiret2.
    DATA: l_date TYPE sy-datum.
    l_date = sy-datum - 15.
    Error flag *
    DATA: l_errflag(1) TYPE c.
    Build Invoice header
    Document Type (Invoice)
    gs_headerdata-invoice_ind = 'X'.
    gs_headerdata-doc_type = 51.
    Document Date
    gs_headerdata-doc_date = l_date.
    Posting Date
    gs_headerdata-pstng_date = l_date.
    Reference Document No
    gs_headerdata-ref_doc_no = 323348.
    gs_headerdata-gross_amount = 31.
    Currency
    gs_headerdata-currency = 'USD'.
    Company Code
    gs_headerdata-comp_code = 'D3'.
    Baseline Date
    gs_headerdata-bline_date = l_date.
    **Tax Indicator
    *gs_headerdata-calc_tax_ind = 'X'.
    Build order item(s) - Only 1 is used in this example
    Document Item
    gs_itemdata-invoice_doc_item = 000001.
    Purchase Order Number
    gs_itemdata-po_number = 3700000011.
    Purchase Order Item
    gs_itemdata-po_item = 00010.
    Quantity
    gs_itemdata-quantity = 31.
    gs_itemdata-po_unit = 'Z00'.
    Item Amount
    gs_itemdata-item_amount = 31.
    gs_itemdata-tax_code = 'O0'.
    gs_itemdata-taxjurcode = '0100000000'.
    APPEND gs_itemdata TO gt_itemdata.
    Document Item
    *gs_itemdata-invoice_doc_item = '00002'.
    Purchase Order Number
    *gs_itemdata-po_number = '4700000158'.
    Purchase Order Item
    *gs_itemdata-po_item ='00020' .
    Quantity
    *gs_itemdata-quantity = '5'.
    *gs_itemdata-po_unit = 'Z00'.
    Item Amount
    *gs_itemdata-item_amount = '5'.
    *gs_itemdata-tax_code = 'O0'.
    *gs_itemdata-taxjurcode = '0100000000'.
    *APPEND gs_itemdata TO gt_itemdata.
    Accounting Data
    ***gs_accountingdata-costcenter = 'DUMMY CCTR'.
    *gs_accountingdata-invoice_doc_item = '00001'.
    *gs_accountingdata-xunpl = 'X'.
    *gs_accountingdata-tax_code = 'O0'.
    *gs_accountingdata-taxjurcode = '0100000000'.
    *gs_accountingdata-ITEM_AMOUNT = 100.
    *gs_accountingdata-gl_account = '0003805101'.
    *APPEND gs_accountingdata TO gt_accountingdata.
    *CLEAR :gs_accountingdata.
    *Call the BAPI to Create the Return Order
    data: gv_INVOICE type BAPI_INCINV_FLD-INV_DOC_NO,
    gv_YEAR type BAPI_INCINV_FLD-FISC_YEAR.
    CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
    EXPORTING
    headerdata = gs_headerdata
    IMPORTING
    INVOICEDOCNUMBER = gv_INVOICE
    FISCALYEAR = gv_YEAR
    TABLES
    return = gt_return
    itemdata = gt_itemdata.
    accountingdata = gt_accountingdata.
    PERFORM error.
    Check and write Return table
    FORM error.
    LEAVE TO LIST-PROCESSING.
    CLEAR l_errflag.
    LOOP AT gt_return INTO gs_return.
    WRITE: / gs_return-type, gs_return-message(200).
    IF gs_return-type = 'E'.
    l_errflag = 'X'.
    ENDIF.
    ENDLOOP.
    PERFORM commit.
    ENDFORM. " ERROR INPUT
    No errors - Commit
    FORM commit.
    IF l_errflag IS INITIAL.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    ENDIF.
    ENDFORM. " COMMIT INPUT
    Thanks in advance
    Krishnasri

Maybe you are looking for

  • Presentations To Look Out For At The UK User Conference.....

    Oracle Primavera Premier Support - Creating Customer Value Understand the available support tools, support resources and much more! Tony Banks - Director, Oracle Primavera P6 in Public Sector – Health & Safety Laboratory (HSL) Implementing Best Pract

  • Cannot drag iMovie clips to Timeline!

    I imported some movies from my camcorder and when I try to drag them from the clip viewer, they just ghost out and won't move. I have worked successfully with this same camcorder and iMovie for many months. The only difference is these are longer cli

  • ERROR: Clone failed

    Cannot build android app in Dreamweaver CS 5.5 I get this error. What's wrong. Need help to resolve this annoying problem. I tried 'Build and Emulate' and this is the build log: <DW> set ANT_HOME=C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5.5\C

  • N97 Mini Memory Card Problem

    I've been having a problem with my N97 Mini since installing a SanDisk 16Gb Memory Card. When switching on the phone it quite often reboots. It will then work fine. I also get 'memory full' or 'security module' errors. I can fix the issue by rebootin

  • How can I back up my email, please?

    I'm having trouble with my email. Sometimes I get three or four copies of the same message. I need to back up my email before I can sort it out. How do I do this please?