Add ordered quantity to delivery note idoc desadv01 with user exit

Hi,
I am using the IDOC DESADV01 to output electronic delivery info when a user PGIs on a delivery note.
The problem is I need some extra data like the original order qty, this exists in field VBAP-KWMENG
So I think I would need to extend the idoc and do some kind of user exit to populate the value into the new idoc field.
Unfortunately I have no experience with this, can anybody advise if its the correct way and how to get started?
With thanks
Rob.

I apologies our system is totally different based on that I suggested.
But current I guess you have to extend idoc.
Below link is helpful for extending idoc.
Let me know if still if you face any problem.
http://www.intelligententerprise.com/channels/applications/feature/archive/kasturi.jhtml
Thanks,
Narayan

Similar Messages

  • How to read data which is not on interface of user-exit

    Hi experts,
    the data which I need is not on interface of user-exit. I can do export table to memory id and than in user-exit import that. Does this work always?
    I have seen that sometimes is possible to see data with
    (include-name)table-name. Can I always use this?
    In detail: in transaction ME51N is new tabstrip created with customer fields.I have to know the purchase order for the selected item which is filled on another tabstrip.
    Can anyone help me?
    Thanks.
    Best regards,
    Danijela

    Hi Danijela,
    To answer your question about the "(module)object" approach:
    Have you been in a user exit function and the data you need wasn't passed on to you? You can easily grab the data from the memory stack using this little trick. Let's say that you need some IDoc information that was created from the function IDOC_INPUT_DELVRY... You can get it directly from the call stack like this.
    The code was written in R/3 4.6C but should work in any SAP version.
    DATA: i_EDIDC like EDIDC,
          i_EDIDD like EDIDD occurs 0 with header line.
    CONSTANTS:
          c_EDIDD(21)  value '(SAPLV55K)IDOC_DATA[]',
          c_EDIDC(21)  value '(SAPLV55K)IDOC_CONTRL',
          c_E1ADRM1(7)      value 'E1ADRM1'
          c_SHPCON(6)  value 'SHPCON'.
    Field-symbols: <FC>, <FD> .
    clear: i_EDIDC, i_EDIDD.
    refresh: i_EDIDD.
    * Get the Control Record from memory
    assign (c_EDIDC) to <FC>.
    if SY-SUBRC = 0.
      i_EDIDC = <FC>.
      IF i_EDIDC-MESTYP = c_SHPCON.
    *   None of the partner information can be passed directly from
    *   the IDOC function, so we'll get it from memory.
    *   Get IDOC data records from memory
        assign (c_EDIDD) to <FD>.
        i_EDIDD[] = <FD>.
    *   Now you have the entire IDOC available to you without making
    *   a DB select.
        read table i_EDIDD with key SEGNAM   = c_E1ADRM1.
    *   Load new value HERE...
      ENDIF.
    ENDIF.
    I found this a long time ago on the web and used it successfully multiple times in the past.
    Hope this helps,
    Guenther

  • Create Idoc in a User Exit

    Hello everyone,
    we have a requirement where we want to create and send an idoc out through a user exit.has anyone done anything like this before?i think it is possible.if anybody has any headup on how to do it please let me know.ok yea i know the function module which is to be used.its idoc_output_inotif.there is a tcode INOT which sends the idoc out but OSS says we cant use it 4.6c onwards and thats the reason this need of creating an idoc in user exit arises.
    i have tried executing the FM independantly and punching in a few values and i saw that it created an idoc in the system.so my guess is, if i can call this FM in one of the user exits for the transaction IW51/52, and pass all the needed values i should get an idoc.
    if anyone has manually created an idoc in a user exit please suggest me some options.
    thanks a lot.

    Hi Sanket ,
    Distribution Model is required when you use message control to send IDOCS . Since you are triggering your IDOC in a uaer exit , a distribution model is not required . Simple create a partner profile in WE20 and assign your message type in outbound parameter. You need not fill the message control parameters in WE20.
    ( If you use message control , the process code links the respective FM like  idoc_output_inotif in your case ).
    But in your case you will have to trigger your IDOC in user exit . You have two options here -
    First Try -  idoc_output_inotif in the user exit to fill the segments , then use  FM MASTER_IDOC_DISTRIBUTE to trigger the send process.
    If this  does not work then use
    L_IDOC_HEADER_CREATE -Once
    L_IDOC_SEGMENT_CREATE ( Once for each segment ).
    ( This will create IDOC on data base )
    L_IDOC_SEND - Once to trigger the IDOC created above.
    Hope this helps .
    Cheers

  • OBIEE 11g, can not signin analytics with user admin "Weblogic"?

    Hi all,
    I have a problem as i can not signin analytic with user Weblogic, with error "An error occurred during authentication. Try again later or contact your system administrator".
    then, i create one user other, with admin privilege and sign in ok, same with all other user.
    Before i get this problem, i have create one user --> add to a role --> grant permission of some analytic on weblogic folder to this user.
    plz tell me what the reason of this problem.
    Thanks so much.

    From Srini's update i see its a bug, but can you give it a try with the below options and also let us know the OBIEE Version?
    try to shutdown everything admin,managed and opmn services and then restart everything once everything is up now deploy the old rpd and see if it helps
    paste the log files from admin and nqserver.log

  • How to add Order quantity in outbound ASN ?

    Hello Experts,
    I need to send the order quantity along with the delivery quantity in the outbound ASN. What is the procedure and which field do I need to include for order quantity ?
    Thanks in advance

    Hi Darshak,
    The screenshot shared by me is just an example from the SAP standard IDoc DESADV (DELVRY02) you can modify this and create custom type based on your requirement. I think in your case this has been modified as basic type is saying ZDESADV  you need to talk to your technical / functional team who can help. As far as standard SAP are concern you will find the E1EDL24 segment under data record(Screenshot attached)
    ORMNG is a field where orignal order quantity gets stamped at the time of Delivery creation and you can find this field into table LIPS

  • Invoice and delivery notes - idocs..

    Hello SD experts,
    I am new to SD.
    Can any one tell me what is the invoice. I mean
    what are the table AND transaction codes I have to go and check ?
    What are delivery notes ?
    My functional consultant is telling that
    there is a consolidated invoice and there are 2 delivery notes that are being combined for this invoice. The invoice # is 6016186004
    For DN#   6073107044 there is a VICS BOL that was passed back that is = 04000000000016146 
                   6073107045 there is a VICS BOL that was passed back that is = 04000000000016023
    and he wants to know how the program selects which VICS BOL fields in IDOC.  He gave me to use IDOC #77122253 in quality system for testing.
    In this case , Idoc checking/testing...I need to go to RSNAST00 program ?
    If so then what are the I need to give
    Output application    (is it V1 or MR ?)       
    Output type    ??

    hi ..
    Please refer below..
    for invoice ,  tables: VBRK and VBRP
    AND transaction codes : VF01 to 03.
    What are delivery notes ?
    after goods issue, we need to issues delivery note to customer.
    In this case , Idoc checking/testing...I need to go to RSNAST00 program ?
    you need to go to VL70 or you can process with RSNAST00.
    Output application type : V2
    Output type : LD00
    Regards
    Venkat.. Ananth Technologies

  • How to view those order types of delivery note,shipment cost,invoice

    Dear,
    I want to view all of types about delivery note, shipment cost, invoice. I know VOV8 can view order type of sales order. where can view mentioned order type.
    Thanks in advance.
    Meng HM

    Delivery Type - OVLK
    Invoice Type - VOFA
    Shipment document type - Transaction code SM30 - view type V_TVTK
    Shipment cost type T_56
    I hope the question is answered

  • Incomplete sales order to block delivery note creation

    Hello experts,
    I use the incomplete procedure on the sales order and save the order with one field not filled in. So this sales order is incomplete, but seems user can still create delivery note for the order.
    In the "status group" IMG, there is one check box for delivery, I tick it on, but still the delivery note can be created even the sales order is incomplete for that field.
    Anything missing here or this is as expected? Thanks!

    Hi JohnXu,
    --Go to T.Code VUA2 & select your sales document type  & check mark on IC-Dialog & save it.
    --Raise sales order VA01 with incomplete information & try to save the order the system throws error message.If you still want to save the order the system will not allow you to save the document.
    Let me know if your problem is solved
    Regards
    Pradeep

  • Add Order Quantity to Pick List PLD

    Can someone tell me how to add the Sales Order Quantity to the Pick List PLD.  I tried adding a database field with PKL1-OrderEntry and then adding another with RDR1-Quantity and then relating that to the former with no luck.  Any ideas from the PLD experts out there?.
    Thanks,
    Karl

    Karl,
    You have already done 80% of work by adding a database field with PKL1-OrderEntry and then adding another with RDR1-Quantity and then relating that to the former
    You will need to add another database field PKL1-OrderLine (Order Row ID)
    Then in the RDR1.Quantity field
    Relate to: PKL1-OrderEntry
    Next Segment: PKL1-OrderLine
    This should work.
    Good luck
    Suda

  • Order Quantity (Config.) not set when using BAPI_SALESORDER_CREATEFROMDAT2

    Hi when I use BAPI_SALESORDER_CREATEFROMDAT2 order quantity is empty (missing also in the inclompent log in VA03)
    why ? what should be also set ? thanks a lot !
    I set this data:
    ls_order_header_in-doc_type    = 'TA'.
    ls_order_header_in-sales_org   = '1000'.
    ls_order_header_in-distr_chan  = '01'.
    ls_order_header_in-division    = '01'.
    ls_order_header_in-PURCH_NO_C  = 'test'.
    ls_order_partners-partn_role = 'AG'.
    ls_order_partners-partn_numb = 'CH10'.
    APPEND ls_order_partners TO lt_order_partners.
    ls_order_item_in-material = 'S-000'.
    APPEND ls_order_item_in TO lt_order_item_in.
    ls_order_cfgs_value-charc = 'S001'.
    ls_order_cfgs_value-value = '1'.
    APPEND ls_order_cfgs_value TO lt_order_cfgs_value.
    ls_order_cfgs_value-charc = 'S002'.
    ls_order_cfgs_value-value = '1'.
    APPEND ls_order_cfgs_value TO lt_order_cfgs_value.
    ls_order_cfgs_value-charc = 'S002'.
    ls_order_cfgs_value-value = '2'.
    APPEND ls_order_cfgs_value TO lt_order_cfgs_value.
    ls_order_cfgs_value-charc = 'S003'.
    ls_order_cfgs_value-value = '1'.
    APPEND ls_order_cfgs_value TO lt_order_cfgs_value.
    ls_order_cfgs_value-charc = 'S003'.
    ls_order_cfgs_value-value = '3'.
    APPEND ls_order_cfgs_value TO lt_order_cfgs_value.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
    *   SALESDOCUMENTIN               =
        order_header_in               = ls_order_header_in
    *   ORDER_HEADER_INX              =
    *   SENDER                        =
    *   BINARY_RELATIONSHIPTYPE       =
    *   INT_NUMBER_ASSIGNMENT         =
    *   BEHAVE_WHEN_ERROR             =
    *   LOGIC_SWITCH                  =
    *   TESTRUN                       =
    *   CONVERT                       = ' '
    * IMPORTING
    *   SALESDOCUMENT                 =
      TABLES
        return                        = lt_return
        order_items_in                = lt_order_item_in
    *   ORDER_ITEMS_INX               =
        order_partners                = lt_order_partners
    *   ORDER_SCHEDULES_IN            =
    *   ORDER_SCHEDULES_INX           =
    *   ORDER_CONDITIONS_IN           =
    *   ORDER_CONDITIONS_INX          =
    *   ORDER_CFGS_REF                =
    *   ORDER_CFGS_INST               =
    *   ORDER_CFGS_PART_OF            =
        order_cfgs_value              = lt_order_cfgs_value.
    *   ORDER_CFGS_BLOB               =
    *   ORDER_CFGS_VK                 =
    *   ORDER_CFGS_REFINST            =
    *   ORDER_CCARD                   =
    *   ORDER_TEXT                    =
    *   ORDER_KEYS                    =
    *   EXTENSIONIN                   =
    *   PARTNERADDRESSES              =
    *   NFMETALLITMS                  =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

    We use the same BAPI to process Web orders into SAP.  You have to have a corresponding ORDER_SCHEDULES_IN entry with matching ITM_NUMBER for every ORDER_ITEMS_IN entry.  Within ORDER_SCHEDULES_IN is where you put the quantity.  Should be stored in REQ_QTY.    We had to fill ITM_NUMBER and SCHED_LINE with the line number value in order to make it work.  Remember to fill in your corresponding X-structure fields as well.
    hope this helps,
    Chad

  • Inbound Delivery IDOC-DELVRY03; Right User Exit? WMTC1D01 IDOC for STOs??

    Hi Experts,
    The scenario is:
    As soon as the user saves the DELIVERY in external_system, flat file is sent to Gentran, where its transfrred to IDOC and then, this IDOC is directed to SAP.
    So, this Inbound_Delivery_IDOC- - DELVRY03 will be received by SAP system and updates the delivery related stuff in SAP system.
    So, here, AT THIS POINT,
    1)I need to capture this IDOC of Inbound_Delivery_IDOC - DELVRY03,
    2) Need to check its(Inbound_Delivery_IDOC) MESSAGE CODE for TOA
    3) If its TOA, I need to UPDATE the associated Stock Transfer Order/STO(record in LTAK, LTAP tables) stuff through IDOC of WMTCID01
    so, let me know that,
    1) Wht is the User Exit, I need to look, Which User Exit is correct? I mean, At Wht point I need to add my code in this whole process?
    2) How to execute the UPDATED WMTC1D01 IDOC of Stock Transfer Order-STO?
    thanq

    no reply

  • Delivery note in Russia with prices

    In Russia, there is a legal requirement to send a delivery note with prices printed on it along with the goods. It is having a layout which is given by Goverment. Is there any standard SAP program & script used to print the delivery note with prices in Russia.
    Thank you so much for your help in advance.

    Hi,
    I am not aware of standard forms (at least there was no such when we were developing Russian layouts in 2008..).
    As a watchout however you need to note that the pricing of those documents (1T etc.) with pricing need to have exactly the same price as later on when you generate the invoice. So when there are any quantity cuts you need to recalculate all pricing from SO taken into account new quantities. And pay special attention there to rounding issues.
    The format of the layout itself is less of a problem.
    Regards,
    Dominik Modrzejewski

  • Sales orders from CRM are not getting blocked with credit check

    Hi All
    I have configured ECC in such a way that , if cutomer does not have enough creditlimt, then those sales order will get blocked. Our orders will come from CRM, and some times some orders are not getting blocked with credit check even though the customer does not have credit limit. And at the same time some orders are blocked with credit check...what are all the things that should be checked to diagnose the problem.
    Thanks in advance for looking into this

    Please check if you have any custom code/user exit in ECC which uses transaction code (VA01 , VA02 or VA05 etc) prior to invoking credit checks. 
    Orders created via CRM will not have transaction code set (SY-TCODE).

  • Excluding idoc processing from user exit code

    Hi all,
    In a user exit (for VA01 Create Sales Order) we are currently excluding certain order types by hardcoding the document type in the code. This is because some orders are created by IDoc and in this case the IDocs fail if they use the eser exit code (because the code creates pop-up messages intended for online users only). Not the best solution.
    Does anybody know if we can use different code so that this part of the user exit does not get triggered by IDocs?
    Thanks,
    Mike

    I've figured out another solution - you can do a test on the field IDOC_NUMBER. If it is filled, then the sales order is created/changed via an Idoc.

  • Add a new line item in VA01/VA02 using user exits.

    Hi Experts,
    I have a problem regarding adding of line items in VA01/VA02. I was able to add a line item but my problem is, there is no validation for the added line. I want SAP to validate it before posting it to database. I'm using USEREXIT_SAVE_DOCUMENT_PREPARE for this one.
    I also found out from other threads, that adding line items in XVBAP is not advisable since no checking will be done after USEREXIT_SAVE_DOCUMENT_PREPARE.
    I'm thinking if I can use FM DYNP_VALUES_UPDATE on one of the user exits to add a line item in VA01/VA02 and let SAP do the checking and validation. This way, I'm sure that the added line is correct and data integrity will be maintained.
    Do you have any comments/suggestions about this?
    Thanks a lot,
    Arman.

    Hi,
    I am trying to do this as well but I don't get it working...
    I am able to add records to XVBAP, but those never show up in my sales order.
    I have found that I should also add records to XVBEP, XKOMV and XKOMP before it will be working, but when I add something to XVBEP I do get a dump on SAVE.
    I would like to ask people that managed to get this working to post the code as an example here.
    Thanks and best regards,
    Marnix

Maybe you are looking for

  • 2010 Mac Mini and HDMI question

    Just bought a new Mac mini and have it hooked up to a Samsung px2370 HDMI to HDMI and as good as the picture looks I'm thinking it could look better ... And I've heard that generally a computer shouldn't be hooked up that way... The Mac mini has anot

  • Default header texts in purchase order

    Hi, I would like to ask you for help in following case. I need to set default purchase header text when a new PO is created in me21n. I found transaction VOTX where can be this done for sales order, but not for PO. Is there anything similar also in M

  • Lens Correction Manual Slider Bug!

    Hello, I've been having a problem with the Lens correction Manual Sliders. Constrain Crop selected. The vertical and horizontal sliders are behaving more like the distortion slider. When sliding left or right they are pulling from the center, rather

  • Extedn wth -taxes

    Experts:-   In extended wtith holding taxes comes one :- point i.e 1.Define extended withholding taxes types for invoice posting.... 2.Define extended withholding taxes type for invoice for payment making. My doubt and interivwer asking what is the n

  • How to load jsp page in Frame?

    hi I have tried to make an Application which is a very simple Messenger made by java.awt.Frame and had problem to load/open jsp page. Is there any way to load/open jsp page in Frame When an event occured? It makes me crasy these days. Please Help me.