Idoc not gettind created when saving a sales order

Hello,
In my system a sales orders has been created using ORDERS05 Idoc. We wanted a confirmation Idoc to be created automatically by this sales order but it didn't. The output type for EDI processing is in yellow for this sales order. I checked 'Dispatch time' in further data and it was 'Send immediately'.
When I click on save again on the 'output types' screen I get an update error in my inbox saying that "AM 117: Form of address key & is not defined".
Can anyone tell me where I am going wrong?
Kind Regards,
Priyanka Gupta.

Hi,
Try this.
In some cases, even after setting the trigger immediately in the partner profile, the idoc status will be in yellow color. For this add the below code and trigger it.
CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
      EXPORTING
        master_idoc_control            = wa_ctrl
      TABLES
        communication_idoc_control     = i_comm
        master_idoc_data               = i_edidd
      EXCEPTIONS
        error_in_idoc_control          = 1
        error_writing_idoc_status      = 2
        error_in_idoc_data             = 3
        sending_logical_system_unknown = 4
        OTHERS                         = 5.
    IF sy-subrc EQ 0.
      READ TABLE i_comm INTO wa_comm INDEX 1.
*Unlock table created by master data
      CALL FUNCTION 'EDI_DOCUMENT_DEQUEUE_LATER'
        EXPORTING
          docnum = wa_comm-docnum
        EXCEPTIONS
          OTHERS = 1.
      REFRESH it_idoc_range.
      lwa_idoc_range-sign   = 'I'.
      lwa_idoc_range-option = 'EQ'.
      lwa_idoc_range-low    =  wa_comm-docnum.
      APPEND lwa_idoc_range TO it_idoc_range.
Send the idoc
      CALL FUNCTION 'ISU_EDATEX_IDOC_SEND' IN BACKGROUND TASK
        EXPORTING
          xt_idoc = it_idoc_range.
      GET TIME.
Ensure background task is called immediately
      CALL FUNCTION 'START_OF_BACKGROUNDTASK'
        EXPORTING
          startdate = sy-datum
          starttime = sy-uzeit.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
   ENDIF.
Regards,
Sharin.

Similar Messages

  • Ps assembly processing:WBS have not be created when saving the sales order

    In the ps assembly processing, I want to generate a network when I create a sales order.  So I did the following steps:
    1-Use the TCODE cj91 to create a standard WBS "E-000007.1".
    2-Use the TCODE cn01 to create a standard network "10000000" and assign the standard WBS "E-000007.1" to it.
    3-Use the TCODE cn08 to config the Network Parameters from Sales Order like below:
    Material number : 600000-000000-0009
    Order Type      : Z301
    Std network     : 10000000
    Class Type      : 020
    Network Profile : Z0001
    MRP Controller  : 001
    Std WBS element : E-000007.1
    4-Use the TCODE va01 to create a sales order and add an item with the material "600000-000000-0009" and save.
        When the SAP R/3 System is saving the sales order, a WBS ought to be created u2013 based on the assignment of the standard network to the standard project.But I could not found the WBS.I thought I have do all of steps and could not found the reason.
       So I need the experts give me some useful advice and reference to resolve the problem.Thank you.
    Regards
    Yoda

    Hi,
    Maintain strategy group in material master MRP tab....
    If problem still persist then check is there any credit block to that customer...if it is release it in VKM3....
    Once you release it will create automatically.
    Regards

  • Inserting Pricing condition in Sales order when saving the sales order

    Dear ABAPers,
           My customers requirement is when saving the sales order new pricing condition has to be updated in the line item.for this i am using the User Exit 'USEREXIT_SAVE_DOCUMENT_PREPARE' ( MV45AFZZ).While saving the Sales order i am calculating the Price and updating in the Pricing conditions.
    In XKOMV internal table i am appending the pricing condition.But the problem is ,it is not calculating the taxes and it is Updating in VBAK and VBAP.
    How to do this.
    Thanks & Regards,
    Ashok.

    Dear ABAPers,
    I have Solved this Problem.
    Thanks & Regards,
    Ashok.

  • Creating a Service Order automatically when saving a Sales Order

    Hello SDN,
    I'm trying to have SAP automatically create a Service Order when a Sales Order is created. To this end, I've tried implementing BADI workitem_template and have been using method before_update. I've been using BAPI BAPI_ALM_ORDER_MAINTAIN to create the service order.
    The problem is that in order for the BAPI to save the service order, the sales order needs to be fully saved and operational. Otherwise it just keeps saying 'sales order does not exist'. So the problem is that the BADI is intervening too soon in the saving process. The temporary sales order numbers have been replaced with actual ones, but the records do not show in the database just yet. I think there's a commit that still needs to be done or something.
    However, I cannot find a BADI or user exit that intervenes after the sales order is saved into the database, so this leaves me stranded.
    Any suggestions would be heartily apprechiated.
    Kind Regards,
    Niels.
    Edited by: Niels Ruelens on Feb 20, 2008 4:20 PM
    Edited by: Niels Ruelens on Feb 20, 2008 4:22 PM

    Following your suggestions, I've created an update function module and inserted it into the USEREXIT_SAVE_DOCUMENT. In this function module, I'm calling the BAPI.
    Problem with this approach is that I cannot debug, nor is he actually doing anything. Here's the code that is put in the function. Is there anything wrong with the way I call the BAPI perhaps?
      DATA:
        lt_srule     TYPE TABLE OF bapi_alm_order_srule,
        lt_bheader   TYPE TABLE OF bapi_alm_order_headers_i,
        lt_srule_up  TYPE TABLE OF bapi_alm_order_srule_up,
        lt_methods   TYPE TABLE OF bapi_alm_order_method,
        lt_return    TYPE TABLE OF bapiret2,
        ls_vbak      TYPE vbak,
        ls_vbap      TYPE vbap,
        ls_bheader   TYPE bapi_alm_order_headers_i,
    *    ls_header    TYPE cobai_s_header,
        ls_prps      TYPE prps,
        ls_srule     TYPE bapi_alm_order_srule,
        ls_srule_up  TYPE bapi_alm_order_srule_up,
        ls_methods   TYPE bapi_alm_order_method.
    *    ls_item      TYPE cobai_s_item.
      SELECT SINGLE * INTO ls_vbak
      FROM vbak
      WHERE vbeln = vbeln.
      SELECT SINGLE * INTO ls_vbap
      FROM vbap
      WHERE vbeln = vbeln.
      FREE: lt_methods, lt_bheader, lt_srule.
    * Fill methods
      CLEAR ls_methods.
      ls_methods-refnumber  = 1.
      ls_methods-objecttype = 'HEADER'.
      ls_methods-method     = 'CREATE'.
      ls_methods-objectkey  = '%00000000001'.
      APPEND ls_methods TO lt_methods.
    *  CLEAR ls_methods.
    *  ls_methods-refnumber  = 1.
    *  ls_methods-objecttype = 'SRULE'.
    *  ls_methods-method     = 'CREATE'.
    *  ls_methods-objectkey  = '%00000000001'.
    *  APPEND ls_methods TO lt_methods.
      CLEAR ls_methods.
      ls_methods-refnumber  = 1.
      ls_methods-objecttype = ''.
      ls_methods-method     = 'SAVE'.
      ls_methods-objectkey  = '%00000000001'.
      APPEND ls_methods TO lt_methods.
    * Fill header
      CLEAR ls_bheader.
      ls_bheader-orderid    = '%00000000001'.
      ls_bheader-order_type = 'ZM02'.
      ls_bheader-funct_loc  = 'FERBL_TD5C_DER'.
      ls_bheader-planplant  = 'B006'.
      ls_bheader-sales_ord  = vbeln.
      ls_bheader-s_ord_item = '00010'.
      APPEND ls_bheader TO lt_bheader.
    ** Convert the internal WBS to an external WBS element
    *  SELECT SINGLE * INTO ls_prps
    *  FROM prps
    *  WHERE pspnr = ls_vbap-ps_psp_pnr.
    **   Fill settlement rules
    *  ls_srule-objnr =   ls_item-aufnr.
    ****    ls_srule-sales_ord = caufvd_imp-kdauf_aufk.
    ****    ls_srule-s_ord_item = caufvd_imp-kdpos_aufk.
    *  ls_srule-wbs_element = ls_item-projn.
    *  ls_srule-settl_type = 'FUL'.
    *  ls_srule-percentage = 100.
    *  ls_srule-extnr = 1.
    *  APPEND ls_srule TO lt_srule.
    *  ls_srule_up-wbs_element = 'X'.
    *  ls_srule_up-sales_ord = 'X'.
    *  ls_srule_up-s_ord_item = 'X'.
    *  ls_srule_up-orderid = 'X'.
    *  ls_srule_up-settl_type = 'X'.
    *  ls_srule_up-percentage = 'X'.
    *  ls_srule_up-extnr = 'X'.
    *  APPEND ls_srule_up TO lt_srule_up.
      CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
        TABLES
          it_methods              = lt_methods
          it_header               = lt_bheader
    *          IT_HEADER_UP            =
    *          IT_HEADER_SRV           =
    *          IT_HEADER_SRV_UP        =
    *          IT_USERSTATUS           =
    *          IT_PARTNER              =
    *          IT_PARTNER_UP           =
    *          IT_OPERATION            =
    *          IT_OPERATION_UP         =
    *          IT_RELATION             =
    *          IT_RELATION_UP          =
    *          IT_COMPONENT            =
    *          IT_COMPONENT_UP         =
    *          IT_OBJECTLIST           =
    *          IT_OBJECTLIST_UP        =
    *          IT_OLIST_RELATION       =
    *          IT_TEXT                 =
    *          IT_TEXT_LINES           =
    *     it_srule                = lt_srule
    *     it_srule_up             = lt_srule_up
    *          IT_TASKLISTS            =
    *          EXTENSION_IN            =
             return                  = lt_return.
    *          ET_NUMBERS              =.
      IF sy-subrc = 0.
      ENDIF.
    Edited by: Niels Ruelens on Feb 20, 2008 4:58 PM

  • Billing Plan Billing Block Change when saving the sales order

    Dear Gurus,
    We have SD Integrated with PS. We create the sales orders and pull the billing plans milestones from WBS.
    Once we generate the billing plans, system will propose the billing block for all the line items of the milestones which normally comes from the billing plan configuration/item category.
    Would like to know the appropriate userexit to change the Billing block to "XX" if some of the requirements are not met when we create or change the sales document.
    Below is what i am able to see but seems to be not helpfull.. please guide..
    User exits in program RV60FUS1
        BILLING_SCHEDULE_DELTA
        For milestone billing a percentage value is fully invoiced for each billing deadline. In the case of deviations between the original item value and any later changes, you can use the user exit to determine whether the difference should be stored in the final invoice or sent to the next deadline.
        USEREXIT_MOVE_FIELD_TO_FPLT
        This user exit allows you to create your own fields in table FPLT.
        USEREXIT_MOVE_FIELD_TO_FPLA
        This user exit allows you to create your own fields in table FPLA.
    Reward points for the right answers..
    Regards
    Ram

    Dear Friend,
    I hope you can make it with the above user exits.Consult your abaper and try it.
    Thank you,

  • BADI when Saving a Sales Order CRMD_ORDER

    Which all BADIs are trigrred while saving salesorder using CRMD_ORDER transaction. Basically i need to get Sales order in a variable when sales order is saved and pass it to Ztable.
    Thanks in advance.
    Kartavya

    HI,
    the best fit badi for your requirement is ORDER_SAVE.
    You can implement the method CHANGE_BEFORE_UPDATE.
    This method is specially designed for the requirement like yours...
    Kindly reward with points in case helpful...
    Sharif

  • Different message in va01: Defect in ECC6 server while saving the sales order .

    Hi ABAP gurus,
    I am in to upgrade Project In ECC6 server I am getting the different message when saving the sales order in va01 compare to  old sever(4.7) .
    I have to make it to the same message as it is in the 4.7 server.
    plz help me .
    Regards,
    vanamaala kashavena

    Hi,
    IF xvbap-uepos IS INITIAL AND
            xvbap-zzhrs_conf <> 'X'.
            MESSAGE ID 'ZOTC' TYPE 'E' NUMBER '067' WITH
            'Please select Hours Confirmed in Additional data B'(302) 'for item'(303) xvbap-posnr.
          ENDIF.
    this is the code in the  PARTICULAR INCLUDE PROGRAM .
    this is same in both the system ,but in ecc6 server,in message
    popup it is not giving 'Please select Hours Confirmed in Additional data B' .
    it is giving ORDER QTY FORMAT PERIOD (ITEM NUMBER(0010))
    Regards,
    vanamaala k

  • User exit for saving a sales order

    hi
    wats the user exit when saving a sales order?

    Hi,
    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
    tables : modsap
    tcode : cmod,smod
    Reward if usefull

  • Error getting when saving the sales document in third party sales order

    in third party sales order,when i am saving the sales order i am gettingthe following error
    subsequent function 'purchase requistion from sales document' not possible due to credit block.earlier i have maintained credit checks for some customers,but for this customer i have not maintained any credit check. i dont know why system is blocking for this customer also.pls help me where i went wrong.
    highly rewarded if help full.
    thank you

    Please go to FD32, check any default risk category and credit limit is maintained for the customer.
    Also check OB45, any default risk category & credit limit is maintained for the credit control area.
    Also, which order type u r creating sales order? for that order type, Goto VOV8, remove the credit grp and credit check settings.
    Also goto XD02, check in sales area data, billing tab, credit control area field, please remove that also.
    Hope it Helpful.
    Reward points if useful..

  • Trigger IDoc when ever a Sales Order is rejected

    Hello Experts,
    How to trigger an IDoc when ever a sales order is rejected.
    Thanks,
    Srikanth

    you have to define a message type that is triggered when the reason of rejection in not initial.
    You can do it by a standard access sequence. Then issue the message with medium 6.
    Best regards
    Roberto Mazzali

  • Print program is not getting triggered when saving the application

    Hi all,
    My requirement is when i save the invoice using VF01 the print program should get triggered.
    The print program is not getting triggered when saving the application even when i have configured the outtype and have attached the print program.
    The setting "send immediately (when saving application)" is also checked.
    I need to configure it for VF01 transaction.
    The error message displayed was " please maintain output device in master data".
    Regards,
    Umesh

    Hi Umesh
    Please check if you have missed any of the following:
    1. Defining Access Sequence(can use existing).
    2. Defining Output Condition Type(can use existing). - Assigning the Driver Program and Form in processing routine.
    3. Output Determination Procedure
    4. Assign Output Procedure to Billing Types
    Kind Regards
    Eswar

  • I am using a WD My Passport Studio external hard drive as a Time Machine. I get the error that a back up folder could not be created when my iMac has been asleep, any advice.

    I am using a WD My Passport Studio external hard drive as a Time Machine. I get the error that a back up folder could not be created when my iMac has been asleep, any advice. The hard drive is set set not to go to sleep.

    Were you not plugged in via USB to begin with?
    I would recommend performing some resets just to be on the safe side. Unplug the external HD, and try these steps:
    http://support.apple.com/kb/HT3964
    http://support.apple.com/kb/HT1379

  • Why does Illustrator not remember filepaths when saving ??

    Hi,
    I'm finding it really frustrating that Illustrator 10 (on iMac G5 OS 10.3.9) does not remember filepaths when saving.
    Perhaps I've overlooked a setting somewhere.
    Does anyone know how I can rectify so Illustrator defaults to the last used filepath (as does almost every other program on earth) ??
    I'd be very grateful for any help.
    Thanks in advance.

    Can anyone tell me why this is happening?  Am I not saving this correctly?
    Well, to what format are you saving? The native AI format should always retain layers. Other formats such as EPS or older PDF Levels may indeed enforce flattening. also make sure you are not confusing layers with groups/ objects. There's a crucial difference between the two.
    And even more important, is there any way of restoring the different layers once this has happened?
    Well, you can manually add new layers and drag&drop your objects and groups into the new layers in the layers panel, but if you save it again to the wrong file format, that is wasted effort, so for the life of it make sure you get that figured out first.
    Mylenium

  • CO-PA document is not created while doing the sale order cycle

    Dear Experts,
    I have 4 company codes in my controlling area. I did all CO-PA configuration. But CO-PA Document is generated in Only one company code. Remaining company codes CO-PA document is not created while doing the sale order cycle
    I’ve carried a standard sales cycle that contains sales order (VA01),
    and (VF04,VF02). System should generate 4
    documents as follows
    1) FI Document
    2) CO Document
    3) Profit Center Accounting Document
    4) COPA Document
    But in my case for 3 company codes only 3 documents are generated instead of CO-PA. But for one company code 4 documents are generated.
    In my case i did all settings Operation concern level and assign to controlling area. I can,t Understood why system is generating CO-PA document for Only one company
    Please suggest me where i miss the settings..
    Regards,
    Krishna.V

    Dear Ajay,
    Cost element category is 01. Because hear is one another company they have FI only all transactions they maintain through FI only. so hear we maintain Cost elements category 01.
    I think it is not a problem. because hear i got CO-PA document from one company. Remaining 3 company is not generated.
    Hear we maintained all gl's chart of acc level and cost elements also.
    Please suggest me...
    Regards,
    Krishna. v

  • Send Mail to Customer while saving the Sales Order

    Dear Friends,
    My Requirment is to send the mail to Customer automaticaly when create any Sales Order.
    While sending the mail given three points reqired.
    1.     Send the attachment of Order Conformation along with the mail.
    2.     There must be The title text as "Order Confirmation refrence of your PO <Customer PO No> <PO Date>"
    3.     There must be some body text like some terms and conditions with variables of Order data.
    Can any body help me one this step by step.
    Kindly suggest me how to do this.
    Thanks in Advance.
    D Tarun Kumar
    Moderator message : Spec dumping not allowed, duplicate post. Thread locked.
    Edited by: Vinod Kumar on Jul 12, 2011 11:30 AM

    While saving the sales order through Va01 and Va02 and email has to send

Maybe you are looking for

  • Exclamation Mark instead of Pictures

    Until last week I was using 10.4.11 and iPhoto 7.1.1 without any problems of any kind. I then had a larker hard disk built into my MBP. The Service Technician installed 10.5.1 onto the new disk by accident and sinced then i keep getting exclamation m

  • Record chat not seen as option in OS X Mavericks Messages when doing video chat

    In OS X Mountain Lion when doing a video chat using Messages one can record the video chat. (assuming you have permission by the other party (parties??)) I do not see that option in the "upgraded" OS X Mavericks. Is the lack of a record video option

  • ATI Radeon X1900XT 512 MB  for mac pro first  gen

    I am looking for a new graphics card for my first generation mac pro desktop (built 2006)  Currently has ATI Radeon X1900XT 512 MB  installed   Any suggestions on where to find one    Alternative may be to get a new machine M Ferro

  • Abandoned InterAkt customer looking for InterAkt staff

    Hi Just back from the deserted interAkt forums where I posted but no echo. It would be great if some of the staff in the discontinued InterAkt products can support me over here. Somehow,I didnt pay attention during the upgrade time to DDT,then I trie

  • Where did my post go?

    I posted a message yesterday, "Security Hole vs Configuration Issue??" and I no longer see it. The FAQ section says: I posted a message earlier, but now it is gone. What happened? Two things could have happened. The message was either moved to anothe