SAP logic for calculating the replenishment requirement - IS Retail

Hi All,
          Could you explain from where does the RPLRQ field is getting picked up from the WRPT table.And what is the SAP logic for calculating the replenishment requirement for a particular article.
Regards,
PSS

Dear PSS,
Field RPLRQ represents for the replenishment requirement determined in the previous replenishment run. This can be changed when follow-on documents are created if order optimizing is active (for example, if quantities are to be rounded off).
Bye,
Muralidhara

Similar Messages

  • Where is the SAP logic to process the BDCDATA?

    Hi, expert.
    Where is the SAP logic to process the BDCDATA that we passed on CALL TRANSACTION 'VA01' using bdcdata mode.....?
    On the other words, can I see the SAP logic to understand how SAP process 'CALL TRANSACTION' statement?
    Thanks.

    Martin,
    thanks for the reply.
    I understand 'CALL TRANSACTION' works, SAP propagates the value to VA01 screen based on the records we built on the BDCDATA internal table.  
    For example, we are going to create order with 5 line items.  However, the 1st line itme is okey, but 2nd line itme we hit a material error, so BDC stopped.  We have requirement that want to remove 2nd line item and want BDC continue to process for 3rd, 4th, 5th line items.   User can run CALL TRANSACTION with mode 'E'.  So BDC will stop when hit error.  at this point user can delete item use SAP 'delete' icon.   But the problem is BDC still have leftover records for 2nd item.   I hope there is way to locate BDCrecords and in the userexit to remove the leftover BDC records for 2nd item.  Then BDC can continue to process 3rd item....   That is why I try to find how SAP logic behind 'CALL TRANSACTION' and hoping to locate where is the SAP logic that process BDCDATA record one by one....  hence I can think about how to cleanup/delete leftover BDC records for 2nd line item.
    I put breakpoint at 'CALL TRANSACTION' statement and then click 'single step'.  But next step, it immediately stop in the VA01 main program 'SAPMV45A' module transaktion_init.  I was hopping the next step will stop in the SAP program that I can see it handles/loops BDCDATA...  But not.

  • Logic for determining the delivery address in PO

    Hi,
    We have a requirement (for a enhancment ) to get the country updated in the delivery address of a purchase order.  Would be highly helpful if someone provide me the logic for getting the country key from the delivery address tab.
    Our landscape involves SRM PO & ECC PO's and hence getting the details from Plant & s.loc will be o.k for ECC PO's , but for SRM PO's the details are updated from ship tp address.
    Regards
    Sudhakar

    Hi,
    U can get the country key ( LAND1)  in T001W table, by giving plant code, which u can get in EKPO ( WERKS) by giving PO no.
    Also u can get in ADRC table, thr u need to input ADRNR no. which u will get from T001W table by giving plant code.

  • SAP standards for retriving the Material Master Data

    Can someone provide me list of all SAP standards for retriving the Material Master Data with respect to views.
    Standard Reports
    Function Modules
    RFC's
    BAPI's.
    T.codes
    Sample code's
    useful answers will surely be awarded.
    Regards
    Vinayak

    Hi,
    These are the standard BAPI's for Material master.
    BAPI_MATERIAL_DELETE Flag Material for Deletion
    BAPI_MATERIAL_DISPLAY Display Material
    BAPI_MATERIAL_EDIT Change Material
    BAPI_RETAILMATERIAL_CREATE Create Material
    BAPI_RETAILMATERIAL_DELETE Discontinue Material
    BAPI_STANDARDMATERIAL_CREATE Create/Extend Material
    BAPI_MATERIAL_SAVEREPLICA BAPI for Mass Maintenance of Material Data
    BAPI_MATERIAL_SAVEDATA Create and Change Material Master Data
    BAPI_MATERIAL_EXISTENCECHECK Check Existence of Material
    BAPI_MATERIAL_GETBATCHCERT Create Quality Certificate for Batch in Portable Document Format (PDF)
    BAPI_MATERIAL_GETBATCHES Create Batch List for a Material
    BAPI_MATERIAL_GETCHARMERCHHIER Supply Characteristics of Retail Material for Material Group Hierarchy
    BAPI_MATERIAL_GETINTNUMBER Assign New Internal Numbers for a Material Type
    BAPI_MATERIAL_GETINTNUMBERRET Assign New Internal Numbers for a Material Type for Retail Materials
    BAPI_MATERIAL_GETLIST Supply List of Materials for Search Criteria Transferred
    Thanks.,

  • Design Table with no of columns used for calculating the total

    Hello,
    I need to design a table/s for calculating the column values based on the operators provided. Like I have a table say
    TableID, Col1 , Col2 ,Col3 ... Total Value
    Total Value Column is calculating Col1 (operator value provided by the user) Col 2 (operator value provided by the user) Col3 etc
    Although I m thinking to create another table which stores operator values, however not sure how to calculate the total.
    like it can be COl 1 +Col2 -Col3 %Col4 etc.
    Please help.

    Can you show some data example+ desired result?
    DECLARE @t TABLE(a INT,b INT,c INT);
    INSERT @t VALUES(1,2,3),(9,8,7),(4,6,5);
    SELECT *
    ,      (   SELECT  COUNT(val) 
               FROM    (VALUES (a)
                           ,   (b)
                           ,   (c)
                       ) AS value(val)
           ) AS  CountVal 
    FROM @t;
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Need Help in improving logic for determining the range

    Hi guys,
    I need some help in my program logic to determine the range of value. My purpose of this program is to find which combinations have the lowest amplitude.
    In the attachment is a set of number.
    e.g 10    0 is a combination.
    Each combination, I will need to draw a graph of data acquired using this combination VS gray level. There is 255 gray level. Every 5 gray level I will acquire a point so I will have 52 points.
    Next, I will get the maximum value - minimum value. And this is the amplitude for the combination. I can do all this function, however it is not practical for me to do it this way until 360 360. There is a round 1200+ combination. It requires a long time since I need to interface all this function with my hardware.
    The graph of each combination maybe a irregular shape. Do any of you have a logic to help me to shorten the process and find the range of values (combination) where the lowest amplitude may lies. Thanks!!
    Attachments:
    example.txt ‏11 KB

    Hi Johnsold,
    This is a example of my result. This is only a portion of it. The last column is the amplitude, I store all the 52 points into array and used Array Min and Max function. Then I use max - min to get the amplitude. From the amplitude I cannot see any pattern. Can you please advice me on it. Thanks!!!

  • How enhance the default variant in standard transaction COOIS (SAP&COOIS) as per the user requirement

    Hi,
    I have one query that how to enhance the standard default variant (SAP&COOIS) for standard transaction COOIS.
    If any one know solution pls share.
    Thanks & Regards,
    J.Goud

    Hi Maine,
    Thanks for your reply.
    As you mentioned for your own program, you can control the parameter "I_SAVE", when calling "REUSE_ALV_GRID_DISPLAY".
    so already i have use the same logic and control the parameter through I_SAVE and here i am calling method ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY instead of "REUSE_ALV_GRID_DISPLAY".
    and it works fine when we execute the report but the logic doesnt work when the user tries to change and save the layout variant on the output screen of the report.
    Regards,
    Satish

  • Need logic for calculate the balance quantity in open sales order

    hi all
    i need logic to calcuclate the balance quantity in open sales order ,
    where i am using VBAK header and VBAP item , and VBFA for document flow tables
    i need to have the balance quantity , for the open sales order
    especially taking with respect to  VBFA-VBTYP_N = M for invoice creation and N for canellation
    any one please help me

    thank you but i am clear abt it
    will you please anyother way to calucaluate the logic ,
    and i need to populate in bukets also for the terms of 5 years
    Edited by: sridhar loganathan on Nov 25, 2008 6:43 AM

  • User - defined functions for calculating the taxes of state and country

    hi expects,
        how can write user-defined function in message mapping in which i want to calculate the states taxes (2500) and country taxes (5000) and give the result as grand total in output.please help me?

    Hi,
    Activities
    1. To create a new user-defined function, in the data-flow editor, choose Create New Function (This
    graphic is explained in the accompanying text), which is located on the lower left-hand side of the
    screen. In the menu, choose Simple Function or Advanced Function.
    2. In the window that appears, specify the attributes of the new function:
    Name
    Technical name of the function. The name is displayed in the function chooser and on the data-flow
    object.
    Description
    Description of how the function is used.
    Cache
    Function type (see above)
    Argument Count
    In this table, you specify the number of input values the function can process, and name them. All
    functions are of type String.
    3. In the window that appears, you can create Java source code:
    a. You can import Java packages to your methods from the Imports input field, by specifying them
    separated by a comma or semi-colon:
    You do not need to import the packages java.lang., java.util., java.io., and java.lang.reflect. since
    all message mappings require these packages and therefore import them. You should be able to
    access standard JDK and J2EE packages of the SAP Web Application Server by simply specifying the
    package under Import. In other words, you do not have to import it as an archive into the Integration
    Repository. You can also access classes of the SAP XML Toolkit, the SAP Java Connector, and the
    SAP Logging Service (see also: Runtime Environment (Java-Mappings)).
    In addition to the standard packages, you can also specify Java packages that you have imported as
    archives and that are located in the same, or in an underlying software component version as the
    message mapping.
    b. Create your Java source text in the editor window or copy source text from another editor.
    4. Confirm with Save and Close.
    5. User-defined functions are limited to the message mapping in which you created the function. To
    save the new function, save the message mapping.
    6. To test the function, use the test environment.
    The new function is now visible in the User-Defined function category. When you select this category,
    a corresponding button is displayed in the function chooser pushbutton bar. To edit, delete, or add the
    function to the data-flow editor, choose the arrow next to the button and select from the list box
    displayed.
    Regards
    Seshagiri

  • Its a logic for rejecting the selected PR by using an REJECT buton

    Hi friends,
                    Can anyone help me out with this logic.
    For every PR & respective Item No  identified to be displayed
    Concatenate PR no & item No with a space in between into a temp field
    Read if a record exists in table SWWWIHEAD based on
    WI_TEXT contains the value stored in temp field
    And Task ID = TS00007986.
    If record exists then
    Read last two characters in field SWWWIHEAD-WI_TEXT for capturing the Release Code & store in temp1 field & created date & time in an internal table.
    Check if the release code in Temp1 field is same as mentioned in selection screen
    If yes then perform additional check if the PR is now again put up for release.
    Read the date & time as to when the subject PR & Item no is put up for release.
    If it is put up for release after the Date & time of rejection then display the PR
    Else ignore the PR.
    Hope i will get a better response from u guys soon......

    Hi,
        Check with the functional consultant is there is any table which stores the PR get rejected or not, then you can easily write the logic for that

  • Query for calculating raw material requirements for the remaining quantities in sale order.

    Dear SAP Experts,
    Clients requirement :
                                         Client wish to know the quantities of raw materials needs to run the production order inorder to complete the remaining quantities in sale order.
    Need Clarification:
                                  I"m using the below query for this requirement. I wish to know whether this query suits for my clients requirement or not. If its so, I need to know how to group by T4.[Code] (Raw material Name)   and need to get the sum of    T4.[Quantity]  (BOM quantity)      and  (T1.[OpenQty]*T4.[Quantity]) as TOTALQTY under each raw material group
    SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode],T0.[CardName], T1.[ItemCode], T1.[Dscription], T1.[Quantity] as salesorderQty , T1.[OpenQty], T2.onhand, T4.[Code] as Raw material Name,T4.[Quantity] as BOMQTY,  (T1.[OpenQty]*T4.[Quantity]) as TOTALQTY FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.[DocEntry] = T1.[DocEntry] INNER JOIN OITM T2 ON T1.[ItemCode] = T2.[ItemCode] INNER JOIN OITT T3 ON T2.[ItemCode] = T3.[Code] INNER JOIN ITT1 T4 ON T3.[Code] = T4.[Father] WHERE  T0.[DocStatus] ='o' 

    You're posting in the Portuguese B1 space.
    You might want to post in the English one: SAP Business One Application

  • EMI Calculation for calculating the cost of the equipment or material sold

    Hi gurus...
    Its a typical CS scenario... here.. Client is selling a product to the customer. The customer makes a contract with the client has he will pay in EMI option.
    So the total cost of one EMI will calculate as : product cost + Interest for the EMI + Service Charge + Spares consumed + Other cost ( labour at customer site) + Profit
    how we can include in SAP..
    Can we do in general pricing procedure using condition types or...
    how to do this...
    - Pithan

    Hi pete
    Thank you for your reply...
    Yes Pete, i know we have to do it here. My problem the clients needs only CS module in SAP. I am not sure how to create condition types for EMI calculation.
    I have came across your post in SAPFANS regarding Leasing the equipment. I have to link the lease equipment with this EMI billing..
    I say, if i sell a equipment for 100$, by customer will pay in EMI... so for each month i have to calculate the amount he has to pay..
    EMI for 10 months, for each month he has pay
    Principle amount - 10$ + Interest 10% + Service Charge 2% + any consumables + any service + Profit (Margin is 10%)...
    for this i have to do in CS....
    How we can define the installments for each amount...
    There is a option in sales order --- Reg periodic billing... but how to calulate using condition types and pricing procedure...
    - Pithan

  • Change in logic for selecting the Bin while creating Transfer Order

    Hi ,
    Currently the system follows SAP process of BIN selection which is as mentioned-
    With stock removal strategy Partial Pallet Quantity (A), system follows  below  steps to find the storage bin:
    1.SAP always compares the requested amount from the Transfer Order with the largest bin amount available in the stock.
    2.If the requested quantity of the transfer order is the same as or larger, the system removes the material from the largest bin amount first.
    3.If the requested quantity is smaller, the system removes the material from a storage unit for partial quantities in ascending order.
    Now the customer has requested a change which is -
    It wants to take in BIN in the FIFO order followed by partial pallet .
    Question is - Is this possible ?
    Cheers
    Disha

    Hello,
    May I add something to the discussion.
    If you are calling "OMLJ", you see on the left side the secion "Transfer requirements". If the box for "Manual TO creation not allowed" is ticked, you are not able to create the TO's by the manual transactions. Then only the system is allowed to create the TO's, for instance with the report RLAUTA10.
    I hope this anweres your question.
    Best regards
    Uwe Neuman

  • SAP support for country-specific legal requirements

    Just wondering if anyone could clarify how does SAP support work for the country-specific legal requirements. I'm sure in every country some new laws come to life regularly that affect the SAP customers and their ERP systems.
    Case in point - on July 1st Mexican authority SAT decided to ask businesses to send them some XML files with some GL account information ('Anexo 24' - see the announcement in Spanish here). The deadline for the first file submission is October 2014.
    This clearly affects every single SAP customer in the whole Mexico, as well as potentially many North America customers who have manufacturing facilities there. So would it be reasonable to expect SAP to come up with some standard solution? XML file extraction doesn't seem to be incredibly complex to me (although I might be off).
    Another question - how would the customers know that SAP is aware of new laws and is taking some action? Could there be an announcement posted somewhere? There is a website for SAP Latin Americabut the latest announcement there is from June and nothing else is on the home page except for the HANA ads. (My Spanish is limited to "dos cervezas por favor", sorry if I missed something.)
    In absence of such communication, naturally, the only option the individual customers have is to send a message to SAP. And that's where SAP replies with a copy/paste text (we got the same exact response as another SCN member here):
    Feel free to maintain this incident opened, but contact us in the next three weeks, then we will be able to confirm if this legal requirement will be supported by SAP.
    I'm confused - "IF"?! This is a legal requirement, there is no "if" for the business. Let's see if I got it right - we wait for 3 weeks, then SAP decides "nah, not gonna support that" (by the way, why is it on the customers to contact support again?) and every SAP customer in the whole country will have to scramble their own resources or pay for consulting (on top of SAP maintenance fees) to deliver the same exact set of programs on their own in under 2 months?
    It could've been just an unfortunate choice of verbiage by Global Support, but I'm curious - is this really how the support for legal requirements supposed to work?
    Thank you.

    Hi Jelena,
    Having been part of the SAP Globalization Services in Brazil, I understand a little bit of that process.
    A few comments:
    1) Localization of SAP solutions to country-specific regulation is under the responsibility of an area called Globalization Services. You can find more info about what they do here:
    http://service.sap.com/globalization
    2) Typically, those country-specific requirements are discussed in much details on the local ASUG chapters (at least that's how we did it in Brazil). That's why it's usually hard to find material in English, but I'd say that your local IT/Biz people in Mexico should be regulars in their local ASUG meetings, specially if they have a specific chapter to discuss Localization matters.
    3) I found out this note with more specifics about "SAT Anexo 24".
    http://service.sap.com/sap/support/notes/2041490
    Apparently SAP is still analyzing it.
    Suggestion if you want to speed the analysis up: reach out to your commercial contact in SAP.
    4) Regarding your statement about the time it takes for the analysis & delivery to take place.
    As an SAP customer, you have all the right to complain about the service level you're getting, it's just that, having been on the other side of the table, I know some facts that sometimes may be taken for granted. For example, SAP do not have infinite maintenance resources. I do understand that all customers pay maintenance and need to have their demands addressed, but SAP does not have a bench of developers available for whenever a new demand appears. If there is a new demand, they need to estimate the efforts and accommodate it into the development resource planning.
    5) From a legal perspective, there is a difference between Legal Change and New Legal Requirement. The latter, if differing too much from the initial purpose of the acquired software, might not necessarily be required by the Software provider to be fulfilled within the maintenance scope. I'm not saying that it's the case for this Mexican requirement, I'm just saying there is this possibility, generally.
    My personal recommendation: get your local Mexico people to be closer to the SAP Mexico team. They are usually responsible to publish information about such local requirements and the SAP release plan.
    Hope that helps.
    Best,
    Henrique.

  • Logic for retreiving the values from a dynamic internal table

    Hi all,
    I have an issue with the logic to fetch data from a dynamic internal table into fields. let me give you guys an example the sy-tfill = 9 (subject to vary). I need to populate the fields.
    Regards,
    Sukumar

    Hi,
    this is for printing out the info in a dynamic table,
    it will work likewise to insert data.
    PARAMETERS:
      p_tabnam TYPE tabname DEFAULT 'DB_TABLE_NAME'.
    DATA:
      lv_dref TYPE REF TO data,
      ls_dd03l LIKE dd03l,
      lt_fieldname TYPE TABLE OF fieldname,
      ls_fieldname TYPE fieldname.
    FIELD-SYMBOLS:
      <fs> TYPE STANDARD TABLE,
      <wa_comp> TYPE fieldname,
      <wa_data> TYPE ANY,
      <wa_field> TYPE ANY.
    REFRESH lt_fieldname.
    SELECT * FROM dd03l INTO ls_dd03l
                       WHERE as4local = 'A'
                         AND as4vers  = '0000'
                         AND tabname  = p_tabnam
                       ORDER BY position.
      ls_fieldname = ls_dd03l-fieldname.
      APPEND ls_fieldname TO lt_fieldname.
    ENDSELECT.
    IF NOT ( lt_fieldname[] IS INITIAL ).
      CREATE DATA lv_dref TYPE TABLE OF (p_tabnam).
      ASSIGN lv_dref->* TO <fs>.
      SELECT * FROM (p_tabnam) INTO TABLE <fs>.
      WRITE:
        / 'CONTENTS OF TABLE', p_tabnam.
      LOOP AT <fs> ASSIGNING <wa_data>.
        SKIP.
        WRITE:
          / 'LINE', sy-tabix.
        ULINE.
        LOOP AT lt_fieldname ASSIGNING <wa_comp>.
          ASSIGN COMPONENT sy-tabix OF STRUCTURE <wa_data> TO <wa_field>.
          WRITE:
            / <wa_comp>, <wa_field>.
        ENDLOOP.
      ENDLOOP.
    ENDIF.
    grtz
    Koen

Maybe you are looking for

  • Multiple devices with multiple itunes accts on one computer.

    my son got an itouch from his dad.  My son has his own itunes account. how do I call up his itunes account so that it comes up with I plug his device to my Mac?  (right now my itunes account automatically comes up)

  • Can I generate a report from my Quiz results....

    and Print them out after someone completes a quiz? Without using a LMS or the email function? I would like a participant to complete a simple pre assessment activity and then have Captivate send the results to the printer. Anyone doing this? Thanks i

  • Not able to find mod_oc4j.conf file for setting Load Balancing on ESB

    Hi Guys, I am trying to set load balancing on ESB ,I got one document from oracle site for setting the load balancing on ESB. According to that document we have to change mod_oc4j.conf file for setting the roundrobin:weighted,metric,random algorithms

  • Long Text box in Selection Screen

    Hi, How to create a long text box in the selection screen. Is there any example/demo program in standard?? Regards Jiku.

  • (need answers)oracle apps functional queries

    This is bhanu nice meeting you, recently i went to an interview there i 've faced the following queries i've answered the queries but i didn't satisfy with my brief explanations ,i need apt&elobarated answers/ reasons so in that regard i need your he