IDoc For Sales Document

Hi All,
I have a requirement to create IDOC for sales order that should have all data related to SO document flow (History). Using output determination, I am able to create IDOC but the history is not populated in the IDOC.
I did not see any message type for SO history, Is it possible to create an IDOC for sending sales order history.
Thanks in advance/

Yes, you could create a absolutely new IDOC type for the SO history or using a custmized IDOC which only added some new field into the current IDOC type.
If the structure you need is very different with the current exist IDOC type, you can choose to create a former solution.
Import a new type IDOC, you need to do the structure defination for it, and create a process function and process code to the system which receive it and handle it.  And of course, you need to fill the IDOC and send it by yourself in ABAP code, using e.g. FM MASTER_IDOC_DISTRIBUTE.
Hope it will be helpful

Similar Messages

  • Function Module to Generate Outbound IDOC for Sales Documents

    Hello Experts,
    Can someone please help me, I need to know which function module to use in order to generate the outbound IDOC for sales documents.  Some of the fm's I have come across are the following:
    IDOC_OUTPUT_ORDERS, but actually for Purchase Orders
    IDOC_OUTPUT_ORDRSP, but did not generate any IDocs for my sample Sales Order.
    Points will be given for any help provided.
    Thanks in advance.

    Hi Nagaraj,
    I tried using the IDOC_OUTPUT_ORDERS but I keep getting an error that the Purchase Order <xxx> does not exist, even though the document I tried is a sales order.  For everyone's reference here is the code:
    form process_data.
      DATA v_idoc       TYPE edidc-docnum.
      DATA i_edidd      TYPE TABLE OF edidd.
      DATA wa_idoc_ctrl TYPE edidc.
      LOOP AT i_nast INTO wa_nast.
        CLEAR i_msgs[].
        CALL FUNCTION 'WFMC_PROTOCOL_GET'
          EXPORTING
            cps_nast        = wa_nast
          tables
            messages        = i_msgs
         EXCEPTIONS
           NOT_FOUND       = 1
           OTHERS          = 2.
        LOOP AT i_msgs INTO wa_msgs WHERE arbgb EQ 'E0'.
    *--- Check first if there is an IDOC
          IF wa_msgs-msgv1 IS INITIAL.
            CONTINUE.
          ENDIF.
          v_idoc = wa_msgs-msgv1.
          CLEAR i_edidd[].
          CLEAR wa_idoc_ctrl.
          CALL FUNCTION 'IDOC_READ_COMPLETELY'
            EXPORTING
              document_number                = v_idoc
            IMPORTING
              IDOC_CONTROL                   = wa_idoc_ctrl
    *         NUMBER_OF_DATA_RECORDS         =
    *         NUMBER_OF_STATUS_RECORDS       =
            TABLES
    *         INT_EDIDS                      =
              INT_EDIDD                      = i_edidd
            EXCEPTIONS
    *         DOCUMENT_NOT_EXIST             = 1
    *         DOCUMENT_NUMBER_INVALID        = 2
              OTHERS                         = 3.
          CALL FUNCTION 'IDOC_OUTPUT_ORDERS'
            EXPORTING
              object                              = wa_nast
              control_record_in                   = wa_idoc_ctrl
    *       IMPORTING
    *         OBJECT_TYPE                         =
    *         CONTROL_RECORD_OUT                  =
            tables
              int_edidd                           = i_edidd
    *       EXCEPTIONS
    *         ERROR_MESSAGE_RECEIVED              = 1
    *         DATA_NOT_RELEVANT_FOR_SENDING       = 2
    *         OTHERS                              = 3
          IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          COMMIT WORK.
        ENDLOOP.
      ENDLOOP.

  • Urgent: Creating ALE IDOC for SALES ORDER

    hi
    please tell me <b>step by step procedure to create ALE IDOC for SALES ORDER?</b>
    reward for sure
    regards
    ravish

    Hi,
         ALE IDOC
    Sending System(Outbound ALE Process)
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 ? Create Model View
    Tcode BD82 ? Generate partner Profiles & Create Ports
    Tcode BD64 ? Distribute the Model view
    Message Type MATMAS
    Tcode BD10 ? Send Material Data
    Tcode WE05 ? Idoc List for watching any Errors
    Receiving System(Inbound ALE )
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 ? Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 ? Idoc List for inbound status codes
    ALE IDOC Steps
    Sending System(Outbound ALE Process)
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 !V Create Model View
    Tcode BD82 !V Generate partner Profiles & Create Ports
    Tcode BD64 !V Distribute the Model view
    This is Receiving system Settings
    Receiving System(Inbound ALE )
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 !V Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 !V Idoc List for inbound status codes
    Message Type MATMAS
    Tcode BD10 !V Send Material Data
    Tcode WE05 !V Idoc List for watching any Errors
    1)a Goto Tcode SALE
    Click on Sending & Receiving Systems-->Select Logical Systems
    Here Define Logical Systems---> Click on Execute Button
    go for new entries
    1) System Name : ERP000
    Description : Sending System
    2) System Name : ERP800
    Description : Receiving System
    press Enter & Save
    it will ask Request
    if you want new request create new Request orpress continue for transfering the objects
    B) goto Tcode SALE
    Select Assign Client to Logical Systems-->Execute
    000--> Double click on this
    Give the following Information
    Client : ERP 000
    City :
    Logical System
    Currency
    Client role
    Save this Data
    Step 2) For RFC Creation
    Goto Tcode SM59-->Select R/3 Connects
    Click on Create Button
    RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
    give the information for required fields
    RFC Destination : ERP800
    Connection type: 3
    Description
    Target Host : ERP000
    System No:000
    lan : EN
    Client : 800
    User : Login User Name
    Password:
    save this & Test it & RemortLogin
    3)
    Goto Tcode BD64 -- click on Change mode button
    click on create moduleview
    short text : xxxxxxxxxxxxxx
    Technical Neme : MODEL_ALV
    save this & Press ok
    select your just created modelview Name :'MODEL_ALV'.
    goto add message type
    Model Name : MODEL_ALV
    sender : ERP000
    Receiver : ERP800
    Message type :MATMAS
    save & Press Enter
    4) Goto Tcode BD82
    Give Model View : MODEL_ALV
    Partner system : ERP800
    execute this by press F8 Button
    it will gives you sending system port No :A000000015(Like)
    5) Goto Tcode BD64
    seelct the modelview
    goto >edit>modelview-->distribute
    press ok & Press enter
    6)goto Tcode : BD10 for Material sending
    Material : mat_001
    Message Type : MATMAS
    Logical System : ERP800
    and Execute
    7)goto Tcode : BD11 for Material Receiving
    Material : mat_001
    Message Type : MATMAS
    and Execute --> 1 request idoc created for message type Matmas
    press enter
    Here Master Idoc set for Messge type MATMAS-->press Enter
    1 Communication Idoc generated for Message Type
    this is your IDOC
    Change Pointers
    I know how to change the description of a material using ALE Change Pointers.
    I will give the following few steps
    1) Tcode BD61---> check the change pointers activated check box
    save and goback.
    2) Tcode BD50---> check the MATMAS check box save and comeback.
    3) Tcode BD51---> goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.
    4) Tcode BD52---> give message type : matmas press ok button.
    select all what ever you want and delete remaining fields.
    save & come back.
    5) 5) go to Tcode MM02 select one material and try to change the description and save it
    it will effects the target systems material desciption will also changes
    6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute
    give Message type : MATMAS and Executte
    ALE/IDOC Status Codes/Messages
    01 Error --> Idoc Added
    30 Error --> Idoc ready for dispatch(ALE Service)
    then goto SE38 --> Execute the Program RBDMIDOC
    29 Error --> ALE Service Layer
    then goto SE38 --> Execute the Program RSEOUT00
    03 Error --> Data Passed to Port ok
    then goto SE38 --> Execute the Program RBDMOIND
    12 Error --> Dispatch ok
    Inbound Status Codes
    50 Error --> It will go for ALE Service Layer
    56 Error --> Idoc with Errors added
    51 Error --> Application Document not posted
    65 Error --> Error in ALE Service Layer
    for 51 or 56 Errors do the following steps
    goto WE19 > give the IDOC Number and Execute>
    Press on Inbound function Module
    for 65 Error --> goto SE38 --> Execute the Program RBDAPP01 then your getting 51 Error
    Regards

  • Post order processing for sales document is not yet complete

    hi,
    sap gurus,
    i am facing the error while saving the sales order and this ticket is unique and it is saying that
    "post order processing for sales document is not yet complete".
    please help me in this regard.
    and it is blocking the order for further processing.
    regards,
    balajit

    I dont think this is a standard error message.  Some exit is applied for sale order to meet some requirements.  You need to check with your ABAPer.
    In fact, you can conclude yourself based on the error message number.  If it starts with Z, then the above holds good.
    thanks
    G. Lakshmipathi

  • What is the need of creating partner functions for sales document type.

    Hi SAP (SD-GURUS),
    Actually we create partner functions  before creating customer ex: sold to party, ship to party, bill to party, and payer.
    These partner functions are going to be copied into sales order while processing sales order.
    Again what is the need of creating partner functions for sales document type.
    Thanks&Regards
    sreenivas peruru

    There are some Partners you could enter at Sales ORder Level. E.g. Sales Person, Employee Responsible, Forwarding Agent, Broker, etc.
    Thus these partner Determination need to be carried out at Sales Order Level & not at Customer Master level.
    So we have to configure partner Determination for various levels e.g. Customer Master, Sales Order, Delivery level etc...
    Hope this helps...
    THanks,
    Jignesh Mehta

  • Insufficient authorization for sales document

    Insufficient authorization for sales document
    We are getting an error message as insufficient authorization in spite Sales Order fully approved. We are using Credit Card Processing without clearing house as payment process on sales order processing. Sales Order is process correctly with credit card pre-authorization.
    Creating delivery and billing document is giving an error as Insufficient authorization.
    We have completed configuration related to payment card. Also Maintain Clearing House...
    Chart of Accounts              ***
    Payment card receivables       ####        CASH CLR-CREDIT CARD
    Clearing account               ####        CASH - PNC
    Authorization                            CCARD_AUTH_SIMULATION
    Initialization Authorization SET
    Result Authorization (SET)               SD_CCARD_AUTH_CALL_RFC
    RFC destinations of functions
    Settlement                               CCARD_SETTLEMENT_SIMULATION
    RFC destination of functions
    Settlement answer                        CCARD_SETTLEMENT_RSP_EXECUTE
    Thanks
    PP

    Yadav,
    The new documents are working fine. The documents already created when try to release billing to accounting getting
    message..Insufficient authorization for sales document 90000055
    Message no. V/032
    Procedure
    Check the authorization amounts in the payment card plan and repeat authorization. Or reauthorize at a later time.
    Thanks
    PP

  • Output Determination for Sales Documents distributed by fax/email

    Hi Experts,
    Can some one guide me regarding what all need to be done to maintain output determination for Sales documents to be distributed by fax/email.
    Thanks in advance...
    Regards
    Vamsi

    Hi Vamsi,
    Please go through this link it will help you about Output process in SAP R/3 for sales documents and billing documents.
    http://help.sap.com/saphelp_47x200/helpdata/en/93/745017546011d1a7020000e829fd11/frameset.htm
    I hope it will help you,
    Regards,
    Murali.

  • Error during material determination for sales document item - RRB

    Hi
    Iam getting following error when trying to create a billing request using DP91.
    Error during material determination for sales document item 40001560/000010
    Message no. AD01155
    Diagnosis
    An error occured during material determination for a dynamic item.
    System Response
    The system cannot perform the function.
    Procedure
    Check in the profile being used whether its characteristic allows the assignment of a material to each dynamic item.
    I have checked my DIP profile using ODP02 there are no errors in it, I have created a Setid and assigned it to costing element in selection criteria and material determination criteria.
    Material origin is checked in costing tab in material master.
    Appreciate help in resolving this.
    thanks,
    Vaishnavi

    Hi Vaishnavi
    The error which you are getting is related to costing.So kindly reach your FI Consultant
    please check the following links which may help you.Also check the link that has been provided my Lakshmipathi
    ERROR AT DP90  TRANSACTION
    Regards
    Srinath

  • IDOC for Accounting documents

    HI All,
    Can you help me on this issue?
    I have one requirement after create billing documents and Accounting documents ,system should create IDOC for those documents to  transfer  to other system.
    So can you guide me how can be this configuration
    Ishikesh

    Hello,
    You check the possibility of an alternative of this. I believe your requirement is to send the accounting information to a third party system for further processing.
    Get the mapping details of the third party system and decide the IDOC type and IDOC segments. Get the help of a technical person, he will guide you propoerly.
    Regards,
    SAM

  • Output programme form e-mail medium for sales document header

    what is standard  programme we have to assign for output condition (BA00 )for medium e-mail for sales document header.

    Hi Friend,
    Plaese try with RSNASTSO it can be helpful.
    Regards
    Krishnendu

  • Add fields in Locator result  for Sales Document in GUI (anyone?)

    Dear all,
    I try to find information on how we can customize the locator's result column (especially for Sales document)
    in GUI mode. I know we can Change Layout to choose other available field column to be displayed in the
    locator result. How to add more fields so we can have more fields to choose when we change the layout?
    I searched the SDN CRM forum but no exact answer for this (missed it?)
    In fact, there is a bug on the locator search result when I set field Employee Responsible to be displayed
    on the search result, the system is showing other Partner number instead.
    If you have experienced in add fields on the Change Layout, please kindly share it.
    Appreciate your help (with points)
    Cheers,
    Gun.

    It is GENIL BOL concept and now using WebUI Search.

  • Archiving for Sales Documents

    Hi All,
    I have setup archiving for sales document printout. Did uat in test system no issue but when move to live system, the output type could not be issued. I have set Print and Archive for the output type. The error as below when i view the sales document output. I have setup a ARCH device type in SPAD. But it is still not working. Any idea what config is missing?
    Unknown archiving device
    Message no. PT 040
    Diagnosis
    In archive customizing, you can assign an archive device to an archive. Otherwise, the value from the profile parameter 'rspo/default_archiver' is used, or the default value 'ARCH'. However, none of these devices exist.
    Procedure
    Maintain an appropriate device in Transaction SPAD.
    Thanks
    Dyl

    Hi,
    See whether this link helps in tackiling the issue.
    ftp://ftp.software.ibm.com/software/dw/dm/db2/0308kammerer/CommonstoreSAPArchive.pdf
    Regards,
    Saju.S

  • Number range for sales document type

    Hi,
    I am having 1 client under that 5 company codes, ade according to that 5 plants & 5 sales organization.
    so for one comapany code including all there are 15 sales document types same for other also
    my question is
    How can I assign number range for all that?
    If i am going to maintain seperate document type it goes to 75
    which userexit will help me out for this?
    without userexit what is the otherway?
    regards,
    Rahul

    Not only at order level, you will have to use exits at delivery and billing document level also.
    For sales documents:
    Exit USEREXIT_NUMBER_RANGE in MV45AFZZ
    For delivery documents:
    Exit USEREXIT_NUMBER_RANGE in MV50AFZ1
    For billing documents:
    Exit USEREXIT_NUMBER_RANGE in RV60AFZZ
    You need to give tables for maintaining numbers for sales, delivery and billing documents. In the exit a select query can be written to fetch the data based on the parameters like sale orgainzation, company code etc.
    Regards,
    GSL.

  • Partner determination for sales document item

    Hi people
    We have a partner function in sales order (carrier) that must be determinate by item, this is necessary because we sell different materias in the same order that can't be transported by the same carrier.
    In customizing Partner Determination for Sales Document Header is possible to use an user exit assign the origin X, Y or Z, in this case I would use the exit EXIT_SAPLV09A_003, but for partner determination for sales document item i didn't find a way to assign the origin X, Y and Z
    Does anyone have an idea for solving this?
    Thanks
    Emerson

    Whatever Partner functions are assigned to the Procedure  assigned to the Sales document Type, only those partner functions will feature in the Sales document header.
    In the procedure assigned to the Item category you will find like that 3 only only as in the Sales order you can not have different Sold-to-party for different Item.
    Whichever Sold-to-party is there in the header that is applicable to all item. So at item  level Procedure
    sold-to-party partner function is not required to assign.
    Sold-to-party is unique for a Sales order and can not be changed.
    But at Item level, you can have different Ship-to-party for different items so the partner function has to be there and to deliver the item one SH is mandatory, that is why it has been marked mandatory in the Procedure.
    All the partner function assigned to the Procedure at header level will be copied to all item. In your procedure for the header you must be having 5 partner functions.
    You can change the SH at item level for few items.

  • External number range for Sales Document

    hi,
        I have a requirement to generate external number range for sales document. I tried this user exit (MV45AFZZ) to generate external number.
    FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.
    Endform.
    between these form and enform i written my logic and passing to US_RANGE_INTERN. But can one suggest where to write to generate external number range.
    Can any one help me out.
    Thanks and regards,
    Vijay.

    Hi
    Here you can assign a different number range for your sales order.
    The number range is linked to the order type (field VBAK-AUART), this link is done in customizing.
    It usually uses this routine if it can't assign the range in customzing because (for example) for different sales area it need have different number ranges for the same order type.
    So you should create an external range by trx SNRO and then assign the number before entering in the main screen of va01 or saving the document.
    When you need to assign the number depends on how you want to manage your range.
    If you assign the number in entering you has to make sure to not assign the same number document to severals order to be created in the same time by several useers.
    Max

Maybe you are looking for

  • Connecting direct to serial port

    Hi to all!! I need to connect flash direct to serial port to send and receive data. I know that i have to look for some API, but all that i fund is some other software to do the interface, but i realy need is distribut only the flash and not the flas

  • Importing a CSV file into AD 2012r2

    Hi Guys Just wondering if anyone can help, I am a newbie on scripting and finding it really difficult to understand how to import a csv file into AD I have created the CSV file with the following headers, see below but I am unable to write a powershe

  • All line items on a Cost Center Are archived, do not see in custom reports - error No actual line items were selected

    Hello, experts ! Please advise, I have a cost center, on witch I know there are bookings, 1. I do KSB1, have message "No actual line items were selected" 2. I select - extras - data source - archive in this way I can see my items. ok. maybe all booki

  • Lower Internal Links Bar

    I've seen where a site has links to internal pages listed at the bottom of the page. Where could I find some directions for inserting this?

  • Order of Pictures

    Some of my pics are of apartments I show for a living,several thousand of them but while I have them in perfect order on my macbook ie numerical by address this does not transfer accurately to my iphone. I have tried everything I can think of, changi