Sales Forms: Document Type

Hi all,
I am trying to set a search define up that works on all sales forms, rather than create an alternate one for each form. I know I can get access to generic sections of the form using the following:
$[$4.0.0]
Which I know can get me the BP code for example, but I wish to extract the document type from the form, does anyone know if this is possible? or what number I would be after?
I know that $[$1.0.0] is the add/update button for example, the few numbers I have tried haven't yielded the correct results....
Is the a guide or list that contains these references??
All help is much appreciated.
Kind Regards
Matthew

Hi,
Thanks for your response, unfortunately I don't think I discribed what I am after too well...
I am trying to write a query the will work on all sales forms but access UDF information rather then create six different queries to do the same thing. So what I am after is adding a form, then checking a forms type ie. Sales order/delivery note and then responding by grabbing the correct UDF, unless there is a way of accessing UDF's other then like this $[ODLN.UDFNAME] as this will get it for a delivery note but not a sales order.
I need something like:
SELECT CASE FORMTYPE WHEN 'SO' THEN $[ORDR.UDF] WHEN 'DN' THEN $[ODLN.UDF] ELSE '' END FROM $[$FORMTYPE]
I know you can get the information from a saved form as thats recorded in the database as ObjType, i.e Sales Order is 17, Delivery Note is 15. But my interest is a form creation level not from saved data...I would like to know if there is a way to get this from the form itself...
Unless of course there is another you can get $[ODLN.UDFNAME] without specifying the form name...
I'd prefer a way of doing this mainly from the maintanence of query side in case we wanted/needed to alter the query - its easier to alter 1, than 6 etc..
Kind Regards
Matthew

Similar Messages

  • Invalid combination of Sales org,document type,division

    Hi Gurus,
    I entered sales area in the salles area header but when when i am entering customer it is saying
    "Invalid combination of Sales org,document type,division "
    Can anybody tell the reason of it.

    Ensure that both the material code and customer code are created in the same sales area.  To check this, go to MM02, key in the material code, select any sales view and check in which sales area, the material has been created.  Similarly, go to XD02, key in the customer code and below you can see a tab "Customer sales area".  Click that so that you can see in which sales area, the customer has been created.
    thanks
    G. Lakshmipathi

  • Revenue Account Determination based on Sales Order Document Type & Service Order Type

    Hi Expert,
    I have Customer Service Module with Resource Related Billing for services attached with SD.
    When DP90 runs sales document debit memo request is created & then debt memo is created.
    I need to configure Revenue Account Determination based on Sales Order Type and also based on Service Order Type.
    I did not see any field catalogue in revenue account determination for order type, For communication structure KOMKCV Header and KOMPCV Item level there is no field for sales order type nor service order type.
    Is it possible to bring in both order types? Can ABAP person do it?
    How to bring these fields?
    Is it possible & recommendd to have service order type filed AURAT for service order into this sturcture?
    Is this configuration is OK acceptable by SAP? If so is there any chnace for issues errors & wrong determination from FI CO view?
    Your valued input is highly appreciated.
    Thanks
    Prakash Parikh

    Hi Prakash,
    Yes, you can certainly add new table fields into the field catalog KOMKCV and KOMPCV and use it during account determination. You will also have to add these new fields in the user exit RV60AFZZ for it to work. I believe you will need ABAPer's help to make this work. The abaper will have to crate a ZZFIELD (ZZAUART for example) and put it in the structure and use the same in the user exit to pass the values.
    In your case, what I am not sure is, are you looking to modify the existing standard tables or creating new ones. My suggestion is to create the new condition tables with these new fields (like document type) after adding it to the field catalog. Only modify the access sequence (KOFI) in such a way that your new tables are access first before it goes into standard tables (or you can adjust it according to your scenario.
    We have done it in our company and it is working fine. Basically what we have done is to create new tables instead of modifying the standard ones. We have adjusted the access sequence in such a way that some of our custom tables are accessed first before the standard SAP tables (C001 to C005).
    I found a similar requirement on SCN. This might help.
    Adding New Field in Account Determination
    Hope this helps.
    Regards,
    Mukund S

  • Two different billing document types for 1 sales document type.

    Hi Gurus,
    I have a requirement , wherein our client is having counter  sale.
    He is using one sales doc type , and while creating a order , he is manually adding payment terms.
    Requirement is , if the payment terms are cash, billing doc type created later on should be one , else during credit sales , billing document type should be different.
    As per my understanding this is not possible.
    Want to know if anyone has some different thought on this.
    Thanks in advance
    Nilesh.

    Dear Nilesh,
    There two options you can look in to
    One option is
    1.You can define different sales document types for cash and credit.
    2. You can define two different billing documents.
    3.Do the copy control settings for each combination
    Cash sales order >Delivery>Cash invoice
    Credit sales order >Delivery>Credit invoice
    Second option is
    1. You can maintain single sales document for both the processes.
    2.Define two different billing types then do the copy control settings for both billing types.
    But in this option user need to select the billing type manually based on the process while creating billing document.
    I hope this will help you,
    Regards,
    Murali.

  • Reference of Contract for an FOC document type

    Dear all,
    I have a scenario where i create a Contract with value, then for that contract if needed i send materials in FOC, so when you check the copy contral we can assign the contrac to FOC sales order document type.
    when when i really create the FOC order with reference to Value contract it does not allows, as because the sale document is have reference mandatory option only for Quantity contract to be copied or referenced for a sales order,
    so any suggestion for acheiving the same.
    Thanks
    Sudhir

    Closing this thread, No solution yet

  • Sales order doc types to Roles - IMP question

    Dear Gurus :
    We have a requirement .We are revising users  who has authority  to do certain   SD transactions like  superviosr has access to all t codes related to sd. billing co ordinatior will have access to all billing docs and t codes.
    Requirement is :
      I have ot assing Sales order document types to roles. Any idea how to do it ?
    Full reward points will be given.
    Vanbills

    Dear van bills
    Through two options, you can achieve this
    - Basis team people can control authorization for specific user ids
    - Apply transaction / screen variant via shd0 so that you can decide which user can enter / alter datas.
    thanks
    G. Lakshmipathi

  • User exit for VA01 - No range for sales document type

    Dear Experts,
    In our project, we have 8 sales organizations and these are assigned to 8 different company codes. Actually our client doesnt want to maintain different document types for each Sales Organization. We need to maintain one document type for all the sales organizations and different No ranges for each sales organization. So can any one guide me on User exit available for this purpose.
    Thanks & Regards,
    Rahul

    hi,
    pls refer to the following user exit.
    Include prog : MV45AFZZ
    USEREXIT_NUMBER_RANGE
    Use this user exit to define the number ranges for internal document number assignment depending on the required fields. For example, if you want to define the number range depending on the sales organization (VKORG) or on the selling company (VKBUR), use this user exit.
    The user exit is called up in the FORM routine BELEG_SICHERN.
    reg
    Deepak

  • Crystal Report - multiple sales document types

    In XLR, I can easily drag 'DocNum', 'DocDate', 'Sales Doc Type' fields and specify the filter to show sales doc type equal to A/R invoice and A/R credit memo. It neatly shows various types of sales documents and display them in rows.
    In crystal, I have to drag the 'DocNum', 'DocDate' fields for A/R Invoice, A/R credit memo individually under different columns. Is there a way I can dispaly mixed sales document types in rows? Thanks.

    Hi,
    In XLR, you get the data from JDT1 table. You can do the same for CR.
    Thanks,
    Gordon

  • Immediate Transfer Order Creation not occuring for Sales Document Type

    Hello gurus,
    I have a situation where a transfer order is not being created immediately for a specific sales document type.
    Here is an example document flow of a desired scenario where the system is working:
    Sales document type:  ZOR
    >  Delivery type:  LF
    >  WMS transfer order
    The Item Category in this scenario is TAN.
    Here is an example of the document flow in the current scenario where the system is not working:
    Sales document type:  ZPRD
    > Delivery type:  LF
    The Item Category is also TAN in this scenario.  The only identifiable difference in these scenarios is the sales document type.  For the ZOR SaTY, a Transfer Order prints immediately once the delivery is created.  For the ZPRD SaTY, a Transfer Order needs to be manually created after delivery creation.
    Is there a configuration setting that is controlling this?  Any help would be greatly appreciated.

    Thank you very much for the link.  When I insert the WMTA output type in the delivery output header, the Transfer Order is automatically created.
    The problem I'm running into now is the configuration setting that controls this.  I thought I figured it out when going to this IMG path:
    SAP Customizing Implementation Guide  -->  Logistics Execution -->  Shipping -->  Basic Shipping Functions  -->  Output Control -->  Define Print Parameters Shipping
    When selecting the Delivery Note, the shipping point I was using was not configured in this location.  I added the shipping point into this transaction, saved, and created a new order & delivery.  However, the WMTA output type still was not automatically inserted into the delivery when saving.  Is there another location I should be looking to fix this so that when I enter an order with a particular Shipping Point, the WMTA output type automatically appears in the delivery?

  • Smart form w.r.t PO document types

    Dear Experts,
    I have a scenario where in I need different po prints ( smart forms ) for different PO document types. So I have created new Purchase Order Output Type ZNEU & assigned seperate smartform. Further while creating output condition records for purchase order thru MN04, getting a message saying Transportation is not defined for master data. ( information ). I have maintained that also. But still in PO this output type is not picked up. ALso if i try to maintain in po thru Me22n, i am getting an error saying Output ZNEU is not defined. Please help me to rectify this. I need different PO forms for different PO document types.

    Can you check any steps missed in configuration.
    Re: PO OUTPUT CONFIGURATION
    You can develop different smart forms dipperent document types.

  • Billing block for customer for sales document type OR

    Hi
    I want to block a customer for a particular sales document type OR
    How to do it?
    Regards

    Hi Nikhil
    There is a field called "Check Partner Auth.", but it is necessary to create the order from a contract. This field is in sales document customizing VOV8.
    SAP Documentation:
    Check partner authorizations
    This check determines whether a partner is authorized to release against a contract.
    Procedure
    Here you can specify whether the check is to be performed against the partners in the contract or the partners in the customer hierarchy. If you do not want the check to be performed, leave the field blank.
    When you create a release order for a contract, the system determines whether a partner is authorized to release against the contract. The check is performed at header level. Depending on the rule you enter in this field, the system checks against one of the following:
    Partners in the contract
    If the partner has the partner function AG (sold-to party) or AA (sold-to party authorized to release) in the contract, the system accepts the partner as the sold-to party for the release order.
    Partners in the hierarchy
    If the sold-to party of the contract is at a higher level in the customer hierarchy to the partner who wants to release against the contract, the system accepts the partner as the sold-to party for the release order.
    Note
    If you create a contract with reference to another contract, the system does not run a check and it copies all the partners created in the target contract. If you do not want it to do this, use copying control in Customizing to change it.
    Regards.
    Mikel

  • Sales document types during initial load

    Hi Gurus,
    Landscape - SAP R/3 4.6 c, CRM - 4.0
    We are starting the initial load for the Sales documents, item categories etc.
    For the same, for the document types in R/3, we have the same document type in CRM.
    Question 1- Do I need to configure the partner determination, incompletion log etc for the document type before the initial load or I can do it later once the data is in CRM.
    Question 2- Is it mandatory that for all the doc types in R/3, we have the respective document type in CRM? Logically yes, if yes, where can I find the mapping? For example for OR in R/3, there is a TA in CRM.
    Request someone to answer this ASAP.
    thanks
    Yash

    Hi Yash,
    I think the behavior is just use the same code
    of Transaction Type in CRM and Order Type in R/3.
    Since partner determiniation using different partner
    function codes in CRM and R/3, maintained or not in R/3,
    you may still need to maintain it again in CRM.
    For document, what you can do just create same document
    type (Transaction type) for R/3 and CRM. And depends upon
    you sceneario (in CRM there are several scenarios such as
    document created in CRM and transfered to R/3 Or download
    R/3 document into CRM - no transaction in CRM).
    Especially for partner, you may need to setup data
    transfer CRM to R/3 or R/3 to CRM in CRM configuration.
    And in R/3 you need to define it in tcode PIDE.
    Hope this helps.
    Cheers,
    Gun.

  • Sales document type restriction to create sales order

    Hi Frinds,
    My client has one requirement ...they have different sales document type. For sales document type  free of charge delivery they want only some authorised person should be able to create sales order. Is it possible to set the authorisation to create sales order according to sales document type.
    Regards
    SV

    Yes, 
           As already suggested, it is very well possible to restrict the user for the use of certain sales document type from basis.
    & to add to the above,
    Create Z* table with Sales Org + Doc type = UserID.
    call this table in VA01 transaction & write piece of coding , if current USerID have entry in this table with the said combination - should not allow to proceed further.
    without any basis involvement also you can ahieve your requirement.
    Note: Sales Org is used for validation purpose only.
    Regards,
    Reazuddin MD

  • SAP SD Material Determination not reflected in assigned sales document type

    Hi Experts,
    I have implemented customized material determination, with requirement to change the UoM of the entered material, from GJ to MJ. I have assigned the procedure to 3 document types:
    1. sales order type
    2. credit memo request
    3. debit memo request
    However, this setup is only reflected in the 1st sales document assigned with the procedure. It is not reflected in the credit or debit memo request.
    I have turned on the material determination analysis in sales order. Per my checking during credit memo request creation, the analysis indicated that the condition is found successfully. But the UoM did not change in the document.
    Please assist.
    Thank you.
    HJMY
    Edited by: HJMY on Sep 20, 2011 1:24 PM

    Hi Ravi,
    Thx for your reply.
    But I am creating credit/debit memo request without reference to billing.
    When I create credit/debit memo request, the material determination is triggered.
    Per my test today for credit memo request, I found that the material determination is triggered.
    However, the substition UoM is not reflected in the credit memo request document.
    The result is reflected only in sales order.
    Please help.
    Edited by: HJMY on Sep 21, 2011 3:28 AM

  • What are the img setting to be fullfilled while copy the Sales document typ

    Hi What are the setting to be fullfilled while copy the sales document type and item category.
    Note:  I have already copied, but unable do the PGI(Post goods issue),  and Billing.
    Thanks
    Prasanna

    Hi
    Answer for this Question.
    we have set the copy control for sales order type and delivery and billing
    Regards
    Prasanna R

Maybe you are looking for

  • Stuck with query on dba_tab_partitions because of long .

    Hi, I'm trying to dynamically generate split partition sql but stuck with error ORA-00932: inconsistent datatypes: expected NUMBER got LONG. Here is my code. select 'alter table ' || table_owner || '.' || table_name || ' split partition P_MAX at ' ||

  • HTTP Post Action Block

    Greetings all, I am using a HTTP Post Action in BLS - Vs 11.5.  The objective is to return a HTTP string from a jsp page, so I can scrap the page.  The URL:  http://mospublic.ercot.com/ercot/jsp/balancing_services_mcp.jsp?marketdate=2008-06-16   (obv

  • How SAP AII(Auto-Id-Infrastructure) communicate with PI

    Hi, How SAP AII communicates with XI,?? And , what is XI content in SAP AII. -Surya

  • Problem with Pdf and MS Office2007

    I have PowerPoint 2007 and Adobe Pro 9 installed. When I make a pdf in the previous version (MS Office2003) PDF is the compact size. In 2007 the pdf version is larger than the size of pptx. what happens? There's no more compact version of office in 2

  • BPC 75NW YTD / Periodic Measure query

    The Application is currently set to YTD. The Inputs are therefore done on YTD level for Costs. Headcount is a statistical account with AST account type, so YTD/Periodic measures become irrelevent. Now, What I need is Periodic Costs  Divided by HC to