Use of Process key in 2lis_12_vcitm

Hello friends,
Can some one help me in explaining why do we use process key(BWVORG) in the extractor 2lis_12_vcitm specifically?
Thanks
Srini...

Hi,
Look @ this thread... clearly explained by ahp
What are process KEYS in MM
Thanks

Similar Messages

  • Regarding  Process Key

    Hi all:
         Friends I have struck up with my work due to Process key.
    I need ur input for the following doubts.
    1.What is process key?why we go for this?
    2.What is the use of process key values like 1,2,21,22 ?..
    Waiting for your reply....
    Thanks in advance...
    Rgds,
    M.surendhar

    Hi Surendhar
    Please refer to following thread for Inventory process keys
    Re: Customer Group in 2LIS_12_VCITM incorrect
    Please refer to following thread for process keys used in MM
    Re: What are process KEYS in MM
    Hope this helps
    Regards
    Pradip

  • Activating BW Process keys/new content after go live

    Hi There,
    Can anyone advise if activating process keys after the implementation has gone live will cause any issues.
    In our case the solution is live and we are using standard extractors for POs (2LIS_02_ITM)  and 2LIS_03_BF(Stock Movements) but so far we have not activated/used the process keys on R3/BW sides respectively.
    There is now a requirement to activate some more standard content cubes e.g. 0RT_C05 (Merchandise procurement)  and extractor 2LIS_02_SCL , that would eventually lead us to activate BW Process keys to b used in the update to 0RT_C05.
    But I am a bit worried now as to whether it can cause the existing components of the delivered solution to breakdown e.g if it changes the contents that are being updated in PSA in any way after the Process key has been activated in R3 side.
    I am happy if there are no changes  to fields other than process key relevant fields like BWMENG, BWOVG  etc but don't know if that is the case
    If no one knows of a direct answer to my question, can someone say as to what exactly happens to the records being posted into PSA after the process keys have been activated.
    thanks,
    Kulmohan

    tried and found that process key activation only causes an effect in the process key relevant fields. But please try in your scenario before you take my word.

  • How to choose the right foreign key to be used when processing a dimension

    Hi,
    here is the problem I'm facing : I need to create a dimension in my cube from the table dimDocumentVente.
    Here are the relations between my tables in SQLServer.
    dimDocumentVente
        ID
        ID Article
        ID GroupeComptaProduitTVA
    dimArticle
       ID
       ID GroupeComptaProduitTVA
    dimGroupeComptaProduit
       ID
       Code
    with Foreign keys between :
    - IDGroupeComptaProduit  in dimDocumentVente and ID in dimGroupeComptaProduit
    - IDGroupeComptaProduit in dimArticle and ID in dimGroupeComptaProduit
    - IDArticle in dimDocumentVente and ID in dimArticle
    In this dimension (based on dimDocumentVente), I add the information ID from dimGroupeComptaProduit.
    When I process the dimension, I see in SQL Profiler that the relation between the 2 tables is done using dimArticle, which is not what I want to do. I want to use the relation which is between dimGroupeComptaProduit and dimDocumentVente.
    Is there a way to tell SSAS, that I want to use the foreign key between dimDocumentVente and dimGroupeComptaProduit to calculate this attribute ?
    From the user point of view, the information contained in the table dimGroupeComptaProduit contains information linked the the VAT rate. This information is linked to the items in our ERP (Dynamics NAV), and when we create a new order, this information is
    copied in the order line and the user has the possibility to override it. So in the cube, it's interesting to both analyse from the value stored in the item and the value stored in the order. That's the reason why !
    Thanks in advance for your help.

    Thanks for your answer but unfortunately, that's not exactly what I'm looking for.
    I mean, I want to create a dimension based on table dimDocumentVente in which I want to include the information "code" coming from dimGroupeComptaProduitTVA table.
    Please see below.
    As you may notice, I have several foreign keys.
    When I process the dimension, I see in SQL profiler that SQLServer is using the relation between dimDocumentVente and dimArticle plus between dimArticle and dimGroupeComptaProduitTVA to process my dimension. It's necessary for me that instead, it uses directly the
    relation between dimDocumentVente and dimGroupeComptaProduitTVA. Is there a way to change this  ?
    Thanks.

  • Why do we use process keys

    Dear all,
    Can any one tell me y we use process keys....in inventory........can anyone please tell me the importance of process keys... y do we use them in the update rules.
    what is the significance of process keys
    Regards
    venu

    Dear,
    For this we need to understand how Business Contents/extractors are designed.
    Well, based on applications there are different methods followed by SAP to differentiate different Business Events in Logistics Applications.
    Say for example, for Logistics applications Process Keys are used to differentiate between different Business Events.
    In Financials, we use 'Value Type' to differentiate whether the data is a planned data or a Actual data or budgeted or a commitment or forecast etc.
    Since, logistics applications are Business Events oriented, documents are differentiated using Process Keys.
    Thanks

  • Enabling process keys on R/3 side

    Hi All,
    I have done an enhancement for 2lis_02_itm with few fields.
    I have successfully completed this work and i can see the records in RSA3.
    Now the client is asking that during testing they found that the process keys are not enabled in R/3 side.They told me to enable process keys.
    Can any one please tell me how to do this.
    I think we can do via BF11 Tcode but which settings I have to do I am not sure about it.
    And please explain me about process keys.
    This is very very urgent.
    I would appreciate the earliest responce.
    Thanks
    S VR

    Hi,
    You need to make 2 settings in R/3 before filling the setuptable.
    1) Industory sector selection
    2) MAking a Tick mark for BW by using Tcode Bf11.
    <b>Also Check OSS Note 353042 - Howto: Activate transaction key (PROCESSKEY)</b>
    https://websmp104.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=353042&_NLANG=E
    Symptom
    Fields BWGEO, BWGEOO, BWGVP, BWGVO, BWNETWR, BWMNG, etc. of DataSources 2LIS_02_SCL, 2LIS_02_ITM, 2LIS_03_BF, 2LIS_03_UM, 2LIS_40_REVAL are not filled.
    This may lead to the following:
    The system does not perform any update into an InfoCube (for example: 0RT_C*, 0PUR_C01, 0CP_PURC1 and so on), even though data arrives in BW.
    This occurs with the following InfoSources:
    2LIS_02_SCL, 2LIS_02_ITM
    2LIS_03_BF, 2LIS_03_UM
    2LIS_40_REVAL
    With some restriction, this symptom also occurs with the following InfoSources if they are used in connection with retail or consumer products. (InfoCube: 0RT_* or 0CP_* ).
    2LIS_11_VAITM, 2LIS_12_VCITM, 2LIS_13_VDITM
    Other terms
    0PROCESSKEY, PROCESSKEY, 0RT_C01, 0RT_C02, 0RT_C03, 0RT_C04, BWBRTWR, BWGEO, BWGEOO, BWGVP, BWGVO, BWNETWR, BWMNG
    Reason and Prerequisites
    The process key (0PROCESSKEY and 0BWAPPLNM) of the InfoSources has not been filled. As a result, no key figures are updated because of the update routine of the participating InfoCube and along with it no records are inserted into the InfoCube. In each update routine, the system checks the content of the PROCESSKEY. If this field has no contents, then no data is written into the InfoCube because of the IF condition in the update rules.
    Solution
    So that you can work in the above mentioned InfoSources, you MUST activate the determination of the process key. This is done with the help of Transaction MCB_ which you can find in the OLTP IMG for BW (Transaction SBIW) in your attached R/3 source system.
    Here you can choose your industry sector. 'Standard' and 'Consumer products' are for R/3 standard customers, whereas 'Retail' is intended for customers with R/3 Retail only.
    You can display the characteristics of the process key (R/3 field BWVORG, BW field 0PROCESSKEY) by using Transaction MCB0.
    If you have already set up historical data (for example for testing purposes) by using the setup transactions (Statistical Setup Programs) (for example: Purchasing: Tx OLI3BW, material movements: OLI1BW) into the provided setup tables (for example: MC02M_0SCLSETUP, MC03BF0SETUP), you unfortunately have to delete this data (Tx LBWG). After you have chosen the industry sector by using MCB_, perform the setup again, so that the system fills a valid transaction key for each data record generated. Then load this data into your connected BW by using 'Full update' or 'Initialization of the delta process'. Check, whether the system updates data into the involved InfoCubes now.
    If all this is not successful, please see Note 315880, and set the application indicator 'BW' to active using Transaction 'BF11'.
    Related notes:
    157317 --> You MUST make sure that this note is relevant for you.
    352344 -> Process key + reversals in Inventory Management
    (Consulting note).
    Bye
    Dinesh

  • Error with Links if using x3 primary keys

    Hi Folks:
    Here is the error code I'm receiving:
    ORA-01422: exact fetch returns more than requested number of rows
    Unable to fetch row.
    Background: I am using Application Express 3.2
    All of the pages I have created that rely on x2 primary keys (first_name, last_name) work fine.
    I have a table that has x3 primary keys: Table is called "time_off_awards". The x3 primary keys are: last_name, first_name, approval_date.
    I created a report that works properly and lists the awards for each person (each person can receive more than one award-on different dates).
    I also created an edit link that works properly IF *(only if)* each individual has only one award. If the individual has more than one award then I get the error above. When I set up the link I used all three keys. The x3 PK's should uniquely identify each row, but if the same last name/first name appear more than once (that is if the person has more than one award) I get the error. I thought at first maybe it was just not reading the 3rd key/part of the link (approval_date), but it shows properly if you move your cursor over the edit link.
    Here is a link to a screen pic of how I have my link set in Apex:
    [http://www.wczone.com/link_settings.gif]
    Here is a link to a pic of the report with some info:
    [http://www.wczone.com/report_link.gif]
    If needed, here is my table info:
    CREATE TABLE PERSONNEL.TIME_OFF_AWARDS (
    LAST_NAME VARCHAR2(40) NOT NULL,
    FIRST_NAME VARCHAR2(25) NOT NULL,
    APPROVAL_DATE DATE NOT NULL,
    HOURS_OFF NUMBER(3),
    CITATION VARCHAR2(1500),
    /* Keys */
    PRIMARY KEY (LAST_NAME, FIRST_NAME, APPROVAL_DATE),
    /* Foreign keys */
    CONSTRAINT TOA_PERSONNEL
    FOREIGN KEY (LAST_NAME, FIRST_NAME)
    REFERENCES PERSONNEL.MARC_PERSONNEL(LAST_NAME, FIRST_NAME)
    TABLESPACE PERSONNEL;
    Thanks for any help, I've tried looking at a couple of Apex books, but they didn't help much.
    Matt
    Edited by: user10495310 on Mar 4, 2009 8:21 AM

    Thank you everyone for the help and information you gave to me.
    Your ideas and advice helped me to think through the issues involved.
    The way i actually found to work around this issue was a little different.
    What I did was the following (which may only be usable with empty tables. If its possible to create a new column with a sequence and trigger on a table that already contains data it should work also):
    1. I removed the current PK's that were currently set.
    2. I added a single, unique PK (that used a sequence and trigger to automatically increment) to the table as was suggested in this thread and other APEX forum threads.
    3. I changed the link on the report so that it used the new PK, and also changed the PK used on the forms (under Processes - both the page rendering and page processing processes).
    The Difference:
    4. Next I changed the table (not by using APEX, but directly) from using the automatically generated ID as the PK, back to using the compound PK (x3 keys). I then added an constraint to make sure that the automatically generated column was unique. So now I have the compound PK that my supervisor wants us to use, and I'm able to use a unique, automatically generated key for APEX to use.
    I found also that if you already have a column that uses a unique/auto-generated key you can still use it with APEX without switching keys around.
    1. I added the new column to the sql in the reports source section so that the new column was searched (and then used 'hidden' so it wouldn't be displayed on the report users would see).
    2. You can still add the unique key under the processes on the form that is being linked too under the Primary key tabs. If its not a PK it won't show up in the pop up which is to the right of "Item Containing Primary Key Column Value" but it can be entered manually (i.e. p23_AUTO_ID) and it will work fine. You would also need to edit your form so that the auto ID that is being passed from the report is part of the form - but hidden if desired).

  • Problem in using characteristics as key figure

    Hi,
    I have a situation where I need to display booked site and closed site sales value and number of sites created in a particular period.
    There is a job id under which multiple SO's can generated. First SO created for a particular job id is indicated by 1 in an indicator (say, ind-1) (which is a keyfigure) and other all SO for that job id are marked as 0 in that indicator. Not booked site can be identified by summing up the indicator values job id wise. Say I have 5 job ids, then my sum will be 5. No problem in that.
    Now the invoice generated for the last SO will be marked as 1 and other all as 0. But the indicator (say, ind-2) used here is characteristic of type numc. So I have created a formula variable using replacement path as processing type and reference characteristics as ind-2 which can be used as a key figure. But the result I am getting is in two rows for each job id, i.e., 0 and 1. How to resolve these into single row for each job id and get the result as 1.
    Regards,
    Sumit

    Hi Sumit,
    Until this point you have just done nice. Now at this point you can create a selection; include ind-1 kyf in the selection and ind-2 characteristic as cosntant selection. Then add a condition on mark to show values greater than 0. Then you can get a result with one row each 1.
    Regards
    Yasemin...

  • Error while using sort by key lexicographically

    Hi,
    while sorting records lexicographically using sort by key function, i got the below error.
    RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns0:MT_WorkOrderData/MessagePayload/Record/CAUFVD_KTEXT. The message is: Exception:[java.lang.IllegalArgumentException: Cannot parse apple to BigDecimal. ] in class com.sap.aii.mappingtool.flib3.NodeFunctions method sortByKey[com.sap.aii.mappingtool.flib3.Plainer@264b264b, com.sap.aii.mappingtool.flib3.Plainer@42674267]
    i need to sort the input records from a file based on a field which is of type string.
    Thanks in advance,
    Jhansi.

    Jhansi,
    Did u referred the thread:Re: Problem in sorting the records
    Best regards,
    raj.

  • Inventory management process key values plz

    Hi gurus,
    can anyone help me with the process key values
    in my update rules i have this for issues
    process keys= 100,101,104,105,106,110
    and for receipts 000,001,004,005,006,010
    what do they mean i am using the standard update rules
    its very urgent becoz i am getting the stock values wrong
    thanks and regards
    neelu

    hi Neel,
    check oss note 352344 - Process key + reversals in Inventory Management ?
    Symptom
    This note is a consulting note and describes the use of the process key (0PROCESSKEY) in Inventory Management (MSEG). It focusses on the way the system deals with reversed transactions for DataSources 2lis_40_s279 and 2lis_03_bf.
    To be able to use theses DataSources, you ABSOLUTELY MUST activate the transaction key generation (process key, PROCESSKEY) using Transaction MCB_ (from the OLTP IMG for BW: SBIW) (standard, retail or consumption goods).
    The following transaction keys are available
    (PROCESSKEY/Appl. Component/Description):
    000/MM        Misc. receipts
    001/MM        Goods receipt / vendor
    004/MM        Article transfer posting receipt
    005/MM        Stock correction inventory +
    006/MM        Stock correction other +
    007/IS-R      Receipt value-only article (single article
                  posting)
    010/MM        Receipt from stock transfer
    002/IS-R      Merchandise clearing receipt
    003/IS-R      GR from DC
    100/MM        Misc. issues
    101/MM        Returns / Vendor
    104/MM        Article transfer posting issue
    105/MM        Stock correction inventory -
    106/MM        Stock correction other -
    107/IS-R      Issue value-only article (single article
                  posting)
    110/MM        Issue from stock transfer
    102/IS-R      Merchandise clearing issue
    103/IS-R      GI from DC
    450/IS-R      Generic Article (not relevant)
    Remark: Transaction keys 002/003, 102/103 break down the core keys 010/110 in more detail with respect to retail processes. They are only available in an R/3 Retail.
    As you can see in the overview, the transaction keys can be divided according to receipts and issues in Inventory Management. Furthermore, the transaction keys are displayed according to reversed and regular transactions.
    A regular receipt has a debit/credit indicator "S" (SHKZG, 0DCINDIC), whereas a regular issue has a debit/credit indicator "H".
    For reverse transactions the opposite is true.
    Transaction                            D/C ind.   D/C ind.
                                            S          H
    RECEIPTS
    0 Misc. receipts                        regular    reversed
    1 Goods receipt / vendor               regular    reversed
    2 Merchandise clearing receipt        regular    reversed
    3 GR from DC                            regular    reversed
    4 Article transfer posting receipt    regular    reversed
    5 Stock correction inventory +        regular    reversed
    6 Stock correction other +            regular    reversed
    7 Receipt value-only article          regular    reversed
    10 Receipt from stock transfer        regular    reversed
    ISSUES
    100 Misc. issues                       reversed   regular
    101 Returns / vendor                   reversed   regular
    102 Merchandise clearing issue        reversed   regular
    103 GI from DC                         reversed   regular
    104 Article transfer posting issue    reversed   regular
    105 Stock correction inventory -      reversed   regular
    106 Stock correction other -          reversed   regular
    107 Issue value-only article          reversed   regular
    110 Issue from stock transfer         reversed   regular
    Note: You can also recognize a reversal for DataSource 2lis_03_bf by means of the entry 0STORNO = ´X´. The fields that are marked with X in the table are then transferred with negative +/- sign. This was not the case with DataSource 2LIS_40_S279!!! In the case of DataSource 2LIS_40_S279 more logic was required in the BW update rules to make sure that key figures were updated correctly.
    Example:
    In the delivered InfoCubes 0CP_IC_C1 (CP) and 0RT_C01 (Retail), for example in key "Stock correction +", transaction keys 5 and 6 were grouped together. Furthermore, distinction is to be made between the different stock types. Depending on which stock types you want to distinguish between in different key figures, you must use a corresponding condition (IF statement) in the update rules in the BW.
    Example (pseudo source code):
    Updating Routine "stock adjustment +" for 2lis_02_bfIF ( STOCKCAT is initial ) AND         "Evaluated stocks ( PROCESSKEY = 5 OR PROCESSKEY = 6 )._  RESULT = TRANS_AMOUNT.  RETURNCODE = 0.    "Updating Key figureELSE.  RETURNCODE = 4.    "No Updating of KeyfigureENDIF.
    The pseudo source code for 2LIS_40_S279 read as follows:
    Updating Routine "stock adjustment +"  for 2lis_40_s279IF  ( STOCKCAT is initial ) AND         "Evaluated stocks  ( PROCESSKEY = 5 OR PROCESSKEY = 6 ).    IF DCINDIC = 'S'.      RESULT = TRANS_AMOUNT.    "regular    ELSE.      RESULT = -1 * TRANS_AMOUNT.    ENDIF.    RETURNCODE = 0.    "Updating Key figureELSE.     RETURNCODE = 4.    "No Updating of KeyfigureENDIF.
    Here, the debit/credit indicator must be checked in accordance with the table above. Transactions 5 and 6 are receipts in Inventory Management. As the debit/credit indicator is set to "S", it is a regular transaction whose value(TRANS_AMOUNT) is assigned to the key figure. In the other case (debit/credit indicator = "H") it is a reversal, that is, the transaction should reverse a transaction that has already been updated. For this, the value is multiplied by -1 so that a corresponding decrease/reduction of this key figure is achieved during the update of the key figure in the InfoCube.
    This logic is no longer required for the 2LIS_03_BF (see first pseudo source code), because the reversed quantity and values are automatically provided as negative with the help of the 0STORNO field.
    Using this DataSource 2LIS_03_BF, it is for example possible to create a key figure such as "Reversed receipts", which is not a part of the Business Content delivered. The following pseudo source code of an update routine makes this clear:
    Update routine "Reversed receipts"
    IF ( PROCESSKEY = 1 ) AND   (STORNO = ´X` )  "Reverse     RESULT = -1 * TRANS_AMOUNT.     RETURNCODE = 0.ELSE.     RETURNCODE = 4.      "no update of key figure!ENDIF.
    Note:  For DataSource 2LIS_40_S279 the pseudo source code read as follows:
    Update routine "Reversed receipts"
    for 2LIS_40_S279IF ( PROCESSKEY = 1 ) AND   ( DCINDIC = H )  "Reverse     RESULT = TRANS_AMOUNT.     RETURNCODE = 0.ELSE.   RETURNCODE = 4.      "no update of key figure!ENDIF.
    To be able to understand the overall scheme more comprehensively, you should have a look at the update rules of the Standard Business Content for retail or consumption goods (for example InfoCubes 0RT_C01 or 0CP_IC_C1).

  • Use of Statistical key in CATS

    Hi ,
    Can any body guide me what is the use of Statistical key in CATS and where he options for its dropdown is mainatained?
    I need this for urgently, So kindly help.
    Regards

    Hi Julien,
    The Trace key option is present in the "transformer" and "transformer address reconstructor" steps when executing an ODQ Name and Address Quality project.
    The purpose of this trace key is to help developer to easily debug and identify records that have incorrectly transformed. A primary key/surrogate key is usually chosen as the trace key to facilitate the debugging process by identifying the exact record.
    Thanks,
    Chapanna

  • How to use Parallal Processing

    Hi All,
    How to use Parallal processing in our report program, My report has to execute by forground. i have checked this bwlow link, they mentioned some small code here. but how to use and where to place this code in my report program.
    http://help.sap.com/saphelp_nw70/helpdata/en/fa/096e92543b11d1898e0000e8322d00/content.htm
    Thanks,
    Subbu.

    Ok...
    Below is the some part of the program...If it possible to insert the parallal processing please let me know...It very urgent for me....
      LOOP AT ITAB.                                            
        PERFORM MOVE_GR_AMTS_TO_ITAB.                          
        PERFORM ET_IR_AMTS_FOR_PO_LINE.                       
        PERFORM IGURE_COMMITMENTS_COOI.                      
        MODIFY ITAB.                                           
      ENDLOOP.
    FORM MOVE_GR_AMTS_TO_ITAB.                                 
      CLEAR GR_TAB.
      MOVE-CORRESPONDING ITAB TO GR_KEY.
      READ TABLE GR_TAB WITH KEY GR_KEY BINARY SEARCH.
      IF SY-SUBRC = '0'.
        ITAB-GR_QTY = GR_TAB-GR_QTY.
        ITAB-GR_VALUE_CO  = GR_TAB-GR_VALUE_CO.
        ITAB-GR_VALUE_DOC = GR_TAB-GR_VALUE_DOC.
        ITAB-GR_VALUE_LOC = GR_TAB-GR_VALUE_LOC.
      ENDIF.
    ENDFORM.    
    FORM GET_IR_AMTS_FOR_PO_LINE.                              
      data : begin of EKBE occurs 0,
              BUDAT like EKBE-BUDAT,
              MENGE like EKBE-MENGE,
              DMBTR like EKBE-DMBTR,
              WRBTR like EKBE-WRBTR,
              WAERS like EKBE-WAERS,
              SHKZG like EKBE-SHKZG,
             end of ekbe.
      SELECT BUDAT MENGE DMBTR WRBTR WAERS SHKZG FROM EKBE into table EKBE WHERE EBELN = ITAB-PO_NO
                           AND EBELP = ITAB-LINE
                           AND VGABE EQ '2'
                           AND ZEKKN EQ ITAB-ZEKKN.
      if sy-subrc is not initial.
        exit.
      endif.
      loop at EKBE.
        IF EKBE-SHKZG = 'H'.              
          ekbe-MENGE = EKBE-MENGE * -1.
          ekbe-DMBTR = EKBE-DMBTR * -1.
          ekbe-WRBTR = EKBE-WRBTR * -1.
        ENDIF.
        ITAB-IR_QTY   = ITAB-IR_QTY   + ekbe-MENGE.
        ITAB-IR_VALUE_DOC = ITAB-IR_VALUE_DOC + ekbe-WRBTR.
        ITAB-IR_VALUE_LOC = ITAB-IR_VALUE_LOC + ekbe-MBTR.    
        IF ITAB-CURR_PO =  ITAB-CURR_CO.                       
          ITAB-IR_VALUE_CO = ITAB-IR_VALUE_CO + ekbe-WRBTR.    
        ELSE.                                                  
          GS_CONV_AMT = ekbe-WRBTR / GS_CORATE.
          PERFORM GET_CURR_RATE USING ekbe-WAERS ekbe-BUDAT  CHANGING GS_RATE.
          ITAB-IR_VALUE_CO =  ITAB-IR_VALUE_CO +               
                              GS_CONV_AMT * GS_RATE.
        ENDIF.
      endloop.
    ENDFORM.                             
    FORM FIGURE_COMMITMENTS_COOI .                             
      data : begin of COOI occurs 0,
             WKGBTR like COOI-WKGBTR,
             WTGBTR like COOI-WTGBTR,
             WHGBTR like COOI-WHGBTR,
             end of COOI.
      SELECT WKGBTR WTGBTR WHGBTR FROM COOI into table COOI WHERE REFBT = '020'
                           AND REFBN = ITAB-PO_NO              
                           AND RFPOS = ITAB-LINE               
                           AND RFKNT = ITAB-ZEKKN.             
      if sy-subrc is not initial.
        exit.
      endif.
    loop at COOI.
    itab-COMMIT_CO  = itab-COMMIT_CO + COOI-WKGBTR.
    itab-COMMIT_DOC = itab-COMMIT_DOC + COOI-WTGBTR.
    itab-COMMIT_LOC = itab-COMMIT_LOC + COOI-WHGBTR.
    endloop.
    ENDFORM.
    Thanks...

  • Process Key in 2LIS_03_UM

    Dear Friends,
    Please explain me what is Process Key in 2LIS_03_UM Datasource, because we want to define our own Key figure in BW Update rules, s there we need to key some process key,so I need what is this Process key and where we can get it in ECC.
    Eg:
    IF ( COMM_STRUCTURE-processkey EQ '150'
        OR COMM_STRUCTURE-processkey EQ '151'
        OR COMM_STRUCTURE-processkey EQ '152' )
        AND COMM_STRUCTURE-bwapplnm EQ 'MM'
        AND COMM_STRUCTURE-AC_DOC_TYP EQ 'PR'
        AND COMM_STRUCTURE-cppvlc <> 0.
    Thanks
    Ganga

    Hi Ganga,
    I am not sure of the new key figure you are going to add in the update rules for 2lIS_03_UM but you may need to add this key figure to your Cube first which should be a non-cumuative and then only you can write any update routines for this new key figure. The following are the process keys we use for Revaluations
    The following are for Receipts 
    050    "Other revaluation +
    051    "Revaluation/ price change +
    052    "Revaluation/inv. verif. +
    These are for Issues
    150  "Other revaluation -
    151   "Revaluation/price change -
    152   "Revaluation/ invoice verif.-
    You may also need to mention the Zmovement types in these routines but I am not sure how you are going to get the correct values without the consideration of 0MOVE_TYPE in your routines.
    Hope it helps...

  • Process Key

    Can any one please tell me the functionality of process keys and how to use it in inventory management.
    Thanks ..

    Hi Akash
    check oss note 352344 - Process key + reversals in Inventory Management ?
    Symptom
    This note is a consulting note and describes the use of the process key (0PROCESSKEY) in Inventory Management (MSEG). It focusses on the way the system deals with reversed transactions for DataSources 2lis_40_s279 and 2lis_03_bf.
    To be able to use theses DataSources, you ABSOLUTELY MUST activate the transaction key generation (process key, PROCESSKEY) using Transaction MCB_ (from the OLTP IMG for BW: SBIW) (standard, retail or consumption goods).
    The following transaction keys are available
    (PROCESSKEY/Appl. Component/Description):
    000/MM Misc. receipts
    001/MM Goods receipt / vendor
    004/MM Article transfer posting receipt
    005/MM Stock correction inventory +
    006/MM Stock correction other +
    007/IS-R Receipt value-only article (single article
    posting)
    010/MM Receipt from stock transfer
    002/IS-R Merchandise clearing receipt
    003/IS-R GR from DC
    100/MM Misc. issues
    101/MM Returns / Vendor
    104/MM Article transfer posting issue
    105/MM Stock correction inventory -
    106/MM Stock correction other -
    107/IS-R Issue value-only article (single article
    posting)
    110/MM Issue from stock transfer
    102/IS-R Merchandise clearing issue
    103/IS-R GI from DC
    450/IS-R Generic Article (not relevant)
    Remark: Transaction keys 002/003, 102/103 break down the core keys 010/110 in more detail with respect to retail processes. They are only available in an R/3 Retail.
    As you can see in the overview, the transaction keys can be divided according to receipts and issues in Inventory Management. Furthermore, the transaction keys are displayed according to reversed and regular transactions.
    A regular receipt has a debit/credit indicator "S" (SHKZG, 0DCINDIC), whereas a regular issue has a debit/credit indicator "H".
    For reverse transactions the opposite is true.
    Transaction D/C ind. D/C ind.
    S H
    RECEIPTS
    0 Misc. receipts regular reversed
    1 Goods receipt / vendor regular reversed
    2 Merchandise clearing receipt regular reversed
    3 GR from DC regular reversed
    4 Article transfer posting receipt regular reversed
    5 Stock correction inventory + regular reversed
    6 Stock correction other + regular reversed
    7 Receipt value-only article regular reversed
    10 Receipt from stock transfer regular reversed
    ISSUES
    100 Misc. issues reversed regular
    101 Returns / vendor reversed regular
    102 Merchandise clearing issue reversed regular
    103 GI from DC reversed regular
    104 Article transfer posting issue reversed regular
    105 Stock correction inventory - reversed regular
    106 Stock correction other - reversed regular
    107 Issue value-only article reversed regular
    110 Issue from stock transfer reversed regular
    Note: You can also recognize a reversal for DataSource 2lis_03_bf by means of the entry 0STORNO = ´X´. The fields that are marked with X in the table are then transferred with negative +/- sign. This was not the case with DataSource 2LIS_40_S279!!! In the case of DataSource 2LIS_40_S279 more logic was required in the BW update rules to make sure that key figures were updated correctly.
    Example:
    In the delivered InfoCubes 0CP_IC_C1 (CP) and 0RT_C01 (Retail), for example in key "Stock correction +", transaction keys 5 and 6 were grouped together. Furthermore, distinction is to be made between the different stock types. Depending on which stock types you want to distinguish between in different key figures, you must use a corresponding condition (IF statement) in the update rules in the BW.
    Example (pseudo source code):
    Updating Routine "stock adjustment +" for 2lis_02_bfIF ( STOCKCAT is initial ) AND "Evaluated stocks ( PROCESSKEY = 5 OR PROCESSKEY = 6 )._ RESULT = TRANS_AMOUNT. RETURNCODE = 0. "Updating Key figureELSE. RETURNCODE = 4. "No Updating of KeyfigureENDIF.
    The pseudo source code for 2LIS_40_S279 read as follows:
    Updating Routine "stock adjustment +" for 2lis_40_s279IF ( STOCKCAT is initial ) AND "Evaluated stocks ( PROCESSKEY = 5 OR PROCESSKEY = 6 ). IF DCINDIC = 'S'. RESULT = TRANS_AMOUNT. "regular ELSE. RESULT = -1 * TRANS_AMOUNT. ENDIF. RETURNCODE = 0. "Updating Key figureELSE. RETURNCODE = 4. "No Updating of KeyfigureENDIF.
    Here, the debit/credit indicator must be checked in accordance with the table above. Transactions 5 and 6 are receipts in Inventory Management. As the debit/credit indicator is set to "S", it is a regular transaction whose value(TRANS_AMOUNT) is assigned to the key figure. In the other case (debit/credit indicator = "H") it is a reversal, that is, the transaction should reverse a transaction that has already been updated. For this, the value is multiplied by -1 so that a corresponding decrease/reduction of this key figure is achieved during the update of the key figure in the InfoCube.
    This logic is no longer required for the 2LIS_03_BF (see first pseudo source code), because the reversed quantity and values are automatically provided as negative with the help of the 0STORNO field.
    Using this DataSource 2LIS_03_BF, it is for example possible to create a key figure such as "Reversed receipts", which is not a part of the Business Content delivered. The following pseudo source code of an update routine makes this clear:
    Update routine "Reversed receipts"
    IF ( PROCESSKEY = 1 ) AND (STORNO = ´X` ) "Reverse RESULT = -1 * TRANS_AMOUNT. RETURNCODE = 0.ELSE. RETURNCODE = 4. "no update of key figure!ENDIF.
    Note: For DataSource 2LIS_40_S279 the pseudo source code read as follows:
    Update routine "Reversed receipts"
    for 2LIS_40_S279IF ( PROCESSKEY = 1 ) AND ( DCINDIC = H ) "Reverse RESULT = TRANS_AMOUNT. RETURNCODE = 0.ELSE. RETURNCODE = 4. "no update of key figure!ENDIF.
    To be able to understand the overall scheme more comprehensively, you should have a look at the update rules of the Standard Business Content for retail or consumption goods (for example InfoCubes 0RT_C01 or 0CP_IC_C1).
    Thanks=Points in SDN
    SANJEEV KUMAR HAMSALA

  • Relation between Inventory Process keys and movement types

    Dear All,
    Is there any way to find the relation between Inventory process keys (which is in SBIW-> Settings for Application specific data sources(PI) -->Logistics -->Settings for IBU Retail / CP --> Transaction key maintenance for SAP BW) and movement types .
    Thanks in advance...
    Regards,
    Raju

    Hi,
    Please read the note below.
    Note 353042 - Howto: Activate transaction key (PROCESSKEY)
    It has something for you ....
    The process key (0PROCESSKEY and 0BWAPPLNM) of the InfoSources has not been filled. As a result, no key figures are updated because of the update routine of the participating InfoCube and along with it no records are inserted into the InfoCube. In each update routine, the system checks the content of the PROCESSKEY. If this field has no contents, then no data is written into the InfoCube because of the IF condition in the update rules.
    Solution
    So that you can work in the above mentioned InfoSources, you MUST activate the determination of the process key. This is done with the help of Transaction MCB_ which you can find in the OLTP IMG for BW (Transaction SBIW) in your attached R/3 source system.
    Here you can choose your industry sector. 'Standard' and 'Consumer products' are for R/3 standard customers, whereas 'Retail' is intended for customers with R/3 Retail only.
    You can display the characteristics of the process key (R/3 field BWVORG, BW field 0PROCESSKEY) by using Transaction MCB0.
    If you have already set up historical data (for example for testing purposes) by using the setup transactions (Statistical Setup Programs) (for example: Purchasing: Tx OLI3BW, material movements: OLI1BW) into the provided setup tables (for example: MC02M_0SCLSETUP, MC03BF0SETUP), you unfortunately have to delete this data (Tx LBWG). After you have chosen the industry sector by using  MCB_, perform the setup again, so that the system fills a valid transaction key for each data record generated. Then load this data into your connected BW by using 'Full update' or 'Initialization of the delta process'. Check, whether the system updates data into the involved InfoCubes now.
    If all this is not successful, please see Note 315880, and set the application indicator 'BW' to active using Transaction 'BF11'.
    Hope this helps.
    Raj

Maybe you are looking for