RRI - Selecting Specific Sales Doc

I have created RRI on Billing Documents query from Sales Document query that means it jumps from sales query to billing query. But, now I want to restrict one sales document for which it should show me only the relevant billing documents in RRI, instead of this it is showing full list of billing documents e.g if I click on sales doc no 12000118, thru RRI it should show only the relevant billing docs. Is there any user exit I have to write, if so, could any one of you share the sample codes on RRI exit for this scenario? Will appreciate your help.

It should work with the standard settings.
Things to keep in mind:
1) Make sure the characteristic you want to filter on is available in both queries
2) Make sure you have filtered on the value before you make the jump (or click on the value as you activate the context menu)

Similar Messages

  • Field selection for sales doc.

    Hi all,
    I have a requirement to make some field/s as mendatory in Stock Transfer Orders without disturbing the purchase order settings.
    another requirement is: where do we select the fields on Sales Document ex. OR - in OR i have to make customer required date field as mendatory. Kindly suggest or give path to solve these issues.
    Thanks
    Manoj

    Hi,
    to make a field mandatory in a sales order, you can use t.code SHD0. Give the t.code as VA01, select the variant bus2032, you will get a list of fields with options to make them optional, mandatory or suppress. Select according to your requirement.
    Pl reward if it helps.
    Thanks,
    Sadhu Kishore

  • UDF mandatory for specific sales/purchasing doc.

    Hi,
    Is UDF can be made mandatory for a specific sales/purchasing document ?
    Jeyakanthan

    Hello,
    Once UDF has been defined with mandatory checked, It will affect all relevant documents.
    You can use approval procedure to monitor this for specific documet types.
    If the UDF is in header level, you also can use query to set up an approval procedure to trigger it if the field is empty.
    Hope this helps.
    regards,
    maggie An
    SAP Business One Forum Team
    Edited by: Maggie An on May 30, 2008 11:05 AM

  • Delete a line item from Sales Doc type RE

    Unable to delete a line item from a sales order linked to document type RE.  Get a long runtime - no specific error message.  Use the 'Stop Transaction' option to end the transaction.
    Have done thorough testing and can delete line items linked to all other sales document types in our system.
    Researched SPRO to see if there was a line item deletion option that was not created for sales doc type RE - but can find nothing.
    On a critical time line here - this was discovered during Hotpak installation testing which is scheduled to move to PRD June 22.  Question as to why we have not run across this issue before now??  - I don't think we have had an occasion to delete a returns line item before - but I want to have the option if available.
    Any help to resolve this issue would be appreciated.
    Regards
    Patsy

    Thanks for your response.
    After creating document type RE, execute VA02 transaction, select line item, select delete line item icon.  The system goes into runtime and just stays there.  No error message, no abap dump.  To escape the transaction, I have to select 'stop transaction'.
    I have tested all other document types we use in our system,  (including our customized transactions) SO, CR, DR, etc., and the system allows line item deletion.

  • How to make plant in shipping cond tab for line item in sales doc mandatory

    Hi
    How to make plant as mandatory for a sales document say quotation mandatory ? I went to SPRO-> Basic Fucntion - > log of incomplete terms ->  Define incomplete Groups -> B.selected sales -Item -> Created new procedure Z001 with fielda VBAP - WERKS ,selected screen name PDE2 and checked warning check box.
    When i goto Assign incompleteness procedures I donot have option to assign it sales document item level procedure i will only get sales doc header procedure to assign it to document type quotation.
    How to make plant as mandatory for each line item in quotation?
    Thanks,
    Vaishnavi

    Include: MV45AFZB
    Form  USEREXIT_CHECK_VBAP
    In our business scenario, we have used the same ,But  Plant is mandatory only for 1st line item-
    source code:
    IF vbak-vkorg = '1000' OR vbak-vkorg = '2000'.
        IF sy-tcode = 'VA31' OR
           sy-tcode = 'VA11' OR
           sy-tcode = 'VA21' OR
           sy-tcode = 'VA41' OR
           sy-tcode = 'VA01' .
          IF vbap-werks IS INITIAL AND
             vbap-posnr EQ '000010'.
            MESSAGE e398(00) WITH 'Please enter the plant for first line'.
          ENDIF.
        ENDIF.
      ENDIF.
    Help:
    Through this form exit we are making the "plant' field (for the ist  &*
    & line item ) mandatory for the sales document . This interns helps us &
    & to create the sales document numner according to the plant (Region)  &
    *& of the Plant
    Hope it clears. take assistance of your ABAPer.

  • How to use FM CRM_ORDER_READ using only object_id(sales doc)

    Hello Experts,
    I need to get the details for a given sales document in
    CRM(crmd_orderadm_h-object_id). I want to use FM CRM_ORDER_READ
    to get the details of a sales doc but my problem is where to put the object_id
    value. ANy simple example would be highly appreciated.
    Thanks a lot guys and take care!

    DATA:BEGIN OF i_order_h OCCURS 0.
            INCLUDE STRUCTURE crmd_orderadm_h.
    DATA:END OF i_order_h.
    SELECT *
        INTO CORRESPONDING FIELDS OF TABLE i_order_h
        FROM crmd_orderadm_h
       WHERE object_id    IN s_obj_id.
      DATA: i_header_guid   TYPE crmt_object_guid_tab ,
            i_et_partner    TYPE crmt_partner_external_wrkt,
            i_et_orderadm_i TYPE crmt_orderadm_i_wrkt,
            i_et_product_i  TYPE crmt_product_i_wrkt,
            i_et_pricing_i  TYPE crmt_pricing_i_wrkt,
            i_et_schedlin   TYPE crmt_schedlin_wrkt,
            i_et_sales      TYPE crmt_sales_wrkt.
    LOOP AT i_order_h.
    CLEAR i_header_guid.
        REFRESH  i_header_guid.
        APPEND i_order_h-guid TO i_header_guid.
        CLEAR: i_et_partner,
               i_et_orderadm_i,
               i_et_product_i,
               i_et_pricing_i,
               i_et_sales,
               i_et_schedlin.
        REFRESH: i_et_partner,
               i_et_orderadm_i,
               i_et_product_i,
               i_et_pricing_i,
               i_et_sales,
               i_et_schedlin.
        CALL FUNCTION 'CRM_ORDER_READ'
          EXPORTING
            it_header_guid = i_header_guid
          IMPORTING
            et_partner     = i_et_partner
            et_orderadm_i  = i_et_orderadm_i
            et_product_i   = i_et_product_i
            et_pricing_i   = i_et_pricing_i
            et_sales       = i_et_sales
            et_schedlin    = i_et_schedlin.
        IF sy-subrc = 0.
        ENDIF.
    ENDLOOP.
    Message was edited by:
            EastViking

  • Cannot find sales doc type data  in my  report on the multiprovider

    hai everone,
                      I'm doing report on the multiprovider which is connected to different ods's  i'm getting the data for all the fields except for 'sales doc type'.I could see the data for it in the ods on which the multiprovider is built but could not find the data in the report.Can any one suggest me how to get the data for sales doc type into my report.
    Urgent..

    yeah listcube is a TCODE to check the data in the cube. run the code and enter the same selections that you would be doing on a query to see and see if it returns any data. if it does, then the problem is with the identification. Most of the times create recommendations work like a charm. But just go into the chars and see if the IO in question has been checked against the ODS that aint returning any records.

  • Payment terms different between sales docs

    Hi Gurus.
    Why do I have payment terms different between sales doc and billing doc for the same customer?
    Detail: the sd and company code vision has the same value in customer master data (xd03, vd03).
    Thanks in advance!
    Renato

    Dear Renato
    Go to VA02, input the sale order and execute.  There click on Environment from top menu bar followed by changes.  You would find four options to choose.  Select
    -  Additional info and
    -  Time of Change
    This would give you who have changed the datas related to that sale order.
    thanks
    G. Lakshmipathi

  • Performence?? pulling billing # with sales doc #, taking too much time???

    Hi Experts,
    Am looing to pull vbrp-vbeln i.e. billing doc #, based on the VGBEL i.e. sales doc #
    i.e.
    select single * from vbrp into wa_vbrp
    where vgbel = wa_vbap-vbeln
    and posnr = wa_vbap-posnr.
    but, as there is no secondary index in vbrp for vgbel and there r tonns of recs in vbrp, its taking too much time?
    so, wht is the alternative that i can find billing doc # with my sales doc #?
    thanq

    Mr. Srinivas,
    Just a suggestion, if you need only the header details, then why not extract data from VBRK (header for billing doc) & VBAK (header for sales doc). These 2 tables contain only single line per billing or sales doc & hence the performance should be better.
    If my suggestion is not what you are looking for, then apologies for the same.
    Regards,
    Vivek
    Alternatively as Mr. Eric suggests, you can use VBFA
    VBFA-VBELN = VBRK-VBELN
    VBFA-VBELV = VBAK-VBELN
    Logic is VBFA-VBELN is the subsequent document & VBFA-VBELV is the preceding document.
    Hope it helps. (but be sure, the document created after sales order is billing document, there might be cases where there could be delivery documents after sales order & before billing document, so be careful)
    Edited by: Vivek on Jan 29, 2008 11:11 PM

  • Tricky Sales doc pricing problem

    I have a problem becasue a particular item category does not have the u201Cdetermine costu201D flag checked and therefore then when pricing is invoked the VPRS pricing condition is not re-determined, and its removed.  Which 99% of the time is what they require.  However, when they create a new order with reference to an old document containing a VPRS condition, but then they change the sold-to party of the new order, pricing is then automatically invoked again, and the VPRS cost is removed, due to the "determine cost" flag not being checked.
    So I need to find away of either ofrcing the pricing to keep the old cost, or a way of putting it back in.  I am looking through the user exits but I can't find a point that actally stores usuefull pricing data. 
    - Neither of the USEREXIT_PRICING_PREPARE_TKOMK or USEREXIT_PRICING_PREPARE_TKOMP contain any useful table that show the VPRS amount.
    So can anyone suggest how I can tackle this problem?

    Dear Ramaswamy,
    As you said, things are proper in Quotation, while the error encountered at Sales Order level.
    Just a thought, check with Copy Control settings (T. Code: VTAA) b/w Quotation-to-Sales Order.
    For combination (say, OR -- QT), at Item (from dialog structure), select Item Category "AGN" and double-click.
    Chexk with "Copying Requirement Routine".
    Also, check with "DataT - Copying requirements for data transfer VBAP".
    ensure, routines are writen correctly, as per requirement.
    Best Regards,
    Amit.
    Note: Also, could you please confirm, whether this error is particularly for this Order, or is getting encountered for every Order.
    Are you using Standard Sales Doc. Types and routines, or Custom-ones?

  • What is the purpose of using cash sales doc type?

    what is the purpose of using cash sales doc type?

    You can go through the link
    http://help.sap.com/saphelp_46c/helpdata/en/70/a7853478616434e10000009b38f83b/frameset.htm
    Update from help.sap.com
    Cash sales is an order type for when the customer orders, picks up and pays for the goods immediately. The delivery is processed as soon as the order has been entered. A cash invoice can be printed immediately from the order and billing is related to the order. Receivables do not occur for the customer as they do for rush or standard orders, because the invoice amount is posted directly to a cash account.
    Process Flow
    In the standard system, sales document type BV is saved for cash sales with immediate delivery type BV.
    When the sales employee creates a cash sale, the system automatically proposes the current date as the date for delivery and billing. Once the order has been posted, a delivery with type BV is created immediately in the background and the system prints a document that is used as an invoice for the customer.
    The invoice papers are controlled with output type RD03, contained in the output determination procedure for order type BV.
    If the customer has already received the goods, this delivery should not be relevant for picking. If the customer is to pick the goods up from a warehouse, the delivery should be relevant for picking. If the goods are to be sent, this can be processed by maintaining the delivery in the usual way.
    The system automatically creates a resource-related billing index which updates the billing due list. Billing document BV is created as the system processes the billing due list, but an invoice is not printed.
    Once the customer has received the goods and is satisfied with them, the transaction is considered to be complete. We recommend that you post goods issue in the background using a program designed specifically for this purpose. You can then bill the transaction.
    The cash sale can only be billed if the order quantity is the same as the goods issue quantity. If this is not the case, you need to adjust the cash sale document so that the delivered quantity and the quantity to be billed match.
    You use an order-related collective billing process to bill the cash sale, but an invoice is not printed. The sales order number is used as the reference for the accounting document, created in Financial Accounting.
    Dealing with Problems and Complaints
    If the transaction does not run smoothly, manual intervention is necessary. For example, if the required quantity of goods is not found in the warehouse, you need to adjust the delivery quantity. Equally, if the customer is not prepared to pay the agreed price, because, for example, the goods are scratched, you can change the price in the cash sale document.
    In extreme cases, you can delete the entire transaction, starting with the delivery.
    If the delivery is damaged before it is picked up but after it is paid for and there is no replacement stock, you can initiate a subsequent delivery.
    If you make changes to the cash sale, you can issue a new cash sale invoice using the repeat printout function.
    Creating a Cash Sale
    In the initial screen, choose Logistics ® Sales and distribution ® Sales.
    Choose Order ® Create.
    Enter the order type for cash sales (BV in the standard system) and, if necessary, the organizational data.
    The values for sales organization, distribution channel and the division are usually proposed from user-defined parameters. Entries for the sales office and the sales group are optional.
    Choose Enter.
    Enter the following data:
    – Customer number of the sold-to party
    – Material numbers
    – Order quantities for the materials
    Choose Enter.
    If the system carries out an availability check and finds that there is insufficient stock for an order item to be delivered on the requested date, it displays a screen on which you can choose between several delivery proposals. Normally, in a cash sale, you only sell the quantity you can deliver on the spot.
    Save your document.
    The system automatically processes the delivery in the background and prints out a cash sale invoice. The amount of the sale is processed later in an order-related billing transaction. The amount is posted to financial accounting, using the order number as reference. Because this is a cash sale, no invoice is produced during the billing run.

  • How to find for a specific sales order trip is created or not?

    Hi,
    I need to find out that a trip is created or not for a specific sales order. Its urgent. Please let me know.
    If you can provide join for the query.
    Thanks

    Hi Suhani,
    Header level click on Action->Additional Information Select Deliveries Tab drag to last you can see Current Trip Details over there.
    Line level is possible to check --Action->Additional Information   Select Deliveries Tab, drag to last, you can see Current Trip Details over there.
    Thanks
    Edited by: 21221 on Feb 26, 2013 5:27 PM

  • Output type & example sales doc

    Hi all,
    As we all know, we can get example billing doc which use the definited output type to print through T-code: VF31.
    Similarly, we also want there existed T-code which can help us to find the example sales doc which used the definited output type.
    But finally, we found it is impossible.
    Anyone can do me a favor?
    Thanks for reading this info.

    Good Morning!
    Please note that you can use transaction VOK2.
    At the top of the screen select "SD Document".
    In this dropdown list you can select which type of SD document output you wish to view. You can choose between viewing the output types, access sequences, determination procedures etc.
    Another useful transaction is NACE which works in a similar manner.
    I hope you find this helpful!
    Martina McElwain

  • How define a sales doc type

    fellows
    i've defined a new inquiry doc type RC and assigned to a SALES AREA. now i'm trying to test this new doc type and getting an error message. it says- RC is not DEFINED to a SALES AREA...so how do u define a new doc type to a sales area?
    thanks in advance
    ralph

    Step 1: Sales Document Type
    IMG > Sales and Distribution > Sales > Sales Documents >
    Sales Document Header:
    1. Sales Document Type:The sales document types represent the different business transactions, such as Inquiry, Quotation, Sales Order, etc. To create new sales order type, always copy as with reference to similar sales order. If possible use standard sales order.
    2. Define Number Ranges For Sales Documents: Maintain number range with discussion with core team.
    3. Assign Sales Area To Sales Document Types:
    A. Combine sales organizations / Combine distribution channels / Combine divisions: Ensure to maintain these, else Sales Order creation will give error.
    B. Assign sales order types permitted for sales areas: Assign only required Sales Order Types to required Sales Area. This will minimize selection of Sales Order Type as per sales area.
    Regards,
    Rajesh Banka

  • Summ a measure over 12 months for a specific sales month

    Hi
    I have been trying to Sum a measure (Income) over the next 12 months (Date) for a specific sales month (SalesDate)
    This query at least returns values but does not limit the measure to the first 12 months:
    With
    Member [Measures].[Income - plus 12] As
    Iif(
    [Date].[|Date - Month Description].CurrentMember>=[SalesDate].[SalesDate - Month].CurrentMember
    , Sum(LastPeriods(- 12
    , [Date].[Date - Month Description].CurrentMember
    [Measures].[Income]
    )  HINT STRICT
    , Null
    Select
    [SalesDate].[SalesDate].&[2014]
    Except([SalesDate].[SalesDate - Month].[SalesDate Month]
    , [SalesDate].[SalesDate - Month].[All].UNKNOWNMEMBER
    } on Columns
    , [Measures].[Income - plus 12] on Rows
    From [My Cube]
    So I tried this query but it returns nulls:
    With
    Member [Measures].[Income - plus 12] As
    Sum(
    (LinkMember([SalesDate].[SalesDate - Month].CurrentMember
    , [Date].[Date - Month Description]
    LinkMember(
    ParallelPeriod([SalesDate].[SalesDate - Month].[SalesDate Month]
    , -12
    , [SalesDate].[SalesDate - Month].CurrentMember
    , [Date].[Date - Month Description]
    ,Root([SalesDate])
    [Measures].[Income]
    Select
    [SalesDate].[SalesDate].&[2014]
    Except([SalesDate].[SalesDate - Month].[SalesDate Month]
    , [SalesDate].[SalesDate - Month].[All].UNKNOWNMEMBER
    } on Columns
    , [Measures].[Income - plus 12] on Rows
    From [My Cube]
    I would appreciate any input (urgently as I have been fighting with this for a week now)

    Hi Simon
    Thank you for your reply! I hope this will shed some light:
    In the original question, I tried to make the query generic but here is the actual issue:
    Ok, I can't upload images as my account has not been verified but this code returns the total prem for inception date January 2014 but includes values in 2015:
    With
    Set
    [Inception - plus 12]
    As
    LinkMember([Inception Period].[Inception
    Year - Month]
    , [Loss Ratio Period].[Loss Ratio Year - Month Description])
    LinkMember(ParallelPeriod([Inception
    Period].[Inception Year - Month].[Inception Month]
    , -12, [Inception Period].[Inception Year - Month] )
    , [Loss Ratio Period].[Loss Ratio Year - Month Description])
    Member
    [Measures].[Total Prem - plus 12]
    As
    sum({ [Inception - plus 12] }
    , [Measures].[Total Prem] )
    Select
    [Inception Period].[Inception Year].&[2014]
    *[Inception Period].[Inception Year - Month].[Inception Month]
    onColumns
    , [Measures].[Total Prem - plus 12]
    onRows
    From
    [Loss Ratio Cube]
    So the result for January 2014 includes the Total Prem received in Jan and Feb 2015. So the code under your suggestion, however, the result is now (null)
    With
    Member
    [Measures].[Total Prem - plus 12]
    As
    sum({LinkMember([Inception
    Period].[Inception Year - Month]
    , [Loss Ratio Period].[Loss Ratio Year - Month Description])
    LinkMember(ParallelPeriod([Inception
    Period].[Inception Year - Month].[Inception Month]
    , -12, [Inception Period].[Inception Year - Month] )
    , [Loss Ratio Period].[Loss Ratio Year - Month Description])
    , [Measures].[Total Prem] )
    Select
    [Inception Period].[Inception Year].&[2014]
    *[Inception Period].[Inception Year - Month].[Inception Month]
    onColumns
    , [Measures].[Total Prem - plus 12]
    onRows
    From
    [Loss Ratio Cube]

Maybe you are looking for

  • HT1918 Every time I tap payment info it keeps telling me my session has timed out

    Every time I tap on payment information in settings it keeps telling me my session has timed out, I need to change card details and cannot do it

  • Converting photo to line art?

    I have Photoshop Elements 5.0 and want to know if there is a way to take a photograph and convert it into a line art image. I have tried a combination of a few different filters and have not been able to get the results I am looking for. Any thoughts

  • Subject: QM : Unit of Mesure of Field Cant find in any table

    Dear All sap Gurus, I have one inspection lot , for that inspection lot no of characteristics & specification & result are maintained . the t-code is QE13 in that t-code i am maintained this things . in that t-code in specification column FC maintan

  • Aliasdetourhost doesn't work...

    Hello! I'd like to route mail messages to antivirus server for checking. I changed imta.cnf by http://docs.sun.com/source/819-0105/channel.html#wp100754. But MTA doesn't send mail messages to antivirus server - it delivers messages without antivirus

  • How does LR use Daylight/Tungsten settings in a camera profile?

    Didn't see this in the very excellent DNG profile faq. If I make a profile that has different settings for daylight and tungsten, how exactly does LR decide when to use each? For instance, I would imagine that if I choose the Tungsten preset for WB,