Find status of a sales order created using EDI IDOC

Hello everyone,
   I have IDOC created for incoming sales order using FM 'IDOC_INPUT_ORDERS'.
When a sales order is created manually iva VA01, it prevents the order from being saved when a specific error is hit unless user resolved it first.   However, when the order is created via EDI IDOC, the error is hit and it cannot be created.  In the sapmv45a program, i will to say that if it is an EDI IDoc transacion for the order, let it bypass the error and create the order.  
     Can anyone pls tell me how to check the status of a sales order being created using EDI IDOC ?
Sy-batch does not work.
Thank you in advance.
Joyce

Joyce,
If you pay attention the code in FM it is exporting value of da_edi_sign to memory id "SD_EDI_ACTIVE" stored in constant "da_memory_id". ('CONSTANTS: da_memory_id(13) VALUE 'SD_EDI_ACTIVE'.)
In your program you have two you have two options.
1. Declare a constant as in the FM and use that as mentioned below:  
CONSTANTS: da_memory_id(13) VALUE 'SD_EDI_ACTIVE'.
IMPORT v_memid FROM MEMORY ID da_memory_id.
2. Hardcode memory id as below:
IMPORT v_memid FROM MEMORY ID 'SD_EDI_ACTIVE'.
Hope this resolves your problem.
Gajendra

Similar Messages

  • Problem in Sales order create using BAPI with reference to quotation

    Hi,
    I am creating a sales order from Quotation using BAPI /AFS/BAPI_SALESORD_CREATEFDATA.
    The Sale order is getting created and the document flow is updated. When i check the status of quotation it is "OPEN".
    Ideally when a sale order is created in VA01 with reference to a quotation and if all items are added in the order from quotation, then the status of the quotation must be "Complete".
    When i use the BAPI, the status of the quotation is sill "Open". Has anyone faced this issue?
    Even if anyone has faced this issue with BAPI_SALESORDER_CREATEFROMDAT2, please let me know...
    Regards

    Hi RV,
    I am using BAPI  to create order reference to contracts. I am facing same issue. Its not updating document flow (vbfa-plmin field). After creating orders I am forcing to update plmin field in vbfa. This worked fine. But now status in reference document not updating properly. I saw your thread. It looks like similar issue. I saw your comments "Customization was not maintained properly for the Order types ". Please can you explain little bit more about your solution. It will helps us lot.
    Thanks,
    srini

  • NO MATERIALs in the Sales order created through inbound idoc file

    hi,
    i have maintained the customer material number as well the SAP Material number in the tcode VD51,but still the inbound
    idoc type ORDERS03 is posting the application document(Sales order) without the materials.
    for instance,
    I have cust.material as CUSTMAT1 in the idoc file.
    I have maintained the CUSTMAT1 as cust material and 1001 as material no in VD51.
    After posting the inbound idoc file using RSEINB00 prg,the idoc is created and i can see the CUSTMAT1 in the material segment field
    The Sales order is created successfully ,but without the materials.
    i need the application document has to be posted with materialsm,can any one help me to solve this issue.?
    Thanks

    Hi ganesh ram
    In order to determine the Material Number with you custom material then you needs to have some configurations.
    Check with your Functional consultant to add the Access sequence for determining the Material Number with you custom material
    In Sale order processes...
    Thanks
    Ramesh

  • Sales Order Creation using LSMW IDOC method.. ( Custome Interface)

    Hi ABAP'rs,
                     Please provide me LSMW steps for creating Sales Order using IDOC method.
                            Thanks and Regards,
                                                  Param.

    LSMW-IDOC in General
    LSMW – Step by Step Guide: Legacy System Migration Workbench is an R/3 Based tool for data transfer from legacy to R/3 for one time or periodic transfer.
    Basic technique is Import data from Spreadsheet / Sequential file, convert from source format to target format and import into R/3 database. LSMW not part of standard R/3, if we need this product email [email protected]
    Advantages of LSMW:
    • Most of the functions are within R/3, hence platform independence.
    • Quality and data consistency due to standard import techniques.
    • Data mapping and conversion rules are reusable across projects.
    • A variety of technical possibilities of data conversion.
    • Generation of the conversion program on the basis of defined rules
    • Interface for data in spreadsheet format.
    • Creation of data migration objects on the basis of recorded transactions.
    • Charge-free for SAP customers and partners.
    Working With LSMW:
    Use TCODE LSMW
    Objects of LSMW:
    •Project – ID with max of 10 char to Name the data transfer project.
    • Subproject – Used as further structuring attribute.
    • Object – ID with max of 10 Characters, to name the Business object .
    • Project can have multiple sub projects and subprojects can have multiple objects.
    • Project documentation displays any documentation maintained for individual pop ups and processing steps
    User Guide: Clicking on Enter leads to interactive user guide which displays the Project name, sub project name and object to be created.
    Object type and import techniques:
    • Standard Batch / Direct input.
    • Batch Input Recording
       o If no standard programs available
       o To reduce number of target fields.
       o Only for fixed screen sequence.
    • BAPI
    • IDOC
    o Settings and preparations needed for each project 
    Preparations for IDOC inbound processing:
    • Choose settings -> IDOC inbound processing in LSMW
    • Set up File port for file transfer, create port using WE21.
    • Additionally set up RFC port for submitting data packages directly to function module IDoc_Inbound_Asynchronous, without creating a file during data conversion.
    • Setup partner type (SAP recommended ‘US’) using WE44.
    • Maintain partner number using WE20.
    • Activate IDOC inbound processing.
    • Verify workflow customizing.
    Steps in creating LSMW Project:
    • Maintain attributes – choose the import method.
    • Maintain source structure/s with or without hierarchical relations. (Header, Detail)
    • Maintain source fields for the source structures. Possible field types – C,N,X, date, amount and packed filed with decimal places.
    • Fields can be maintained individually or in table form or copy from other sources using upload from a text file
    • Maintain relationship between source and target structures.
    • Maintain Field mapping and conversion rules
    • For each Target field the following information is displayed:
    o Field description
    o Assigned source fields (if any)
    o Rule type (fixed value, translation etc.)
    o Coding.
    o Some fields are preset by the system & are marked with Default setting.
    • Maintain Fixed values, translations, user defined routines – Here reusable rules can be processed like assigning fixed values, translation definition etc.
    • Specify Files
    o Legacy data location on PC / application server
    o File for read data ( extension .lsm.read)
    o File for converted data (extension .lsm.conv)
    • Assign Files – to defined source structures
    • Read data – Can process all the data or part of data by specifying from / to transaction numbers.
    • Display read data – To verify the input data being read 
    Convert Data – Data conversion happens here, if data conversion program is not up to date, it gets regenerated automatically.
    • Display converted data – To verify the converted data
    Import Data – Based on the object type selected
    • Standard Batch input or Recording
    o Generate Batch input session
    o Run Batch input session
    • Standard Direct input session
    o Direct input program or direct input transaction is called
    BAPI / IDOC Technique:
    • IDOC creation
    o Information packages from the converted data are stored on R/3 Database.
    o system assigns a number to every IDOC.
    o The file of converted data is deleted.
    • IDOC processing
    o IDOCS created are posted to the corresponding application program.
    o Application program checks data and posts in the application database.
    Finally Transport LSMW Projects:
    • R/3 Transport system
    o Extras ->Create change request
    o Change request can be exported/imported using CTS
    • Export Project
    o Select / Deselect part / entire project & export to another R/3 system
    • Import Project
    o Exported mapping / rules can be imported through PC file
    o Existing Project data gets overwritten
    o Prevent overwriting by using
    ‘Import under different name
    • Presetting for Inbound IDOC processing not transportable.
    Reward if useful.
    regards
    santhosh reddy

  • Sales Order Upload using IDOC : Batch Input error

    Hi all
    When I am uploading sales order data using <b>idoc</b> method it was giving the below error when  the Items are more than 10,if the items are less than 10 it was creating the sales order successfully.
    <b>Screen 0000 is too large for internal batch input area</b>
    for upload I am using the standard Meassege type and Basic idoc type
    Message type : ORDERS
    Basic idoc type : ORDERS05
    Function Module : idoc_input_orders(ORDE)
    Please help if there is any Idea
    Thanks in Advance
    Warm regards
    Rajasekhar

    Hi Madhu,
    This error might be due to screen resolution. Try to reduce screen resolution and run your program.
    Cheers
    Manohar

  • Getting Error while creating multiple Orders using Sales order Create BAPI

    Hi,
    I am trying to create 2 orders thru the Sales order create BAPI before I commit and save the orders. The Orders are getting created and the BAPI is coming back with success, but it is not setting the system status on the line items of the 1st order. So when I try to cancel the line items on the first order I get the error 'No status object is available for SDI 4924/10' . I would really appreciate if anyone has encountered such error before and could help me out with the reason for this error and the possible solution.
    Thanks in advance,
    David.

    Hi,
    Check the following link:
    http://www.sap-img.com/bapi.htm
    Regards,
    Bhaskar

  • Need code for sales order create report using bapi's

    need code for sales order create report using bapi's

    Hi,
    Go through below link
    http://www.saptechies.com/bapi_salesorder_createfromdat2/
    <b>Reward points if it helps,</b>
    Satish

  • Sales order creating by using bapi

    Hi,
    I am creating sales order by using bapi BAPI_SALESORDER_CREATEFROMDAT2
    for that i am run this bapy, that asking standard data, plz anybody can help me
    send the data as
    doc_type
    sales_org
    Distribution chanel
    Division
    sold to party
    Thanks
    Fazil

    Hi
    Refer link below
    Sales Order Creation Through BAPI

  • Need to create the sales order by using FM; crm_order_maintain

    Dear Expert's.
    can any body help me on creation of sales order by using FM; crm_order_maintain.
    Regards,
    Tanveer.Ahmed

    data: et_status type crmt_status_comt,
          es_status type crmt_status_com,
          ct_orderadm_h type  crmt_orderadm_h_comt,
          cs_orderadm_h type  crmt_orderadm_h_com,
          ct_orderadm_i type  crmt_orderadm_i_comt,
          cs_orderadm_i type  crmt_orderadm_i_com,
          ct_input_fields type crmt_input_field_tab,
          cs_input_fields type crmt_input_field,
          it_exception type  crmt_exception_t.
    data: gt_crmd_orderadm_h like crmd_orderadm_h occurs 0,
          gs_crmd_orderadm_h type crmd_orderadm_h.
    data: et_objects_to_save type crmt_object_guid_tab,
          es_objects_to_save type crmt_object_guid.
    data: it_saved_objects type crmt_return_objects.
    data: gt_field_names type crmt_input_field_names_tab,
          gs_field_names type crmt_input_field_names.
    data: cv_log_handle type  balloghndl.
    select single * from crmd_orderadm_h into gs_crmd_orderadm_h
    where object_id = '0005000400'.
    es_objects_to_save  = gs_crmd_orderadm_h-guid.
    append es_objects_to_save  to et_objects_to_save .
    es_status-ref_guid       = gs_crmd_orderadm_h-guid.
    es_status-ref_kind       = 'A'.
    es_status-status         = 'E0010'.
    es_status-user_stat_proc = 'ZPR01'.
    es_status-activate       = 'X'.
    append es_status to et_status.
    cs_input_fields-ref_guid    = gs_crmd_orderadm_h-guid.
    cs_input_fields-ref_kind    = 'A'.
    cs_input_fields-objectname  = 'STATUS'.
    cs_input_fields-logical_key = 'E0010ZPRO1'.
    gs_field_names-fieldname = 'ACTIVATE'.
    append gs_field_names to gt_field_names.
    cs_input_fields-field_names = gt_field_names[].
    append cs_input_fields to ct_input_fields.
    call function 'CRM_ORDER_MAINTAIN'
      exporting
        it_status         = et_status
      importing
        et_exception      = it_exception
      changing
        ct_orderadm_h     = ct_orderadm_h
        ct_orderadm_i     = ct_orderadm_i
        ct_input_fields   = ct_input_fields
      exceptions
        error_occurred    = 1
        document_locked   = 2
        no_change_allowed = 3
        no_authority      = 4
        others            = 5.
    if sy-subrc = 0.
          call function 'CRM_ORDER_SAVE'
            exporting
              it_objects_to_save        = et_objects_to_save
           importing
             et_saved_objects           = it_saved_objects
           changing
             cv_log_handle              = cv_log_handle
           exceptions
             document_not_saved         = 1
             others                     = 2.
             commit work.
    endif.

  • Create Sales Order Iview Using WD for Java

    Dear Friends,
    I have been assigned some task that is "<b>Create Sales order iview using web dynpro for java".</b>
    I am new in this field, please help me out that from where i should start working on this.
    please forward me some documents in this regrads.
    Thanks & regards,
    Iqbal Ahmd

    Hi Iqbal,
    If you are connecting to SAP system as  backend  then you can proceed creating a webdynpro application using the Adaptive RFC model from where you can call your BAPI's this webdynpro applications can be integrated on to the Enterprise Portal using the webdynpro iviews.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/creating%20a%20web%20dynpro%20application%20accessing%20abap%20functions.pdf
    Go through the following links and tutorials
    http://help.sap.com/saphelp_nw04/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/content.htm
    Tutorials & Samples for Web Dynpro Java [original link is broken]
    Hope it helps you
    regards
    ambicasony

  • Function module which uses both BAPI's for sales order create and change

    Please name the function module which uses both BAPI's for sales order create and change.
    BAPI_SALESORDER_CREATEFORMDAT2
    BAPI_SALESORDERCHANGE

    Yup.
    you must write a piece of code for this.
    with if else condition.first check if SO is exsist than use second FM to change it else create new SO from first FM.
    logic somethig like this.
    Amit.

  • Monitoring of Sales Order created during specified timeframe using BPMon

    Hi,
    There is a requirement from our customer to setup Monitoring Object for Sales Order in Business Process Monitoring:
    The details are as follows:
    Monitoring object should be able to fetch all the Sales Order created between a specified timeframe: (say 12:00:00 to 15:00:00) and give alert if the threshold is crossed.
    Say for eg: the Monitoring object should gather information of all the Sales orders created between the said time frame and give an alert. So the information of Sales Orders out of time frame is not required by the client. I could see that the standard monitoring object for (Sales Documents and Sales Document Items gives an option to select data from previous day or current day... but this is for the entire day whereas our requirement is for a said time frame.
    Is this feature available with standard monitoring object ?? Experts please advise.
    Thanks and Regards,
    Kavita

    Hi,
    There is a requirement from our customer to setup Monitoring Object for Sales Order in Business Process Monitoring:
    The details are as follows:
    Monitoring object should be able to fetch all the Sales Order created between a specified timeframe: (say 12:00:00 to 15:00:00) and give alert if the threshold is crossed.
    Say for eg: the Monitoring object should gather information of all the Sales orders created between the said time frame and give an alert. So the information of Sales Orders out of time frame is not required by the client. I could see that the standard monitoring object for (Sales Documents and Sales Document Items gives an option to select data from previous day or current day... but this is for the entire day whereas our requirement is for a said time frame.
    Is this feature available with standard monitoring object ?? Experts please advise.
    Thanks and Regards,
    Kavita

  • User status transfer for sales orders from ECC to CRM

    Hi,
    We use business process with CRM sales orders that are transfer to ERP.
    Users can change user status in the sales orders in ERP.
    How we can replicate custom user status from ECC Sales Order to CRM Sales Order?
    What is the steps to do this for CRM 7.0?
    Denis

    Hi,
    We are creating quotation ZPQT in CRM which is then get replicated to ECC on saving it on “Accepted” status. In ECC we then create sales order of type ZPOR. Sales order gets replicated in CRM and also updates document flow. This sales order is called as “Project Sales Order”. PS team assigns WBS element to this order and does billing later on. Upon billing document is created sales order status in ECC changes to “Completed”. This is system status. But the issue is status of order ZPOR is CRM remains in status “Inprocess”. We want it to change to “Completed”.
    We have similar scenario with order type ZOR. In this order after delivery and billing ECC assigns status “Completed” to sale order and same gets replicated to CRM.
    In CRM for user status Completed we have assigned system status as FINI. Both ZPOR and ZOR has same status profile assigned at header and item level.
    Our concern is if status is changing back in CRM for ZOR then why not for ZPOR. What is stopping system to do so?

  • Which Sales order created a purchase order?

    Dear Experts,
    What would be the table to look at to check which Sales order is  used to create a type of purchase order?
    I know the stock purchase order but not the sales order number that triggered an auto creation of this PO.
    Pls advise. Thanks
    regards
    M Russo

    Hello,
    Ideally purchase order is linked to sales order in cross docking and third party sales scenario.
    In both of above scenario's  sales order is linked to purchase order via purchase requistion.
    If you know the purchase order number, then you can find the respective sales order number in the account assignment tab in purchase order screen.
    You need to open the purchae order with ME23N/ME22N and go to item detail and check the account assignment tab.
    Here you will get the corresponding sales order number.
    BR/
    Tushar

  • Changing the status of the sales order item based on reason for rejection

    Hi All,
    When a Sales order item is rejected then the status at the item level is changed as 'TECO'.When the reason for rejection is removed the status 'Teco' is reset.This status change can be achieved using the user exit 'MV45AFZZ'.But the exit does not allow re-atp calculation whenver a blocked item is release.I have use the exit 'MV45AFZB' ,through this the status change as well as re-atp calculation takes place.But the status changed(Based on reason of rejection) does not appear in the same screen.The change gets reflected only when the sakes order is saved and i open it again.
    I want the status change to appear in the same screen.I am doing my code in the form 'userexit_check_vbap' of the exit 'MV45AFZB'. Please let me know if there are any user exits or BADI's available for the same(Changing the status of the sales order item based on reason for rejection ).
    Regards,
    S.Subasree

    Hi subburamaiah
    If you want the report you can create a separate SIS report . In that take the input field  as a Reason for rejection.. and ask for the output the list of sales orders .Now when you check this user defined report you will give the reason for rejection and check what all orders got rejected on that reason for rejection.
    Regards
    Srinath

Maybe you are looking for

  • 11.2.0.2 to 11.2.0.3

    Version: 11.2 Platform : Solaris x86 (64-Bit) I want to upgrade my 11.2.0.2.0 DB to 11.2.0.3.0. I realise that , starting from Sep 2010 release of 11.2.0.2, patchset comes in a single Installable. This is very usefuly when we do fresh Installation. B

  • Four Sales Organization for a company code

    Dear All, My client has domestic, Export, trading and Scrap  sales. They want four sales organization . As we all know it is better to have less sales organization. What would the bad impact if they have four sales organization. Edited by: budu15 on

  • How to use i cloude with out wifi

    How to use icloude with out wifi. I never backed my contacts up in iclode, and now my wifi does not work.

  • Flash on Win CE 6.0

    I did some web searching, but found nothing in recent history regarding the use of Flash or Flash Lite in Win CE 6.0. I have an application that will require between 50 and 100 embedded devices and I would like to have Flash be the user interface. Pl

  • DataConnection: Webservice returning array

    Hello, I try to get an alternative to the SOAP call working: I have a webservice that returns the content of a row in a database in an array of strings. This works fine as long as I use the SOAP call to access and execute the service. However, we run