Function module to add record into incompletion log of creating sale order

Hi SD Experts,
Do you know any function module / class  to add record a into incompletion log procedure of creating / changing sale order process? We can do it through configuration OVA2 but I need to add more condition before adding to this table.
Thanks,
Duy

Hi,
Refer to The SDN Post : [user exit to update the incompletion log in sales order for pricing error |Re: user exit to update the incompletion log in sales order for pricing error]. 
Limitation : While creating Sales order, this works only for document type with external number range as the code required for updating XVBUV require Sales Order Number.
Regards
Vinod

Similar Messages

  • Incomplete Procedure while creating Sales Order

    I want to configure incomplete procedure for Material or Customer, if they are not extended for Sales Area of that Sale Order type.
    In short I want Sales Order number to be saved eventhough Material or Customer is not extened for Sales Area mention in VA01.
    Pl let us know, how to configure such scenario, is it possible using incomplete procedure?
    Regards,
    Sanjay

    Hi,
    Follow the SPRO menu ptah given below:
    SPRO->Logistics->Sales & Distribution->Basic Functions->Log of Incompletion.
    Here you can assign incompletion procedure for Sales order header, line items, Schedule line etc.
    tcode: OVA2
    regards,
    Siddharth.

  • How to create a custom function module with the records in SAP R/3?

    Hi All,
    How to create a custom function module with the records in SAP R/3? Using RFC Adapter I have to fetch the custom function module records.
    Regards
    Sara

    Hi
    goto se37...here u need to create a function group... then u need to create a function module. inside assign import/export parameters. assign tables/exceptions. activate the same. now write ur code within the function module
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
    Look at the below SAP HELP links, These links will show you the way to create a Function Module
    http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm

  • Which are function modules used to convert into XML format in SAP 4.6c Ver

    which are function modules used to convert into XML format in SAP 4.6c Ver

    Hi,
    check this program , I think this will help you
    TYPE-POOLS: ixml.
    TYPES: BEGIN OF xml_line,
    data(256) TYPE x,
    END OF xml_line.
    data : itab like catsdb occurs 100 with header line.
    data : file_location type STRING.
    data : file_name like sy-datum.
    data : file_create type STRING.
    file_name = sy-datum .
    file_location = 'C:\xml\'.
    concatenate file_location file_name into file_create.
    concatenate file_create '.XML' into file_create.
    DATA: l_xml_table TYPE TABLE OF xml_line,
    l_xml_size TYPE i,
    l_rc TYPE i.
    select * from catsdb into table itab.
    append itab .
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
    I_FIELD_SEPERATOR =
    I_LINE_HEADER =
    I_FILENAME =
    I_APPL_KEEP = ' '
    I_XML_DOC_NAME =
    IMPORTING
    PE_BIN_FILESIZE = l_xml_size
    TABLES
    i_tab_sap_data = itab
    CHANGING
    I_TAB_CONVERTED_DATA = l_xml_table
    EXCEPTIONS
    CONVERSION_FAILED = 1
    OTHERS = 24
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD cl_gui_frontend_services=>gui_download
    EXPORTING
    bin_filesize = l_xml_size
    filename = file_create
    filetype = 'BIN'
    CHANGING
    data_tab = l_xml_table
    EXCEPTIONS
    OTHERS = 24.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    write : 'INTERNAL TABLE DATA IS SUCCESSFULLY DOWNLOADED TO LOCATION', file_create .
    Thanks.

  • Incompl log inconsistence for sale order

    Hi!
    I had to change incompletness rule for doc_type.
    But I sill get error message about deleted condition,
    How could I recheck all existing sale order  with new rulls.
    Thank you for answer
    Andrey Garshin.

    Hi!
    Thank you for answer!
    but this report does not work.
    reconstruction step -
    1. create sale order
    2 . save  - document complete
    3. add field into incompl check in customizing (position level)
    4. open document - field is empty status complete
    5. run report SDVBUK00
    5. open document - field is empty status complete
    6. edit this field  and save (from empty to not empty and back) - incompl message and status incomlete.
    I have about 3000 orders and making step 6 manualy ....
    I need report to check all documents but SDVBUK00 have not done it.
    Andrey  Garshin.

  • Add 2 buttons Release and Reject on Sales Order CRMD_BUS2000115 application

    Hi Experts,
    My Requirement is to add 2 button 'Release' and 'Reject' for Sales Order CRMD_BUS2000115 aplicaiotn using PCUI.
    Also provide the functionality...as
    1.Click On Release will change the status of seleceted order as "Released" i.e. to remove the Billing/Dleivery Blocks...And SAVE it.
    2. For "Reject"  change status as Rejected and Save it using standard "SAVE'' button.
    Can anybody would explain how should i proceed and where i have to code ??
    Or Source code or sample code?
    Can I call BAPI_TRANSACTION_COMMIT aftre changing it ??
    Thanks in Advance,
    Arjun Pawar.

    Hi Experts,
    I have added 2 buttons 'Release' and 'Reject' for Sales Order CRMD_BUS2000115 aplication using PCUI which provides the functionality...as
    1.Click On Release will change the status of seleceted order as "Released" i.e. to remove the Billing/Dleivery Blocks...And SAVE it. 2. For "Reject" change status as Rejected and Save it using "CRM_ORDER_SAVE" api followed COMMIT work. Functionality is working fine.
    But <b>I'm getting an error / explorer error " An error has occurred in this script page" ( the Error is : 'CAT Params' is undefined ) is coming as soon as query/click on "GO", carried out after the action performed like "Release/Reject"</b> on the sales order approval screen.
    Please, can anyone give an idea @ the cause of error ?? whether it is frame error ?? or else???
    And How to resolve it???
    Thanks,
    Arjun

  • Customer material info records are not  getting displayed in Sales order

    Hi ,
    We are upgrading our client sap system  from ECC 5.0 to ECC 6.0 .We are now in the testing phase .An  issue came up  regarding customer material info records .
    When we are creating a sales order using VA01, after entering Material number and order quantity for an item  if we press the ordering party tab(before saving the sales order) the customer material info records (value in cutomer material number) are gettting displayed.But if we save the sales order we are not able to  see the customer material info records.
    kindly guide me in this issue .
    Thanks in advance .
    Nikhil

    hi nikhil,
                check the tick box in vov8 "read info record",and when you create sales order(va01),dont enter the material number enter the "customer material number" and see whether you are getting the material number.
    and also go to (va02) and check whether you are getting the CMIR details.
    pls explain me the problem in detail for my better understanding
    regards
    senya

  • Add the carrier description/name on a sales order

    On sales order in Tax tab when a carrier is selected, it´s only shown the field with carrier cod without his description/name.
    How can I add the carrier description/name on a sales order?

    Marcio,
    This should be simple.
    Save this SQL Code and attach it to the Transport Name User field /  any other field where you want the shipping name.
    SELECT T0.[TrnspName\] FROM  [dbo\].[OSHP\] T0 WHERE T0.[TrnspCode\] = $[ORDR.TrnspCode\]
    When I use $[ORDR.TrnspCode\] it refers to a field value on the form.  I am presuming this is the field you are using.  If your TrnspCode is in a different field.  From the View Menu click System Information.  This will enable you see the table and field information on the Status Bar
    Use this information instead of $[ORDR.TrnspCode\]
    Suda

  • Not using substitute material while creating sales order with function?

    hi experts.
    I use SD_SALESDOCUMENT_CREATE function to create a sales order.
    Material A has a substitute material B with substitute reason 0005.
    So if I use material A when creating sales order with SD_SALESDOCUMENT_CREATE, the order is created with material B.
    I don't want to substitute the material automatically. I want to create the sales order with material A.
    What should I do? Help me please.
    Edited by: Ji Yeob Kim on Nov 19, 2009 11:34 AM

    Hi Kim,
    I also have same requirement. Please suggest how you resolved this?
    Thanks
    bvrnreddy

  • Create Sales order and disable its records in Demand interface

    Hi All
    I have the case that i want to implement Planning and schedule module of oracle Manufacturing.
    what i need is
    1-Create sales orders
    2- Prevent this sales order
    3- import demand planed items through interface table .
    Thanks
    Abdelmohsen Amin

    Hi Abdelmohsen Amin;
    Welcome to forum. Please follow below link and see its helpful for your issue:
    [link 1|http://www.oracle.com/applications/scm/manufacturing-operations-center.html]
    [link 2|http://www.oracle.com/applications/manufacturing/process-manufacturing-master-production-scheduling-data-sheet.pdf]
    [link 3|http://www.oracle.com/applications/manufacturing/oracle-production-scheduling-data-sheet.pdf]
    [link 4|http://download.oracle.com/docs/cd/A60725_05/pdf/gemmsfc.pdf]
    Please also try this search
    Regard
    Helios

  • Log for deleted sales order

    Hi Gurus,
    Problem is: Some one has deleted some sales order from the system.
    Now we need to know who has deleted the sales order, can any one tell me how to find out the log for deleted sales order.
    Thanks,
    Abhishek.

    Hi,
    Check report RVSCD100.
    Thanks,
    Raja

  • A function module to add an entry to the change log of the ODS needed

    Hi all,
    I want to add an entry to the change log table of the ODS .
    Is there a Function module available for this or a work around for this.
    Regards
    Akshay

    Hi Kiran,
    You can directly add days to the date.
    Eg:
    DATA date LIKE sy-datum.
    DATA days TYPE i.
    date = sy-datum.
    days = 100.
    date = date + days.
    WRITE date.
    Regards
    Wenceslaus

  • Function Module not extracting records when InfoPackaged is executed

    Hi,
    I'm using a Function module for extracting data. The DataSource is working fine in RSA3 with a selection criteria. But when i schedule the infopackage with the same selections in the data selection tab, Its not getting me any records into BW. In the Details Tab i get the message "Error occurred in the data selection" . I guess there is a problem with the data selection. Pasted below is the code i'm using for extraction. Can anyone please let me know if there is any issue with the code.
    Also how do we pass on the value of I_MAXSIZE into the function module, the remaining parameters get the values from BW. And can anyone please explain me the concept of the "s_counter_datapakid" and when it should be incremented and where it should be located in the code?
    Thanks,
    AM
    Auxiliary Selection criteria structure
      DATA: l_s_select TYPE srsc_s_select.
    Maximum number of lines for DB table
      STATICS: s_s_if TYPE srsc_s_if_simple,
    counter
              s_counter_datapakid LIKE sy-tabix,
    cursor
              s_cursor TYPE cursor.
    Initialization mode (first call by SAPI) or data transfer mode
    (following calls) ?
      IF i_initflag = sbiwa_c_flag_on.
    Initialization: check input parameters
                    buffer input parameters
                    prepare data selection
    Check DataSource validity
        CASE i_dsource.
          WHEN 'XXXXX'.
          WHEN OTHERS.
    this is a typical log call. Please write every error message like this
            log_write 'E'                  "message type
                      'R3'                 "message class
                      '009'                "message number
                      i_dsource   "message variable 1
                      ' '.                 "message variable 2
            RAISE error_passed_to_mess_handler.
        ENDCASE.
        APPEND LINES OF i_t_select TO s_s_if-t_select.
    Fill parameter buffer for data extraction calls
        s_s_if-requnr    = i_requnr.
        s_s_if-dsource = i_dsource.
        s_s_if-maxsize   = i_maxsize.
    Fill field list table for an optimized select statement
    (in case that there is no 1:1 relation between InfoSource fields
    and database table fields this may be far from beeing trivial)
        APPEND LINES OF i_t_fields TO s_s_if-t_fields.
      ELSE.
    Data transfer: First Call      OPEN CURSOR + FETCH
                   Following Calls FETCH only
    First data package -> OPEN CURSOR
        IF s_counter_datapakid = 0.
          g_first = 'X'.
    Fill range tables BW will only pass down simple selection criteria
    of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
          LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'BWLVS'.
            IF l_s_select-low <> '101' AND
               l_s_select-low <> '109'.
              RAISE invalid_movement_type.
            ELSE.
              MOVE-CORRESPONDING l_s_select TO r_im_bwlvs.
              APPEND r_im_bwlvs.
            ENDIF.
          ENDLOOP.
          LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'BEGDA'.
            MOVE-CORRESPONDING l_s_select TO r_im_begda.
            r_im_begda-low0(4) = l_s_select-low6(4).
            r_im_begda-low4(2) = l_s_select-low0(2).
            r_im_begda-low6(2) = l_s_select-low3(2).
            APPEND r_im_begda.
          ENDLOOP.
          LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'ENDDA'.
            MOVE-CORRESPONDING l_s_select TO r_im_endda.
            r_im_endda-low0(4) = l_s_select-low6(4).
            r_im_endda-low4(2) = l_s_select-low0(2).
            r_im_endda-low6(2) = l_s_select-low3(2).
            APPEND r_im_endda.
          ENDLOOP.
    *Select from table ltak into internal table i_ltak the following fields.
    *Condition: where bwlvs = import bwlvs & endat is >= import begda and
    <= import endda.
          READ TABLE r_im_begda INDEX 1.
          IF sy-subrc NE 0.
            RAISE blank_date_invalid.
          ELSE.
            IF r_im_begda-low IS INITIAL.
              RAISE blank_date_invalid.
            ENDIF.
          ENDIF.
          READ TABLE r_im_endda INDEX 1.
          IF sy-subrc NE 0.
            RAISE blank_date_invalid.
          ELSE.
            IF r_im_endda-low IS INITIAL.
              RAISE blank_date_invalid.
            ENDIF.
          ENDIF.
          IF NOT r_im_endda-low IS INITIAL
            AND r_im_begda-low > r_im_endda-low.
            RAISE invalid_date.
          ENDIF.
          r_endat-sign = 'I'.
          r_endat-option = 'BT'.
          r_endat-low = r_im_begda-low.
          r_endat-high = r_im_endda-low.
          APPEND r_endat.
    *-- Get data from the tables
          PERFORM get_data.
    *-- Populate the extract structure with data
          PERFORM write_data.
    *-- Fill Export able with the extracted data
          e_t_data[] = i_zbipicprd2[].
        ENDIF.                             "First data package ?
        IF g_first EQ 'X'.
          CLEAR g_first.
        ELSE.
    *-- This is important to prevent endless loop.
          RAISE no_more_data.
        ENDIF.
    s_counter_datapakid = s_counter_datapakid + 1.
      ENDIF.              "Initialization mode or data extraction ?
    ENDFUNCTION.

    The load is running successfully but its not fetching any records into BW.
    In the Status tab, Step by Step Analysis the following three steps are red:
    Does selectable data exist in the source system? (Red)
    Data selection successfully started ? (Red)
    Data selection successfully finished ? (Red)
    and the below is the Analysis
    Diagnosis
        The data request was a full update.
        o   In this case, the corresponding table in the source system does not
                contain any data.
        o   System Response
                Info IDoc received with status 8.
                Procedure
    Check the data basis in the source system.
    But i have data in R/3 and i'm able to extract it using RSA3

  • Function modules transfer  repeated records in Generic data source

    Hello Friends ,
    I have created a FM to extract the data from fields of  tables BKPF and BSEG .
    This functional module is used in the Generic data source.
    Now if I check in RSA3 for this Generic data source,
    the records are coming 10 times instead of a single time.
    Means one records at data base table is showing ten records in RSA3.
    Any help please.
    Regards,
    Amol.

    Hi Amol,
      Can you please check the Fetch statement that you are using after opening the cursor and selecting data into it. It should be in the format below.
    FETCH NEXT CURSOR S_CURSOR APPENDING CORRESPONDING FIELDS OF TABLE                                                 E_T_DATA PACKAGE SIZE S_S_IF-MAXSIZE.
    Also are you incrementing data package ID or not by using the statement  
    S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
    Regards,
    Prakash B

  • Is there any function module about same record with a time phase?

    Dear Expert,
    I am developing a program to upload time data into SAP and I was asked to delete the records which coming within 5 mintues and upload the last one into SAP.
    Is there any function module about this?
    BR Wang Yichao

    HI ajay,
    1. If i am not wrong, this infotype hrp1005,
       is maintained using PP01.
    2. One method is
       using FM RH_RELATION_MAINTAIN.
    regards,
    amit m.

Maybe you are looking for