Function Module to retrieve ALL Sales Orders in SAP based from a UserStatus

Can someone know a function module to give me a set of Sales Documents
of a specifc type and a specific System Status.
For example:
CALL FUNCTION '?????'
    EXPORTING
        txt04    =    'INAC'    "specfic status text not the 'E0001' JEST-STAT value.
        inact    =    ' '           "for ACTIVE statuses only.
        auart    =    'ZMAG'   "specifc document type
    TABLES
        t_vbeln    = i_vbeln   "result is a list of sales orders based from criteria above
I am thinking it is not as simple as the above. But 2 - 3 FMs will do.
Note: I am not given a choice to SELECT from DB tables VBAK and JEST. They want pure FM calls only. Please reply ASAP.

Hi,
i dont think there is any FM as such ..
but in VA05,,, u will get the all the information
reward points if it is useful...
thanks,
Manjunath MS

Similar Messages

  • Bapi or function module to create a sales order in CRM 5.1 system

    Hi experts,
    Anyone knows any Bapi or function module to create a Sales order in CRM 5.1 system directly.
    Thanks.
    regards.
    Ruchi.

    hi ruchi,
    sory for the late respond, got a lot works to be done.
    based on my experience, you need several more information such as currency, uom for quantity, sales organization, etc.
    and honestly, i have never tried to create an order by just using 3 information ( sold to party, item, and quantity ),
    but i think it is possible because some of the information can be determined using configuration, but still some information is missing and the order that you create will have an error and you can't do next process of the order unless somebody fix / fill the information needed.
    just an idea, perhaps you need some z-tables to put your certain information needed for order creation and the information is maintained for each sold to party ( sold to party is a key of z-tables ) and each time order is created, all information will be query in this tables.
    and for this tables may be you can create an offline maintainance scenario using an adobe document. by this way, the sold to party can maintained all his/her/their information by them self.
    and by using this scenario, you can still maintain / create the order by programming ( perhaps using function module CRM_ORDER_MAINTAIN or else ).
    actually i want to implement in my company but don't have a chance becuase all has been set up and the management will think twice for implementing this scenario.
    hopes it hels
    cheers

  • Function Module to create a Sales Order in CRM

    Hi Experts,
    I want to create a function module which creates a Sales Order in CRM.
    As of now, I'm making use of the function module 'BAPI_BUSPROCESSND_CREATEMULTI'.
    I have product ID and Quantity.
    Please let me know what all rest of the fields are mandatory to create a Sales Order using this function module.
    Thanks in Advance,
    lakshman.

    Depending upon the configuration many things could be mandatory. Assuming no such things in your system, Process type (order type) is required and it is good to give the Sold-To business partner and the Org Details, for the Header information. For the item information, you need the Product and Quantity.
    In theory, in CRM, you can create a transaction and "save" it with lot of errors. So, even if you don't give enough information, you will have a transaction with error. You can later fix it the input to fix the errors.
    Best way to know is to use your SAPGUI (CRM Online) version crmd_order and find for your implementation.
    Easwar Ram
    http://www.parxlns.com

  • Function module to retrieve all the personnel numbers in the eval path

    Hi all,
    I want to retrieve all the personnel numbers that fall in the evaluation path.
    Like if my evaluation path is "B002" ( eval path for relationship is line supervisor of ), I want a function module that retrieves all the pernrs in this wval path up to the bottom level.
    if A reports to B and B reports to C and C reports to D . I want a function module to retrieve(either positions or pernrs) C, B and A when I run it for position D.
    any help??
    regards
    Sam
    regards
    Sam

    Hi
    U can use FM  RH_STRUC_GET to get the pernr in the evaluation path
    data : IT_RESULT_TAB     TYPE STANDARD TABLE OF SWHACTOR .
                CALL FUNCTION 'RH_STRUC_GET'
                  EXPORTING
                    ACT_OTYPE  = C_OTYPE
                    ACT_OBJID  = W_POSIT
                    ACT_WEGID  = C_WEGID (relation B002 like )
                    ACT_BEGDA  = W_BEGDA
                    ACT_ENDDA  = W_BEGDA
                   ACT_TDEPTH = 1 ( depath 1, 2, etc )
                  TABLES
                    RESULT_TAB = IT_RESULT_TAB .
    Nb : Give points if it worths

  • Function Module to update the sales order header status

    Hi,
      I am looking for a function module to update the Sales order header status.
      Pls. let me know if anybody has used any FM to update the SO status.
    Thanks,

    By mentioning status do you mean Object status or Document status??
    For Object status you may use FM: STATUS_MAINTAIN
    For document status it changes according to flow.
    Regards
    Eswar

  • Creating Sales Order in SAP B1 From a Web Service ????

    Hello All,
    I want to know whether we can create a Sales Order in SAP B1  using a Web Service .
    Will i be able to use the DI COM Objects with that web service for Creating Sales Order ???
    Thanks & Regards
    Amit

    The SDK help file & samples give good examples on how to use the DI Server to connect to the company and create documents.
    For example, this is the help files section on connecting to the company:
    Request
    <?xml version="1.0" encoding="UTF-16"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
      <env:Body>
        <dis:Login xmlns:dis="http://www.sap.com/SBO/DIS">
          <DatabaseServer>p5053655</DatabaseServer>
          <DatabaseName>SBODemo_US</DatabaseName>
          <DatabaseType>dst_MSSQL</DatabaseType>
          <DatabaseUsername>sa</DatabaseUsername>
          <DatabasePassword></DatabasePassword>
          <CompanyUsername>manager</CompanyUsername>
          <CompanyPassword>manager</CompanyPassword>
          <Language>ln_English</Language>
          <LicenseServer>ILTLVH25</LicenseServer>
        </dis:Login>
      </env:Body>
    </env:Envelope>
    Response
    <?xml version="1.0"?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
      <env:Body><dis:LoginResponse xmlns:dis="http://www.sap.com/SBO/DIS">
        <SessionID>0A0E086D-2926-ED9C-DF42-4060B4072B12</SessionID>
        </dis:LoginResponse>
      </env:Body>
    </env:Envelope>
    It also has specific examples on how to add and update documents.

  • Function module unit costing for sales order

    hello all!
    is there a way to create a unit costing for sales order using a function module? i found module K_UNITCOSTING_CREATE - has anyone used that before?
    best regards,
    matthias

    hello!
    i have no master data as basis for unit costing. instead i would like to use information from sales order conditions in unit costing.
    best regards,
    matthias

  • Any function module to retrieve all Payment Run Data

    I am looking for a RFC enabled function module which would retrieve all the data related to Payment Run.( Tables REGUH REGUP, PAYR, BKPF, BSEG)
    Any idea or pointers ?

    Hi
    U can use FM  RH_STRUC_GET to get the pernr in the evaluation path
    data : IT_RESULT_TAB     TYPE STANDARD TABLE OF SWHACTOR .
                CALL FUNCTION 'RH_STRUC_GET'
                  EXPORTING
                    ACT_OTYPE  = C_OTYPE
                    ACT_OBJID  = W_POSIT
                    ACT_WEGID  = C_WEGID (relation B002 like )
                    ACT_BEGDA  = W_BEGDA
                    ACT_ENDDA  = W_BEGDA
                   ACT_TDEPTH = 1 ( depath 1, 2, etc )
                  TABLES
                    RESULT_TAB = IT_RESULT_TAB .
    Nb : Give points if it worths

  • Function module for status of sales order

    My reuirement is as follows,
    "Using the Objnr field(vbak), read the status of the sales order using the Function Module."
    So,please send me any existing Function module name to get status of sales order using Objnr field in vbak.
    Its so urgent!
    Thanks & Regards,
    Santu.

    Hi
    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.
    Hope you understood the concept.
    Reward points if useful
    Regards
    Anji

  • Sales Order function module to retrieve the item availability values

    Hi,
      Is there any function module to retrieve the item availability schedule line values.
    Navigation:->
    Go to sales order (Change Mode) -> Schedule lines tab ->  In application toolbar you can find Item availability icon.
    When this is pressed, next screen you can find the split up of schedule line values. I am developing an ALV report and is required to retrieve the Split up of the schedule line values.
    Is there any function module to retrieve the same.
    BR/ Josh

    HI,
      I have found one function module ATP_EXPLANATION. I am not able to figure out the parameters that needs to be inputted to this function module. If anyone has used this before, could you kindly help me out.
    This function module returns the Split up for Schedule lines in the tablea 'MDVEX'.
    BR/ Josh

  • Function Module to Retrieve Characteristic Value

    Hi,
    Is there any function module to retrieve the characteristic value of a sales order item (in the item batch determination button)?
    Thanks,
    Mawi

    That wasn't it, but it gave me the one piece I was missing.
    Answer is:
    Function Module "CLAE_CLASSIFY_OBJECT"
    In CHANGE_KSSK
    M = 0
    KLA = (Class Type)
    OBJEK = (Material Number for the Material Characteristic being changed)
    OBTAB = MARA
    CLASS = (Class Name with Characteristic to be changed)
    S = 1
    S = (blank)
    AENNR = (EC Change Number or Blank)
    DATUV = (Today's Date or date for change)
    C = "X"
    In CHANGE_AUSP
    OBJEK = (Material Number for the Material Characteristic being changed)
    ATINN = (Chararacteristic to be changed)
    M = 0
    KLA = (Class Type)
    ATWRT = (New Value for Characteristic)
    C = X

  • Functional module for determining the sales tax code

    Dear all,
    Kindly help me is there any Functional module to determine the sales tax code?
    My Requirement is Based on the Country, Sales Org and Tax code Pricing should pick up automatically.
    I tried adding the same fields in the table and inserted in the access sequence and created the condition record for the same.
    Created the order but system is not able to get  the Tax code while determining the price?
    Please help ...
    Regards,
    SK

    My Requirement is Based on the Country, Sales Org and
         Tax code Pricing should pick up automatically
    but system is not able to get the Tax code while determining the price?
    Your both the above comments are contradict to each other. In the first statement, you say pricing should pick up automatically whereas, in the next statement, you say tax code is not determining.   Please indicate the requirement clearly.
    thanks
    G. Lakshmipathi

  • Retrieve deleted sales order

    Hi Everybody,
    Is there any way to find the date the sales order is deleted and who deleted it?
    Srinivasan Kannan.

    Hi Srinivas
    The following steps given will  give you all  the informatio you need.   I have tested the same here and it works.
    Regards
    Yatin Thakkar
    Re: Retrieve deleted sales order  
    Posted: Sep 10, 2009 4:00 PM    in response to: cheenu           Reply 
    Hi,
    Can you try step 1 with VA03. Dont hit enter button, just go to menu Environment ->changes.
    Regards

  • Partner Function "Vendor" missing when the sales order is replicated to ECC

    Hi Gurus,
    We are facing a problem on replication of functions partners between
    sales order of CRM and ECC.
    We have downloaded vendors (partners of table LFA1) from ECC to CRM
    following note 883162 and this replication was ok!
    We have mapped all partner functions from ECC to CRM and from  CRM to
    ECC for distribution of partners between systems.
    We must include a vendor using partner function '0000092 - Carrier' on
    our sales order, which is transferred to ECC. However, when the sales
    order is transfered to ECC, the vendor (which was included on CRM) is
    missing.
    When the sales order is created on ECC and the partner (type carrier)
    is included in,  the order arrives on CRM missing only the partner
    number, because the partner function is there.
    How to fix this problem?
    Best Regards,
    Nivea Faria

    Hi,
    See this Note : 975195
    Hope this helps.
    Best Regards
    Shiven

  • Function Module to select all entries in  ALV output

    Hi,
      I have an ALV report and Select ALL and Deselect ALL Buttons added to it .
      When the Select ALL button is pressed,all entries of the ALV report should be selected.
      When the Deselect ALL button is pressed,all entries of the ALV report should be deselected.
      Is there any function module to select all entries of the output and vice versa.
      Thanks in advance.
    Regards,
    Navas

    Hi Navas,
    I have written a part of the code you can use.
      TYPE-POOLS: slis.
      DATA : ls_event TYPE slis_alv_event.
    Set PF Status
      ls_event-name = slis_ev_pf_status_set .
      ls_event-form = slis_ev_pf_status_set .
      APPEND ls_event TO gt_event.
      CLEAR  ls_event.
    FORM pf_status_set USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'Z_STATUS'.
    ENDFORM  .                 "set_pf_status
    (no need for any perform. This will be called automatically).
    While calling the FM for ALV, pass the internal table gt_event in it_events parameter.
    Double click on Z_STATUS and add two buttons in Application Toolbar.
    1. Select All - Give function code name as &ALL,
    2. Deselect All - Give function code name as &SAL.
    Hope this helps.
    Thanks,
    Dawood.
    Edited by: Dawood.S.Ghasletwala on Apr 3, 2009 3:51 PM

Maybe you are looking for

  • Help!  Reset the password and now master account at log in is missing??????

    I really need you help on this. Today I was helping my younger cousin with his macbook. He lost his password so I put in the disk that came with it and held down C and went to Utilities/reset password and reset the main account password. I might have

  • How to make manager approve more than one request in one time in SSHR

    Dear All, Anyone has an idea on how to make manager approver more than one request in one time in SSHR?? for example, manager is having 20 requests to approve on Change Pay Function, he don't want to check one by one and approve it, he want to approv

  • NI 9237

    Please help us with to setup NI 9237 and NI 9411 with NI cDAQ-9174  to measure the load, torque and angle at the same time. We are using RJ 50 for the connection between load and torque sensors to NI 9237. For the Load cell, we wired positive and neg

  • Deactivate INDD Auto-Recovery

    I don't have any need at all for the auto-recovery feature, really. All it does is cause a delay for me (when the server goes down). I've never used it, never needed it, ever, and I wouldn't trust it to present me with every change I made anyway. I'd

  • Mac OS X Lion compatible

    What I've read, will give Adobe CS4, Adobe CS2 problems with Mac OS X Lion. It is not compatible with Lion. Can you fix it? Apple has not included this Java program. Is that the reason? What is with QuarkXPress or Office 2008?