DESADV outbound. not sure on correct user exit

Hi,
I have been asked to extend the DESADV idoc to include a new segment underneath the E1EDP07 area. I have create a new segment (one we are using on an extended ORDERS01) but I am a little confused on the best way of proceeding.
I used a customer enhancement project MM06E001 (EXIT_SAPLEINM_002) for the ORDERS01 modification and this worked well - but I dont seem to be able to use a similar structure for DESADV from a delivery document.
I have found out there is a user exit (USEREXIT_E1EDP07 in Program LVED2FZZ) but I am not sure if I can use this. In my enhancement I managed to include the code in the new segment as I basically coded to say - If parent segment was the last segment updated then the next one should be the new segment. The user exit in LVED2FZZ looks like it is specifcally updating when it hits E1EDP07. I would want to populate some entries in E1EDP07 and my new segment in the same loop - although not sure if you can do this.
I can send more details if it helps - but basically I am looking for the best way to populate a new segment which has E1EDP07 as the parent segment.
Any ideas???
Regards
Paul

wow this is very close now... it seems like I have been misinformed and the zsegment should actually sit under E1EDP09. The delivery I have has two lines and the output I am getting in the idoc is slightly wrong. I get two Z1PCK1 lines but they both are located under the first E1EDP09. This should only have one entry and the second E1EDP09 should also have an entry.
I have the following code
data: lv_index type sy-tabix.
data: zsegment type Z1PCK1.
data: wa_edidd type edidd.
read table int_edidd with key segnam = 'E1EDP09'.
if sy-subrc eq 0.
lv_index  = sy-tabix + 1.
endif.
  zsegment-ZWIDTH = 100.
  zsegment-ZLENGTH = 101.
  zsegment-ZHEIGHT = 102.
  zsegment-ZPACKWIDTH = 103.
  zsegment-ZPACKLENGTH = 104.
  zsegment-ZPACKHEIGHT = 105.
  zsegment-ZPACKSIZE = 106.
wa_edidd-segnam = 'Z1PCK1'.
wa_edidd-sdata = zsegment.
insert wa_edidd into int_edidd index lv_index.
clear wa_edidd.
clear int_edidd.
clear lv_index.
I am sure this is something to do with the lv_index. When I run this through debugger both times lv_index = 18. I tried to change the value of this to 19 and also 20 but it still didn't work.
I basically get the following in the structure
E1EDP07
->E1EDP09
-->Z1PCK1
-->Z1PCK1
->E1EDP09
->E1EDPT1
any ideas on how to fix the index issue to work with multiple lines??
Regards
Paul

Similar Messages

  • How to find a correct User-Exit

    Hi All
          I need to make changes in the user exit and there are many user-exits in the standard program here my question is how to find the correct user-exit which suits our requirement.
    Thanks
    srini

    run this program by giving ur t code...and click the exit it will go to SMOD there u read the documentation of that exit..if ur requirement satisfies try to use that one..
    REPORT  ZUSEREXIT.
    *report zuserexit no standard page heading.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : devclass like tadir-devclass.
    parameters : tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq tcode.
    if sy-subrc eq 0.
    select single * from tadir where pgmid = 'R3TR'
                      and object = 'PROG'
                      and obj_name = tstc-pgmna.
    move : tadir-devclass to devclass.
    if sy-subrc ne 0.
       select single * from trdir where name = tstc-pgmna.
       if trdir-subc eq 'F'.
         select single * from tfdir where pname = tstc-pgmna.
         select single * from enlfdir where funcname = tfdir-funcname.
         select single * from tadir where pgmid = 'R3TR'
                            and object = 'FUGR'
                            and obj_name eq enlfdir-area.
         move : tadir-devclass to devclass.
       endif.
    endif.
    select * from tadir into table jtab
                   where pgmid = 'R3TR'
                     and object = 'SMOD'
                     and devclass = devclass.
    select single * from tstct where sprsl eq sy-langu and
                                      tcode eq tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
          20(20) tcode,
          45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
       write:/(95) sy-uline.
       format color col_heading intensified on.
       write:/1 sy-vline,
              2 'Exit Name',
             21 sy-vline ,
             22 'Description',
             95 sy-vline.
       write:/(95) sy-uline.
       loop at jtab.
         select single * from modsapt
                where sprsl = sy-langu and
                       name = jtab-obj_name.
         format color col_normal intensified off.
         write:/1 sy-vline,
                2 jtab-obj_name hotspot on,
               21 sy-vline ,
               22 modsapt-modtext,
               95 sy-vline.
       endloop.
       write:/(95) sy-uline.
       describe table jtab.
       skip.
       format color col_total intensified on.
       write:/ 'No of Exits:' , sy-tfill.
    else.
       format color col_negative intensified on.
          write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    call transaction 'SMOD' and skip first   screen.

  • 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

  • Correct User Exit search  for a Buisness Process..

    Hi Team,
    Can someone please explain me how should i go about to search for the correct User Exit running behind a Process(A buisness Process )  which would require certain enhancements ..
    Thanks .
    Regards,
    SK

    Hi,
    Go to SE93, and give the t.code which you want
    Then take the package and go to SMOD
    There click F4 for enhancements, then click on information system, there you give package and enter
    Now, you will get corresponding exits.
    this is one way.
    other way is  we need to check whole program or exit
    go to that t.code, goto system -->status .There find out the prog name.
    Then double click the program name.
    In attributes  teb, you find the package.
    go to SMOD, press F4 and input package
    Hope this helps
    Regards,
    Anbu

  • ATC not checking code in user exit includes

    Dear Friends,
    I'm not sure if you have faced this issue, but I have not found anyone or any post or any document or any OSS note talking about it.
    I've recently have realized than when using ATC for checking the custom code of an Z include it was finding cero errors when it was actually full of them.
    In fact using code inspector, the errors where found. It was not an issue of using a different variant, this was checked, CI and ATC are using the same,
    The issue itself was clear: When the ATC checks a parent object its checks the code of its includes. If you try to check an include directly with ATC, it is ignored with message "No checks are available for the objects types", giving the chance to "add master program" so it will be checked when the master program is checked with all its includes. Last, ATC neither Code Inspector checks custom code.
    The end result is that when trying to check the code in a user exit include with ATC it does not find any error.
    I can think about encapsulating the code found in a user exits but this is a titanic task.
    The main problem is that the jobs for getting in CCLM the quality required massive ATC runs that will not catch the errors in these kind of objects.
    Have you face this issue? do you have any recommendation?
    I would like your opinion before raising this as customer message, as from my point of this this may require a SAP correction.
    Thanks
    Aubin

    Hello Aubin,
    to be perfectely honest I have not started with the indeep analysis yet. One reason is that the behaviour regarding exit techniques has got improoved recently so it is important to do the analysis on a SP level close / identical to yours.
    If I am not mistaken CMOD function exits yield into 2 TADIR keys:
    - 'R3TR' 'FUGX' .... - referring to the definition of the function group - typically provided by SAP - residing in a SAP package
    - 'R3TR' 'FUGS' .... - referring to the implementation - typically custom code - residing in a Z-Package
    My initial assumpution was that mapping partobjects always return FUGX but shall return FUGS. And also I was assuming the custom package shall contain the 'FUGS' implementation which shall enable checking out of the box.
    But it seems these assumptions are not valid. I am not sure wether I would be able to analyse this issue this week. In any case I will update this thread as soon as the analysis has been done.
    Best Regards
      Klaus

  • 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

  • Correct user exit need for vl32n - post goods receipt.

    Sorry this is not the correct forum . SO please don't look in to this
    For vl32n , upon "Post goods receipt" button click, I was  writing code in "mv50afz1" ...Basically in the  "mv50afz1" program, I am clearing the value of batch(charg) and the same batch value I am assigning to vendor batch(am doing by moving xlips-charg value to xlips-lichn).
    But the thing is my logic should be written in one of the userexit before this user exit( Why because  SAP generates one batch on it's own and assigns that to batch if it the batch field in vl32n is space - If batch field is not space SAP's generated batch won't be assigned - So I need to make the batch value space in vl32n upon click of "Post goods receipt" button to allow assignment of SAP's batch).
    So could you please suggest me is there any user exit available for this ? 
    THANKS.
    Edited by: sam kumar on May 8, 2009 7:22 PM

    I am sorry this i snot the correct forum.

  • Datasource Enahncement - What is the case when i am not req to do USER Exit

    Experts,
      Can someone explain me what is/are the cases when i do not require to code in the user exit to populate the enhanced field?
    I see for some datasource the enhanced values are populated automatically.
    Appreciate your answers.
    Thanks
    Hari

    Hi Hari,
    In some cases we  do not need to write any code .
    Whenever we need to enhance our datasource we first check in LBWE if the required filed is available in the pool .
    If it is available in pool we simply transfer it to extract structure and in this case we do not write wny code.
    The second case is when we append our extractiion structure because the required field is not abailabl ein the pool.
    In this case we need to write code to populate the field.
    Hope it helps
    Manish Sharma

  • What not to do in User exits ??

    Hi ,
    I came to know that we should not use Commit,Call transaction,Calling popup's ,Exit and stop should not be used while coding in user exits .
    Can anyone please explain me in detail what is the impact of using these in the an exit code . A detailed explanation will serve the purpose .
    Thanks,
    Daniel .

    Using COMMIT.
    Consequence.
    The data entered in a transaction is not commited at the time the control reaches the EXIT. If you do a commit at that stage, system tries to write the changes that are still in the buffer to the database. There may be more updates to the database tables after the exit which doesn't get commited for some other reason. This may lead to inconsistencies of the data spoiling the basic principles of databse integrity.
    Call transaction.
    This may lead to an endless loop situation where the exit gets called again in the transaction.
    EXIT and STOP have similar consequneces as mentioned for COmmit.
    Error messages also rollback the changes that are done till that point in time.
    Regards,
    Ravi

  • Workflow not  forwarding  to correct users

    Hi ,
    I have created a workflow for purchase requisition and its working fine. but the problem is that it is also going to different approvers for approval. so what to do to correct this.
    Thanks,
    Rahul

    My first thought would be to fix the solution. I know, I am not quite like normal people. Looking at the rule which determines approvers comes to mind as a good place to start.
    Edited by: Kjetil Kilhavn on Jan 22, 2008 11:07 AM:
    Before you ask for more help, please describe what you have done to try and figure out what the problem is. Thank you.

  • User exit for inbound ORDCHG

    Hi all,
    I would like to know the user exit which can be used for <b>Inbound ORDCHG</b>.
    I need to do the mappings for fields like <b>AUGRU, ORGID, PARTN, VSART, ROUTE,IDTNR</b> etc. I have already done the mappings for the above fields for Inbound ORDERS and have used the user exits EXIT_SAPLVEDA_001 and EXIT_SAPLVEDA_002. I suppose it will be a similar mapping.
    However, I am not sure of the user exits which can be used for <b>Inbound ORDCHG</b>.
    Please help!
    A bit urgent.
    Thanks and regards,
    Anishur

    Hi Seshu,
    In my case, a PO is created in system A and sent out as Outbound ORDERS and Outbound ORDCHG. It goes to XI and comes back to the same system as Inbound ORDERS and creates a SO. Hence, I had mentioned about Inbound ORDERS and the user exits used in this case.
    Similarly, I would like to know the user exit which can be used for Inbound ORDCHG and that too to map the same fields as for Inbound ORDERS.
    Thanks and regards,
    Anishur

  • IDOC user exit to update the document flow of the delivery

    Hi all,
    Scenario:-
    There is an inbound idoc for delivery through which the delivery is getting posted ...while reprocessing the idoc (BD87) i need to update the dates on document flow of the delivery. The date to be updated is coming from the idoc.
    I have the function module(RV_DOCUMENT_FLOW_UPDATE_U) to update the document flow but i am not sure in which user exit it can be placed. I tried checking for some exits but nowhere i can find the delivery number to which i need to update through the FM.
    I am using the standard idoc with the message type as -DELORD and the basic type as 'ORDERS03'.
    Kindly provide user exit where i can use the date coming from the idoc (IDOCDATA) and where i can find the delivery no also.
    Thanks,
    Neslin.
    I have closed the other thread there is no more duplication.

    I already checked VEDA0001, but the tables for the delivery is not getting populated as it is processing through BD87(Reprocessing Idoc). Is it advisable to use the export import parameter?. Exporting the idoc data from any of the user exit in VEDA0001 and importing it in some other exit where the vbeln is available.?
    Thanks,
    Neslin.

  • Idoc user exit to update the document  flow of delivery

    Hi all,
    Scenario:-
    There is an inbound idoc for delivery through which the delivery is getting posted ...while reprocessing the idoc (BD87) i need to update the dates on document flow of the delivery. The date to be updated is coming from the idoc.
    I have the function module(RV_DOCUMENT_FLOW_UPDATE_U) to update the document flow but i am not sure in which user exit it can be placed. I tried checking for some exits but nowhere i can find the delivery number to which i need to update through the FM.
    I am using the standard idoc with the message type as -DELORD and the basic type as 'ORDERS03'.
    Kindly provide user exit where i can use the date coming from the idoc (IDOCDATA) and  where i can find the delivery no also.
    Thanks,
    Neslin.
    Edited by: neslin on Jul 12, 2010 5:44 PM
    Moderator message: cross-post locked.
    Edited by: Thomas Zloch on Jul 12, 2010 2:27 PM

    Check for the enhancement VEDA0001
    Go to smod and refer to the further documentation for the same..
    Hope it helps.
    Thanks and regards

  • User-exit not getting triggered in VA32

    Hello Experts,
    Iu2019ve a requirement and Iu2019m working on Change Scheduling Agreement u2018t-code VA32u2019. According to requirement I need to capture all header data and data in Sales, Item Overview, Item Detail and Ordering party tabs. Iu2019ve set the break points in almost all the user-exits but only one FM (EXIT_SAPLV45L_002) of exit u2018V45L0001u2019 is getting trigger. Even though other exits/FM has all the tables as import/export parameters which I need but they are not getting triggered. Can anybody please tell me which user-exit / BADI I should use to capture the required data?
    Thanks.

    Hello Experts,
    Thanks a lot Vijay for you reply. Iu2019ve seen user exits of MV45AFZZ include and looks like USEREXIT_SAVE_DOCUMENT_PREPARE is the correct user exit. But I havenu2019t use Includes before can you or anybody else please tell me how to write code in include. I know how to search an include in a program but not sure how to add code in the user exit.
    Thanks

  • User exit in DESADV

    Hi .
    Has anybody used user exits in FM IDOC_OUTPUT_DESADV01?
    The ones that I could come across are of the kinds :
    form userexit_<seg name>
    Are they correct because they require access keys. Please confirm.
    Thanks

    Hi,
    Even though we didn't use them, it looks like they are the correct user exits. Since this is implemented as form exit rather than a function module exit, yes you do need access key from SAP as you will be modifying the standard SAP program. It is similar to using the user exits in sales orders(MV45AFZZ).
    Regards,
    Srinivas

Maybe you are looking for

  • FPM_SEARCH_UIBB: Fine Tuning of the Search Area

    Hello experts, I created a search application using FPM_SEARCH_UIBB. The user should only have a fixed search area with twelve search criterias, two of them should be mandatory. The general setup of the search area is done and works fine. But there a

  • All my photos have disappeared from iphoto!!! I can find them in spotlight

    Hello All! Help! I was importing photos from a compact flash card into iphoto which was successful. I powered down for the night, the next time I opened up iphoto my entire library seemed to have disappeared(about 5000 images!) All that was left was

  • How to Display HTML content in Discoverer Viewer?

    Hi, Is there any way to display html in the Discoverer Viewer 4i or 9i ? The HTML code could be stored in a CLOB, varchar2 field or also in a referenced HTML side. What I want is that the HTML code is already displayed in the Discoverer Viewer. I kno

  • To change the text of outline-agreement

    Hi Experts, Im using BAPI_CONTRACT_CHANGE function module to change outline agreement.When im executing this im getting the dump.Will you explain me how to use this fm to change the item text of outline-agreement.Will you please give the list of mand

  • Regarding button in Selection

    Hi All , I have a requirement where in i need to assign an input field to download data after clicking a button on the selection screen. Regards, Shafiq