To add field in the segment of an IDOC

Hi,
Is there any impact on other IDOC types, if a field is added in the segment of an basic IDOC type.

Hi,
You can add the field VGBEL in the custom segment ZE1EDL24 and add this segment as a child segment to E1EDL24 and save it as an extension for the basic idoc type.
You can populate the VGBEL field using custom code in the function exit.
This would solve your problem.
Please let me know if you have any further queries.
Thanks,
Mahesh,

Similar Messages

  • How to add field to the header for FBL5N ALV report

    Hi,
       I need to add fields to the customer line item display ALV report(FBL5N) header part.Right now there are four fields in the header like customer, company code, name and city, after that I need to add first name last name and phone no. Can any one tell me where exactly I need to add and populate there fields to be appear in ALV output list.
    Thanks in Advance
    Swapna

    Yes I have tried, I have place a break point in that perform but it does not stop. I think that is not the correct place to added and populate fields. That routine is for populate selection screen ranges single and multiple values and parameters only.
    Thanks
    Swapna

  • Get the value of a particular field in a segment of an Idoc

    Hi All,
    I have a requirement where I need to write a report which will fetch the value of a particular field in a segment of an idoc.
    I have the idoc number segment and field name as input parameters by which I can fetch Sdata from EDID4 but the confusion is how to find the exact field value from that Sdata. How to Map the SDATA to the segment structure.
    Please advice...

    Hi,
    I have one last doubt that may be you people can help with... The user will be giving the segment name and field name as input. So by following Kesav's code while i can get all the values in the segment structure at runtime please suggest how to display any one field from that structure given that that particular field will come at runtime.
    EX: user gives an idoc number 123 (say belonging to Orders basic type)
                                 segment E1EDK01
                                 field  BELNR.
    So i need to display the value of E1EDK01-BELNR of idoc number 123.
    Please suggest how to achieve this....

  • Add fields to the standard report QM15

    i want to add fields to the standard report.
    t.code QM15 which display the list of items: selection of notifications.
    the fields i want to add are:
    1. batch no
    2. Sample no
    3. Main vendor
    please let me know how can i do this. if any one can help me with screenshot doc. this is really helpful.
    Thanks

    Hi experts,
    I have done with the z** creation of the standard report. I also create the z*include for the standard includes which are in the standard program. But I not able to find the fieldcatlog or include where I can add my new fields.
    But I tried with one structure tht is standard structure in tht standard report so i make it as z*structure and I append my new fields to this structure. I debug the report and this works fine and also shows output, but at output when I change the layout to see these new fields it shows dump.
    Then I tried with one more thing to give the positioning to my new added fields. (This is what u can say column positioning ).
    When I execute this,it goes to dump screen.
    Now I don't what to do with this.
    If any one like to see the code. Plz let me know I will post the code.
    Or if any one have any document on this plz share. Or any other solution.
    Thanks in advance.
    Thanks
    Sachin

  • Reg:How to add fields to the scripts in detail

    How to add fields to the scripts in detail.
    Plz give me one example help me out.

    Hi
    add fields to the scripts by sending that field between  two &s.
    for example if u want to add lifnr of lfa1 table then pass field like this.
    &wa_lfa1-lifnr&.here wa_lfa1 is work area for internal table it_lfa1.
    if name1 then &wa_lfa1-name1&
    in this way you can add fields to the script under any window.
    i am sending one example program for scripts.
    &--structure declaration--
    TYPES:BEGIN OF ST_LFA1,
          LIFNR TYPE LFA1-LIFNR,
          NAME1 TYPE LFA1-NAME1,
          LAND1 TYPE LFA1-LAND1,
          ORT01 TYPE ORT01,
          REGIO TYPE REGIO,
          END OF ST_LFA1.
    TYPES:BEGIN OF ST_EKKO,
          EBELN TYPE EKKO-EBELN,
          BUKRS TYPE EKKO-BUKRS,
          AEDAT TYPE EKKO-AEDAT,
          ERNAM TYPE EKKO-ERNAM,
          BSTYP TYPE EKKO-BSTYP,
          LIFNR TYPE EKKO-LIFNR,
          END OF ST_EKKO.
    TYPES:BEGIN OF ST_EKPO,
          EBELN TYPE EKPO-EBELN,
          EBELP TYPE EKPO-EBELP,
          LOEKZ TYPE EKPO-LOEKZ,
          AEDAT TYPE EKPO-AEDAT,
          MATNR TYPE EKPO-MATNR,
          NETWR TYPE EKPO-NETWR,
          END OF ST_EKPO.
    &--internal table,work area declaration--
    DATA:WA_LFA1 TYPE ST_LFA1,
         IT_LFA1 TYPE STANDARD TABLE OF ST_LFA1,
         WA_EKKO TYPE ST_EKKO,
         IT_EKKO TYPE STANDARD TABLE OF ST_EKKO,
         WA_EKPO TYPE ST_EKPO,
         IT_EKPO TYPE STANDARD TABLE OF ST_EKPO.
    &--data declaration--
    DATA:TOTAL TYPE EKPO-NETWR,
          V_EBELN TYPE EKKO-EBELN.
    data: v_item(20) type c.
    &--parameter for purchase document number--
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS P_PURDOC LIKE V_EBELN.
    SELECTION-SCREEN END OF BLOCK B1.
    START-OF-SELECTION.
      PERFORM GET_DATA_FROM_EKKO.
      PERFORM GET_DATA_FROM_LFA1.
      PERFORM GET_DATA_FROM_EKPO.
    &--grand total--
      LOOP AT IT_EKPO INTO WA_EKPO.
        TOTAL = TOTAL + WA_EKPO-NETWR.
        CLEAR WA_EKPO.
      ENDLOOP.
    &--open form--
      CALL FUNCTION 'OPEN_FORM'
       EXPORTING
        DEVICE                            = 'PRINTER'
        FORM                              = 'Z_50886_VENDOR'
        LANGUAGE                          = SY-LANGU
       EXCEPTIONS
         CANCELED                          = 1
         DEVICE                            = 2
         FORM                              = 3
         OPTIONS                           = 4
         UNCLOSED                          = 5
         MAIL_OPTIONS                      = 6
         ARCHIVE_ERROR                     = 7
         INVALID_FAX_NUMBER                = 8
         MORE_PARAMS_NEEDED_IN_BATCH       = 9
         SPOOL_ERROR                       = 10
         CODEPAGE                          = 11
         OTHERS                            = 12
      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 form for header details--
      READ TABLE IT_EKKO INTO WA_EKKO INDEX 1.
      CALL FUNCTION 'WRITE_FORM'
       EXPORTING
         ELEMENT                        = 'HEAD'
         WINDOW                         = 'HEADER'
       EXCEPTIONS
         ELEMENT                        = 1
         FUNCTION                       = 2
         TYPE                           = 3
         UNOPENED                       = 4
         UNSTARTED                      = 5
         WINDOW                         = 6
         BAD_PAGEFORMAT_FOR_PRINT       = 7
         SPOOL_ERROR                    = 8
         CODEPAGE                       = 9
         OTHERS                         = 10
      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 form for item details--
      LOOP AT IT_EKPO INTO WA_EKPO.
      concatenate wa_ekko-ebeln wa_ekpo-ebelp into v_item.
        CALL FUNCTION 'WRITE_FORM'
         EXPORTING
           ELEMENT                        = 'ITEM'
           WINDOW                         = 'MAIN'
    EXCEPTIONS
       ELEMENT                        = 1
       FUNCTION                       = 2
       TYPE                           = 3
       UNOPENED                       = 4
       UNSTARTED                      = 5
       WINDOW                         = 6
       BAD_PAGEFORMAT_FOR_PRINT       = 7
       SPOOL_ERROR                    = 8
       CODEPAGE                       = 9
       OTHERS                         = 10
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDLOOP.
    &--write form for vendor details--
      READ TABLE IT_LFA1 INTO WA_LFA1 INDEX 1.
      CALL FUNCTION 'WRITE_FORM'
       EXPORTING
         ELEMENT                        = 'VENDOR'
         WINDOW                         = 'ADDRESS'
       EXCEPTIONS
         ELEMENT                        = 1
         FUNCTION                       = 2
         TYPE                           = 3
         UNOPENED                       = 4
         UNSTARTED                      = 5
         WINDOW                         = 6
         BAD_PAGEFORMAT_FOR_PRINT       = 7
         SPOOL_ERROR                    = 8
         CODEPAGE                       = 9
         OTHERS                         = 10.
      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 form for grand total--
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
        WINDOW                         = 'TOTAL'
    EXCEPTIONS
       ELEMENT                        = 1
       FUNCTION                       = 2
       TYPE                           = 3
       UNOPENED                       = 4
       UNSTARTED                      = 5
       WINDOW                         = 6
       BAD_PAGEFORMAT_FOR_PRINT       = 7
       SPOOL_ERROR                    = 8
       CODEPAGE                       = 9
       OTHERS                         = 10
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    &--close form--
      CALL FUNCTION 'CLOSE_FORM'
       EXCEPTIONS
         UNOPENED                       = 1
         BAD_PAGEFORMAT_FOR_PRINT       = 2
         SEND_ERROR                     = 3
         SPOOL_ERROR                    = 4
         CODEPAGE                       = 5
         OTHERS                         = 6
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *&      Form  get_data_from_ekko
    FORM GET_DATA_FROM_EKKO .
      SELECT EBELN
             BUKRS
             AEDAT
             ERNAM
             BSTYP
             LIFNR
          FROM EKKO INTO TABLE IT_EKKO WHERE EBELN = P_PURDOC.
    ENDFORM.                    " get_data_from_ekko
    *&      Form  get_data_from_lfa1
    FORM GET_DATA_FROM_LFA1 .
      IF NOT IT_EKKO[] IS INITIAL.
        SELECT LIFNR
               NAME1
               LAND1
               ORT01
               REGIO
               FROM LFA1 INTO TABLE IT_LFA1 FOR ALL ENTRIES IN IT_EKKO WHERE
                    LIFNR = IT_EKKO-LIFNR.
      ENDIF.
    ENDFORM.                    " get_data_from_lfa1
    *&      Form  get_data_from_ekpo
    FORM GET_DATA_FROM_EKPO .
      IF NOT IT_EKKO[] IS INITIAL.
        SELECT EBELN
               EBELP
               LOEKZ
               AEDAT
               MATNR
               NETWR
               FROM EKPO INTO TABLE IT_EKPO
               WHERE EBELN = P_PURDOC.
      ENDIF.
    ENDFORM.                    " get_data_from_ekpo

  • Finding Mendatory fields in a segment of an IDOC

    Hi All,
    Can anyone tell me how to find out the mendatory fields required in a segment of an IDOC if we are going to upload data using IDOC technology.
    Thanks in Advance.

    Hi Ginger,
    Can anyone tell me how to find out the mendatory fields required in a segment of an IDOC if we are going to upload data using IDOC technology.
    The fields in the IDOC can never be made mandatory but the Segments in the IDOC can be made mandatory.
    If segment is mandatory it means that atleast one field in the Segment should be filled.
    generally while defining the IDOC Header data is made as the mandatory segment with Minimum number  1 Maximum number  1 and rest all as optional and can occur more than once.
    Hope this clarifies!
    Regards
    Shital

  • Error while adding a new field to the Segment in we31

    Hi ,
    I am getting error when i am trying to add the new field to the cust. segment.
    It is released for the adding the new fields i am cancelling the release , but i got a message like this
    Error while resetting release of segment 'segment name'.
    it is comming from the message class EA and message number 259.
    Thanks in advance.
    Reagrds,
    bharani

    Hi,
    Have you tried Cancelling the release before adding the version?
    Select the active version of the IDOC Segment and cancel its release first. Only then you will be able to add a version.
    Please let me know if it worked!
    Vijay

  • Error while adding new field in the Segment type thru WE31.

    Hi All,
    I want to  add one field in the Z segment type using WE31.But i am getting the error message as
    'Current segment definition <segment name> can no longer be changed and The current segment definition
    is already released.You can either add a new segment definition or cancel the release of the current segment definition'.
    The current segment defenition which i am trying to change got the SAP release of 45B. But the system has upgraded to Ecc6 recently.
    I tried going to the edit menu and cancel the release, but still it is not allowing.
    Whats the impact of the Add button(Add version) and creating a new version?.will it create a new version for ECC6?.
    Points will be rewarded
    regards,
    neslin.

    Hi
    You can create a new version.  This will not create any problems.  You might not be able to cancel the release because of upgrade.
    Thanks
    Vijay

  • Removinga field from the segment which is already released

    Hi Folks,
        I have created a custom segment & released it. But later when I want to remove a field from it I'm not able to do so. I tried to cancel the release of the segment & then make the required changes but while tried to cancel the release I'm getting an error saying "Error while resetting release of segment ZDATA_BASIC_SEG". Kindly let me know how could I remove the field from this segment. For your information the current release of our system is 700 & the release of segment is also 700.
    Thanks & Regards,
       santosh

    Hi Santosh,
    As you said, current release of your system is 700 & the release of segment is also 700.
    I tried to test the possible errors during the release of the segment. Please have a breakpoint in the program LEDIJF05 in the form CHANGE_CLOSE_SEGDEF.  The error could be mismatch with the previous definition of the segment, where the release is not equal to 700.
    Message Id : EA, msg no 259.
    Please check.
    Hope this helps.
    Regards,
    Satish Kanteti

  • What are all the ways that can add fields in the output list of FBL3N transaction?

    Hello dear experts,
    There is this transaction FBL3N, which you might be aware of. Now, the requirement is to add 4 new fields in the output list of the standard program.
    The fields are:
    NAME1   KNA1
    LOKKT    BSEG
    USNAM   BKPF
    TXT50      SKA1 -> SKAT
    Please tell me how to do this apart from implementing the note 310886. What are the other ways?

    I agree, start reading 984305 - Line item: Definition of special fields (T021S)
    Then for non BSEG/BKPF fields, better use BAdI FI_ITEMS_CH_DATA (1323512) and not the good old BTE 1650, the BAdI will be called once with the full internal table with special fields already filled, when the BTE will be executed for each and every record without special fields, so harder to optimize, and may require access to BKPF/BSEG for missing fields.
    Regards,
    Raymond
    PS: Did you use search tool, there are already many discussions/threads on this subject.

  • Need to add field in the standard screen

    Hi
    As per my requirementn  we have to add one field in the Material master(MM01/MM02). Mentioned path below.
    MM01/MM02)-->  MRP1 tab --> in the MRP areas > click on MRP AREAS button>Pop will come with MRP AREA --> double cleck on entry > MRP area screen will appear> In general data tab> MRP group field is availble> Beside that i have to add one field.
    Program Name--> SAPLMD_MGD1
    Screen --> 0030
    As it is separate pop kind screen not sure whether we can add or not. Please let me know if there is any chance to add the field with procedure.
    Regards
    Raj.

    hi
    For this you have to find the screen EXITS.
    GOTO MM01->click on SYSTEM->then STATUS mow click on the program and find our the package name.
    NOW GOTO -> se84 ->click on ENHANCEMENT-> give the package name here and EXECUTE you find all the EXITs.
    hope this helps
    Regards
    Ritesh

  • Add field to the transaction variant OT43

    Hello,
    I found the following Note: 2596 but  I can't create a field in Dynpro:  SAPMF40K /8000/220 and I don't  found other options as badi, user exit, enhancement , bte, etc.
    I need to create the following field: FEBMKA-VGEXT_EL on the screens above.
    The transaction OT43 by your program uses T021Q table but  I can't modify the table or add an entry T021Q, because internally the  program   that manages the view of fields for transaction FF67, it executes statements as "DYNPRO IMPORT".
    Another consideration that the transaction OT43 only "shows possible fields"  and I can add other fields to select and add to the view.
    In other words I can select only possible fields proposed Sap to the view,  it works this way ?
    Please could you recommend a Note Sap? or perhaps more likely, a copy of the transaction ff67 and modify the new copy of the screen.
    What happens to the transaction OT43, if done the copy of the ff67 as zff67?
    Waiting for response and very grateful for the suggestions.
    The best regards,
    Gustavo

    Hi,
    Yes, it is possible to add button for the transaction SM30.
    This is possible through Menu exit.
    Procedure for Menuexit:-
    Go to SM30 ->System -> Status
    Repository data -> Transaction -> Double click on it
    Copy package name
    Go to SMOD
    Press F4 then a popup will open
    Click on information system
    Enter package name and press Enter
    Then we will get Exit
    Put cursor on that exit and press Enter
    Go to change mode and save it.
    Go to CMOD or alternatively we can use the path tools -> ABAP/4 Workbench -> Utilities -> Enhancements ->Project Management
    Specify Project name in the enhancement text box
    Click on Create icon on the application toolbar.
    Enter description for the project and save it
    Click on Enhancement Assignment button on the application toolbar
    Give Exit  and save it
    Go to Components on the application toolbar
    Double Click on MENUS001
    Write function text which we want to add to menu item and save it with an request      number
    Double Click on Exit and write code there to display menu item in the screen
    Activate the include program and finally activate the project.
    Please reward points if helpful.

  • Add fields in the BW extraction structure

    Dear Experts:
         Today I have added a field "UEPOS" in the BW extraction struction MC11VA0ITM. UEPOS is the standard field of the SAP TABLE VBAP.  When I test the extraction of the new field the system did not move the corresponding value from VBAP to it.
          My question is, in addition to use CMOD enhancement, how can I make the new field have the right value?
    Best Regards
    David Wang
    Edited by: David Wang on Dec 26, 2008 4:51 PM

    Hey!
    I don't know exactly at the moment but isn't it possible to make the extension of this field over the LO Customizing Cockpit (LBWE). If, your field would be filled automatically.
    If you have done the extension with an append Ajeet is right if you don't find that field in you extraction result in RSA3. If you have the field but no value for this field maybe something in your CMOD exit is wrong.
    The easiest way is to debug your coding there. You can do this over RSA3, there is a check box for debugging.
    Try this out. If you not even have implemented this exit I think you can find a lot of help here in the forum. Maybe this helps you to check:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0af763b-066e-2910-a784-dc6731660f46
    But be aware that this example is for master data. Choose the right exit for transactional data.
    Best regards,
    Peter

  • SO10 - Add Fields in the Standard PAMA Text

    Dear All,
    Scenario:
    When an Employee is hired a mail is sent to the Manager with the new employee details.
    I have maintained a dynamic action for the same and the std text to be sent is maintained under the PAMA (Text ID) in SO10.
    Query :
    The text which is sent to the manger should consists of the following fileds :
    1.) Per Number (P0000 - PERNR)
    2.) Joining Date (P0000 - BEGDA)
    3.) Per Area      (PSPAR - WERKS)
    4.) Position       (PSPAR - PLANS)
    Can any any one pls help me, how to insert these fields into the Standard Text.
    Thanks in Advance
    Regards,
    Abhishek

    Hi Revathi,
    Thanks a lot for your reply.
    I have already seen the SAP Std text which you have mentioned i.e, "MAIL_FOR_I0001_A"
    But when you see that message all the varibales like (&P0001-PERNR&, &P0001-ENAME&, etc etc) are not in the normal font they are highlighted, and when i write a code with respect to my requirements it is not highligted and the message is shown without the field values in the mail.
    My Question was how to insert those variables into the template.
    I hope you can now easily answer my question.
    Regards,
    Abhishek

  • Regarding Mapping of fields for Repeated Segments in an IDoc

    Hello Experts,
    We have an Orders IDoc with segment E1EDK02 with Occurence 0..10.
    In this segment there are two fields QUALF & BELNR.
    We want to map a value (Yes or No) to 2 target fields based on the incoming values of QUALF & BELNR .
    Now the problem is that for the first occurence of segment E1EDK02 the mapping is working fine.
    But for the subsequent occurences of the segment wrong value is mapped to the target field.
    The context of both QUALF & BELNR is set to E1EDK02.
    Please help!
    Thanks in advance,
    Suraj

    Hello Suraj,
    The Source structure is of IDOC Orders05
    ORDERS05                     1..1
               IDOC                    1..1
                  Segment1
                  Segment2
                  E1EDK02          1..10
                        QUALF       0..1
                        BELNR       0..1
                  Segmentn
    Target Structure
    MT_ORDERDATA             1..1
                 TargetField1        0..1
                 TargetField2        0..1
                  ORDERITEM         0..unbounded

Maybe you are looking for

  • Gateway for Sybase or MS SQL - support for Timestamp

    Hi All, Is there any way to get Timestamp data out of Sybase or MS SQL Server? I thought this would be pretty straightforward, but after a short investigation I'm no longer that optimistic... The "Database Gateway for Sybase User's Guide" says in App

  • Client crashes when replying to more then 5 people

    Hi all, I have a strang issue with GroupWise: when a user clicks on the reply button and there are more then 5 recepients, the GroupWise client crashes. With less then 5 people are on the recepien list kt works fine. Environment: - XenDesktop VDI - C

  • Missing Category Icons in App Store

    Hello, When I open the App Store, there are only 2 icons visible under "Categories" - Entertainment and Books. The others are all blank. The category titles are all there, just no pictures. Everything works fine. Occasionally when I sync the phone to

  • Address Book Won't Launch in Leopard

    Suddenly, Address Book won't launch in Leopard. It worked after initial installation but now won't open. I have tried re-syncing with .Mac, re-starting. Address Book info (e-mail addresses) is still accurate and available in Mail. I also installed Le

  • Where exactly are InDesign icc print profiles?

    Hi, I'm in the process of calibrating a color printer we have down in our Copy Center. It's just a Xerox. I'm confused about where to put any resulting .icc profile files, though. When I look at all that are available in InDesign when creating a PDF