Fm for status based on sales document number

Hello Gurus,
Can you please provide me the function module to get status( open, complete, inprocess) based on Sales document Number.
Thanks

Hi,
Use FM BAPI_SALESORDER_GETSTATUS for getting the status of the Sales Order.
Also:
Check the given requirementcorrectly once again
Because for sales order we don't use the field OBJNR (object no) to find the ststau
Generally we use this field OBJNR for finding the Status of the PP,PM related Orders.We will take the OBJNR from AUFK table and Pass it to the JEST table
and will read the STATUS of the Order
So for sales order we don't have that field OBJNR
if needed use the BAPI BAPI_SALESORDER_GETSTATUS to find the sales Order status
Or use the table VBUK to find the Sales order status
Reward points if found helpful...
Cheers,
Chandra Sekhar.

Similar Messages

  • Find Item number based on Sales document and material in GTS system

    Dear experts,
    I have a situation where in I created a Sales order in ECC system and transmitted the document to GTS for compliance check.
    Now, during my subsequent processing in ECC side, there is a situation where in I need to check if the document (at every item level) is blocked for any reason or is it good to go. But I do not have the item number in ECC side (at the point where I'm calling RFC to GTS to check). I only have sales order number and the material number.
    So, can some one point me table level information in GTS side on how I could find the item number based on Sales document and the material (In our scenario all our materials in a sales order will be distinct).
    Please provide me table information on where the sales document number, item number, material info are stored in GTS.
    Thanks for your time
    -Amit

    Use these tables
    /SAPSLL/CORREF
    /SAPSLL/PNTPR
    /SAPSLL/CUIT

  • Sales document number based on pricing procedure ,sales area , customer pri

    Hi,
    where can i get saler document number based on pricing procedure ,sales area , customer pricing procedure and document pricing procedure.
    please tell me the table name.
    Thanks
    Edited by: pandu123 on Jun 16, 2011 8:22 PM

    I never heard of this requirement before, pulling sales document number based on pricing procedure based on customer pricing proc + document pricing procedure +sales area. These data are found in tables VBAK, T683,KNVV and TVAK. I dont think you can use ABAP query to join these table, check with an ABAP'er to develop a program for this requirement.
    Regards,

  • User-Exit for changing Sales Document Number - Urgent

    Hi Experts ,
                     Please suggest me the <b>User Exit for changing Sales Document Number.</b>
    thanks,
    Jayesh<b></b>

    hi jayesh,
    chech this exit-----EXIT_SAPFV45S_002.
    this exit's description says " Change Sales Document Using Configuration".
    Other available exits are
    SDAPO001            Activating Sourcing Subitem Quantity Propagation
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0001            Determine alternative materials for product selection
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing plan
    Enter these exits name in SMOD transaction and select components. u can find all the user exits available for this exit name.
    Reward me if useful..........
    Harimanjesh AN

  • Custom master data for Sales Document Number

    Is it possible to create master data for "sales document number" as a custom field and/or table in R/3?  We have a need to record the "end user" customer of an order but this data may be updated a long time after the order and sale is complete.  IT seems that loading to BW/BI may be simpler if this is treated as document attributes rather than transactional data since no delta will be trigger by changes to this field.  Does anyone have experience with this approach?

    Hi,
    it is possible to create attributes for this InfoObject. Add the Attributes you need in BW. You can use the attributes even if the sales doc is line item dimension of your cube.
    On Sourcesystem side you have to create a generic extractor in SBIW. I think a table view on VBAK or VBAP may fullfill your needs. Of course the tables are not the smallest ones but maybe u can use the timestamp to implement a generic delta. Check whether the timestamp is set when the 'end user' is set. Not every change in the sales document leads to an entry in the delta queue of logistic, but the timestamp should be set.
    After that replicate the datasource to BI and connect it to the attributes of 0SALES_DOC
    I had a similar enhancement at one customer reading the actual transport routes to the sales documents and it worked fine.
    Hope that helps
    Christoph Vortkamp

  • Sales Document Number field in ORDER05 IDoc

    Hi All,
    I am using a ORDERS05 message type for my inbound IDoc. I am using the copy of FM IDOC_INPUT_ORDERS. I am getting a Sales Document Number from BizTalk apart from other details. I want to feed this Sales Document Number in IDoc segment, so that the order is posted with the fed sales document number instead of system generating one.
    Please let me know in which segment and field, I should assign the Sales Document Number (received from biztalk) in the IDoc?
    Thanks in Advance,
    Bipen

    Pass external Order number in segment E1EDK02. Set the field QUALF as '066' (External Order Number) and pass the order number in field BELNR (See code lines 69 to 73 of include LVEDAF5S).  This assignment will work only if the Number range configuration for Order document type is External.

  • Sales Document number in FBL5N

    Hi Friends,
    In FBL5N (customer line item report) there is a field "Sales Document" Field Name "VBEL2". But the accounting document which is generated in FBL5N for billing document from SD in not populating the sales order number in this field, this field is blank.
    this field is getting populated for down payments with relevant sales document number and not for invoice document.
    Our client wants the sales order number to be reported in customer line item report for their tracking.
    Can any one please suggest how this can be achieved.
    Thanks & Regards

    You can map Sales Order number to either 'Assignment' or 'Reference' fields in accounting document using Copy control function in SD. Please use transaction VTFA, this needs to be maintained for combinations of billing type and sales document type. Please ensure these fields are not currently used in your system for other information.
    Following fields can be mapped to 'Assignment' or 'Reference'.
    A Purchase order number
    B Sales order number
    C Delivery number
    D External delivery number
    E Current billing document number
    F External delivery no. if available, otherwise delivery no.
    If you currently use 'Assignment' or 'Reference' fields for other details, you can use user exit EXIT_SAPLV60B_008.
    Thanks
    Venkata Ganesh Perumalla
    Edited by: Venkata Ganesh Perumalla on Oct 4, 2010 11:52 AM

  • Sales document number not appearing in Work Item.

    Hello gurus,
         I have created a WorkFlow for approval of Sales order. My problem is, the sales document number is not appearing in the WorkItem for user decision task. I am passing container variable the sales document number in the Parameter1 of the User Decision task of the work flow. Value is populated correctly in the container variable for sales document number, but fails to appear in the work item content in SBWP.
         Please suggest a solution.
    Regards,
    Dnyanesh.

    Hello All,
         Thanks for your reply.
    I am passing the value of sales document number in parameter 1 of the standard task for approval as below.
    But in my Business Workplace I do not get the Sales document number. Below is the screenshot.
    Regards,
    Dnyanesh.

  • Change the condition type based on sales document type

    Dear ALL,
    I have created a condition Zxxx which is a fixed calculation type for the documents created by the upload from external tool to SAP.  I created this condition because external tool is using a 15 place decimal which SAP doesn't allow and if the normal condition type Zyyy is used SAP calculates once in SAP and there are rounding issues.  What the Zxxx condition type does is accept whatever value is sent up from external tool to SAP, regardless of the quantity.  The problem is that whenever they create a credit with reference, in SAP and they want to do a partial credit, the Zxxx doesn't take the partial quantity into consideration and doesn't change the value. 
    Is there a way to force SAP to change the condition type from Zxxx to Zyyy based on sales document type without recalculating the whole document because that would again, cause rounding issues.  We would need to have the calculation done only on quantities changed in the credit memo request .
    please advice me. your inputs are highly appreciated.
    TIA
    KOGI

    Dear ALL,
    someone please help me with this issue. your inputs are higly helpful.
    TIA
    KOGI

  • Sale document number range

    Dear all,
    I've a small issue with sales document number range. I create a range 01 from 1 to 4999999 by tcode VN01. But when the first sale document is created, the system gets the number 1000001 & assign to this sale doc. (Not 1 as usual). Do you know the reason why ?
    Thank you very much for your help,
    Regards,
    Tweety.

    Go to VOV8, select the sale document type and execute.  There ensure that this 01 is assigned to Number range int.assgt
    If not, maintain 01 and retry to create a sale order.
    thanks
    G. Lakshmipathi

  • Sales Document Number

    Hi All,
    Is there any function module that returns the sales document number for the relative billing document generated?
    Thanks in advance.
    Regards,
    Arunkumar S

    Hi Arun,
    did you check that...
    In se37  you can directly run the FM <b>RV_ORDER_FLOW_INFORMATION</b>
    Just don't do any thing enter only COMWA with your Billing Invoice (VBELN)
    <b> COMWA        107220249 0000000000  </b>  
    and Run it. and check the Table parameter <b>VBFA_TAB</b>.
    Regards
    vijay

  • Remodeling the cube and adding sales document number

    HI guys
    I have a requirement of sales order number in the sales over view cube ( 0sd_c03 ) so i am planing to remodel the cube to add sales order number and item
    as i can not create a new dimension i have to add these two charecteritics to a old dimension
    so whether it will give any perfomance issues later on as the sales document number will increase the
    records in that dimesion or can i go ahead to do it or i have to delete the data in cube and change the cube adding a new diemension ( line item dimension)
    please suggest..
    Regards
    Amiya

    Hi Amiya,
    Regarding ur case ..
    In my opinion, it should be separated into different dimension ..
    Because it will make that old table dimension become have huge data,
    it will make slow in fetching the data.
    To make it.
    1. Edit Info-Cube using t-code RSA1
    2. Create new dimension, and insert dummy characteristic, then save, and activate it.
    3. In the remodeling, t-code: RSMRT, you can add those 2 characteristics there, you also can initilize the value for those characteristic.
    4. Then, in the remodeling, you delete the dummy characteristic.
    Hopefully it can help you a lot.
    Best regards,
    Niel.

  • How do I prevent a Sales Document number to be generated

    Hi Experts,
    I'm going to be using bapi_salesorder_create_fromdat1 to simulate a sales order create, but I will not commit it.
    The BAPI has a flag that I can set to prevent a sales order from being created.
    Problem is that: 
    It still generates a Sales Document Number, which I don't want to have happen.
    Has anyone done something similar or at the very least prevent a number from being taken from the number ranges from config?
    Regards,
    Orlando

    Hi Orlando,
    as per your last thread i understand no sales order generated but number rage is taken.
    so for your test purpose you can assign new dummy number range to order type and after your simaltion you can reassign the original.
    I know this is not what you want but still this could be one of soultion to your problem.
    hope this solves your purpose.
    regards/ashu

  • Sort key- Sales document number in assignment field-

    Hi,
    Please clarify how sales document number flows in to revenue line item when we release billing document to a/c in VF01/VF02.
    We maintained sort key042(sales order)- FS00 for G/L account .
    But data flowing to few documents only. What is reason?
    Thanks
    Chidambaram

    Hi
    In order to get the value you require in BSEG-ZUONR you need to populate field vbrk-zuonr in the userexit (RV60AFZC:                 
    USEREXIT_FILL_VBRK_VBRP)                                                                               
    In FI documents which are created from SD billing documents the assignment number in the customer line item of the FI document   (BSEG-ZUONR) is filled with the assignment number in the header of the billing document in FORM ACCOUNTING_HEAD_LINE of function module RV_ACCOUNTING_DOCUMENT_CREATE:                                       
    FORM ACCOUNTING_HEAD_LINE. (LV60BF00)                                
      XACCIT-ZUONR = VBRK-ZUONR.               
    Kind Regards
    davide

  • Add sales document number in a  Billing due list(VF05)

    Hi Experts,
    Like the thread There is a requirement to have the Billing due list(VF05) with the VAT numb
    There is a requirement,to have the Billing due list(VF05)-Out put with the sales document number VBAK-VBELN and customer purchase order number VBKD-BSTKD.
    I want to apply the OSS note 398575:
    Replace dummy in the structure VKDFIZ field with  VBELN  and BSTKD .
    in Table T180A , add two new data record:
                                  TBNAM = 'VKDFIF'
                                  FDNAM = 'BSTKD'
                                  ZUART = 'D'
    But my question is : for the record
                                  TBNAM = VKDFIF
                                  FDNAM = 'VBELN'
                                  ZUART = 'D'
    The fileds VBELN already exist in the structure VKDFIF and  don't designate the sales document number.
    What can I do to designate the sales document number added in the structure VKDFIZ ????
    Regards
    Marie-Madeleine

    Hi
    The Tcode VF05 is not billing duelist but it is the list of billing documents. For including the fields you want, please go through the OSS note 485928

Maybe you are looking for