MIR7 - Transport RSEG fields (Append Structure) to BSEG

Dear enhancers
I would like to ask you haw could I approach such a requirement:
The RSEG table is appended 2 more ZZ_ fields. Let's say it's ZZ_A and ZZ_B fields.
Those fields are populated by the MIR7 transaction. I've got a Z-tab added in line items section. It is used via MRM_INVOICE_POST BAdI implementation. User may specify ZZ_A and ZZ_B fields for each line item of logistisc invoice.
Now my task is:
When posting document from MIR7 transaction transport fields ZZ_A and ZZ_B in such way:
RSEG-ZZ_A -> BSEG-XREF1
RSEG-ZZ_B -> BSEG-XREF2
And my question is how should I approch this task?
I can see there are several ENHANCEMENT-POINTS in MRM_INVOICE_POST FModule. But my experirnce with enhancements is a bit poor. How can I know which enhencement point could I potentially use? Am I able to find out somehow that for example
"Enhancement point A is used for transport fields blablabla ..." some kind of enhancement description.
I will be very thankful for your suggestions. Regards. P.

Hi,
1.- chek this thread:
here  The specified item was not found. says the following:
Now go to MRM_INVOICE_POST function module, just before the call of function module CKMV_AC_DOCUMENT_CREATE, I have created an enhancement spot and changed the XACCIT-XREF1 with RBKPV-custom field value.
2.- Another possibility
although it is not an enhancement-point (it´s BADI AC_DOCUMENT) maybe this could be useful to you:
http://blog.csdn.net/xyfchris/archive/2007/10/04/1811359.aspx
Best regards.
Edited by: Pablo Casamayor on Dec 9, 2009 1:32 PM

Similar Messages

  • Error while appending structure into BSEG Table

    We had appended BSEG table with a ZSTRUCTURE to enable Custom field in MIRO. Subsequently there was a change required in the appended field. After Changing the field there was adjustment required to activate the appended table . However due to slow system performance during that time the Adjustment SE14 timed out. And created inconsistency in BSEG table.
    If I Do the Table adjustment now it is showing below error.
    We tried to delete the append structure also but the structure is not appearing in the append structure list to delete.
    Even if we try deleting the Z structure from se11 it is throwing below error.
    Any one could help me out to resolve this..

    hi Ramesh,
    Please First Check if the Database version and disctionary version are in sync.
    Also, it could be the case that you would have enhanced an already existing Append stucture. which might be being used in other BKPF dependent tables.
    Please check

  • Purpose of Append Structure in DDIC(SE11)

    What is the purpose of Append Structure in DDIC(SE11)-Table?How to use this?
    Title by: Alvaro Tejada Galindo on Jan 23, 2008 6:11 PM

    Append structures are like user exits provided by SAP to enhance the Standard tables. It behaves like include structure only, but this append structure is taken care in the SAP version upgrage process, automatically. The name of append structure starts with 'Z' namespace..SAP by default proposes the append structure name with the table name prefixed with 'Z'.
    It is always recommended to modiy or append the Standard tables using append structure.
    It is the standard provided for SAP standard table enhancement.
    APPEND STRUCTURE->
    Append structures are used for enhancements that are not included in the standard. This includes special developments, country versions and adding customer fields to any tables or structures.
    An append structure is a structure that is assigned to exactly one table or structure. There can be more than one append structure for a table or structure.
    The following enhancements can be made to a table or structure TAB with an append structure:
    · Insert new fields in TAB,
    · Define foreign keys for fields of TAB that already exist,
    · Attach search helps to fields of TAB that already exist,
    These enhancements are part of the append structure, i.e. they must always be changed and transported with the append structure.
    When a table or structure is activated, all the append structures of the table are searched and the fields of these append structures are added to the table or structure. Foreign keys and search help attachments added using the append structure are also added to the table. If an append structure is created or changed, the table or structure assigned to it is also adjusted to these changes when the append structure is activated.
    Since the order of the fields in the ABAP Dictionary can differ from the order of the fields on the database, adding append structures or inserting fields in such append structures does not result in a table conversion.
    The customer creates append structures in the customer namespace. The append structure is thus protected against overwriting during an upgrade. The fields in the append structure should also reside in the customer namespace, that is the field names should begin with ZZ or YY. This prevents name conflicts with fields inserted in the table by SAP.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb61446011d189700000e8322d00/content.htm
    INCLUDE->
    http://www.sapdb.org/7.4/htmhelp/f2/b1219d1b9646b0ae248a7a5a95a33e/content.htm

  • Appending structures to the tables

    Hi experts,
    Why we are appending sturctures to the tables?
    can any one tell me the main differences between the APPEND and INCLUDE structures
    in Datadictionary.
    Thanks in Advance.

    Hi Ankita,
    Customizing Includes
    A Customizing include is a structure that satisfies a special naming convention. The name of a Customizing include begins with u2018CI_u2019 and the include is in the customer namespace.
    If enhancements are already planned in the R/3 standard using customer-specific fields, such Customizing includes are included. in the corresponding standard table or standard structure. The Customizing include (that is the definition of the structure itself) is usually first created in the customer system and filled with fields by special Customizing transactions.
    Customers can thus enhance tables and structures of the R/3 standard system without themselves having to modify the table and structure definitions. This means that these enhancements will not be lost when upgrading. If a table or structure of the R/3 standard system is enhanced with customer fields using a Customizing include, these customer fields are automatically inserted in the new delivered table or structure definition during an upgrade.
    If you create a Customizing include for a table or structure, only those enhancements are allowed that are consistent with the enhancement category of the enhanced table or structure. For more information, see Structure Enhancements.
    Customers can but need not create a Customizing include and fill it with fields. If there is no Customizing include, there is no error message when the table or structure including it is activated.
    A Customizing include can be contained in several tables or structures, so that they remain consistent when the include is modified.
    Append Structures
    Append structures are used for enhancements that are not included in the standard. This includes special developments, country versions and adding customer fields to any tables or structures.
    An append structure is a structure that is assigned to exactly one table or structure. There can be more than one append structure for a table or structure.
    The following enhancements can be made to a table or structure TAB with an append structure:
    Insert new fields in TAB,
    Define foreign keys for fields of TAB that already exist,
    Attach search helps to fields of TAB that already exist,
    These enhancements are part of the append structure, i.e. they must always be changed and transported with the append structure.
    When a table or structure is activated, all the append structures of the table are searched and the fields of these append structures are added to the table or structure. Foreign keys and search help attachments added using the append structure are also added to the table. If an append structure is created or changed, the table or structure assigned to it is also adjusted to these changes when the append structure is activated.
    Since the order of the fields in the ABAP Dictionary can differ from the order of the fields on the database, adding append structures or inserting fields in such append structures does not result in a table conversion.
    The customer creates append structures in the customer namespace. The append structure is thus protected against overwriting during an upgrade. The fields in the append structure should also reside in the customer namespace, that is the field names should begin with ZZ or YY. This prevents name conflicts with fields inserted in the table by SAP.
    Reward if found helpful.
    Anirban Bhattacharjee

  • Difference between include structure and Append structure

    Could you please tell me
    I have bsis table and it contains append structure  in 4.7 SAP System.
    my program in 4.7 system contains internal table which used same structure of bsis table ( which contains additonal field in its append structure ).
    I need to have same table structure in 4.6 C because I am copying the same program into 4.6 system.
    As I could not append structure to bsis table in 4.6C SAP system,
    instead of that shall I add the field or Shall include the structure to run .
    What is the difference between Include structure and Append structure ( I forgot )
    How to achieve this please help me ?

    Hi ,
      As you know append structure can be used only once in table ,that to at last of all entries,
    Append structures are used for enhancements that are not included in the standard. This includes special developments, country versions and adding customer fields to any tables or structures.
    An append structure is a structure that is assigned to exactly one table or structure. There can be more than one append structure for a table or structure.
    The following enhancements can be made to a table or structure TAB with an append structure:
    Insert new fields in TAB,
    Define foreign keys for fields of TAB that already exist,
    Attach search helps to fields of TAB that already exist,
    These enhancements are part of the append structure, i.e. they must always be changed and transported with the append structure.
    When a table or structure is activated, all the append structures of the table are searched and the fields of these append structures are added to the table or structure. Foreign keys and search help attachments added using the append structure are also added to the table. If an append structure is created or changed, the table or structure assigned to it is also adjusted to these changes when the append structure is activated.
    Since the order of the fields in the ABAP Dictionary can differ from the order of the fields on the database, adding append structures or inserting fields in such append structures does not result in a table conversion.
    The customer creates append structures in the customer namespace. The append structure is thus protected against overwriting during an upgrade. The fields in the append structure should also reside in the customer namespace, that is the field names should begin with ZZ or YY. This prevents name conflicts with fields inserted in the table by SAP.
    The new versions of the standard tables are imported after an upgrade, and the fields, foreign key definitions and search help attachments contained in the append structures are added to the new standard tables at activation.
    A standard table contains the fields Field 1, Field 2 and Field 3. An append structure containing the fields ZZA and ZZB is defined for this table. After activating the table, the corresponding database table contains fields Field 1, Field 2, Field 3, ZZA and ZZB.
    Further Remarks:
    An append structure can only be assigned to exactly one table or structure. If you want to append the same fields to several tables or structures, you can store these fields in an include structure. In this case you must create an append structure for each of these tables or structures and include the include structure there.
    Adding an append structure to an SAP standard table is supported by the  Modification Assistant.
    If you want to insert a field that is to be delivered with the R/3 standard in the next Release in the customer system in advance, you must include it in the table itself as a repair. If you include such a field in an append structure for the table, it will occur twice when the new standard table is imported. This will result in an activation error.
    No append structures may be added to tables with long fields (data types VARC, LCHR or LRAW). This is because a long field must always be the last field in the table. However, structures with long fields can be enhanced with append structures.
    If a table or structure with an append structure is copied, the fields of the append structure become fields of the target table. Foreign key definitions and search help attachments appended with the append structure are copied to the target table.
    Foreign keys for the appended fields must be defined within the append structure. Fields of the table or structure assigned to the append structure may be defined when assigning the key field and foreign key field.
    Indexes on the appended fields must be defined in the original table.
    A table or structure TAB can only be enhanced with new foreign keys or search help attachments using an append structure. You therefore cannot change an existing foreign key definition or search help attachment for a field of TAB with the append structure.
    Thanks
    Manju

  • Append sturcture in BSEG - cluster table

    Hi
    is it possible to append structure in BSEG table.
    it is R/3 4.7 system.
    I have seen that it is possible to append structure  in ECC 6.
    Regards
    SAP student

    Try appending locally, using append structure.

  • BI : Datasource 0FI_GL_4 , Fields in Append structure

    Hi Experts,
    I have done extraction for 0FI_GL_4 which contains standard fields. I have appended the structure in 0FI_GL_4 and added the below two fields with description:
    USNAME : User Name:
    UBHKT  : G/L Account Number for Our Bank Account / Bank Sub-Account.
    I am going to use customer exit Exit_SAPLRSAP_001 and created Project in CMOD. I need to write the code in it, but I wanted to know as to from which table should I populate the data for fields USNAME & UBHKT. Kindly advise.
    is there any single table from which i can fetch both the fields ?? Kindly advise.
    Thanks & regards,
    M.S
    Edited by: M.S on Feb 11, 2010 12:01 PM

    I would advise you not to use cmod for the fi_gl_4 extractor - there is a std BW user exit provided called BTE 5021 inside the extractor already for that purpose - have a look at OSS 410799 for info on how to use it
    However - for the usnam you do not need to cmod or BTE anything - just put them exactly as the are in the user append structure  ci_bsisfor the datasource - do not prefix them with a ZZ or a Y as you would normally do
    Those fields exist on bkpf
    The extractor does  a move corresponding on and will automatically copy the field contents with no coding at all
    I havent tried it for some time with bkpf records so it may or not work - if it doesnt use the BTE 5021 to read the data
    With regards to the UBHKT I am slightly confused - this will always be the saknr on the bseg record (which you already have in BW on the extractor (0glaccount) for those postings to gl bank accounts.. we will need more functiona linput as to why they want it and in what circumstance

  • EEWB - In BP, adding a new field regenerates append structure

    Hello,
    After adding or deleting a field using EEWB, I have the following issues -
    1. The new append structure that was created for BUT000 gets regenerated
    2. Field labels get overwritten by field names
    3. The order in which the fields were seen on the screen gets altered
    Is this a known behavior of EEWB?  How to alleviate this?
    Thanks!

    Thanks for your input Satish!
    I searched using the application component suggested and the keyword and it was not very useful. 
    Some more details -
    I created some new fields using EEWB.  When you go to transaction BP, the standard tabs are displayed - ex - address, bank data, notes, etc.  But now there is a new tab - Customer Data that has my custom fields on it. 
    In the backend, SAP has created an extend structure for table BUT000 that has these fields in it. 
    When I go to this extend structure, my fields are there with a ZZ prefix - Ex: ZZFIELD1, ZZFIELD2, etc.  If you go to the details of these fields in data dict - transaction SE11, the Field labels - Short, Medium, Long and Heading are the same as the field names.  Ex: in the first case, the four field labels will be - ZZFIELD1.  I then changed the field labels to something meaningful - Ex: Renter name and rental date.  After generating the structure, these labels are then displayed on the Customer data tab.  So far so good.
    However if I add a new field - ZZFIELD3, then all the label names that I had given (Ex: Renter name and rental date) get erased and replaced by the fieldnames again. 
    Also the order in which the fields were diplayed gets altered.  Ex: earlier the Customer data screen was showing - ZZFIELD1, ZZFIELD2.  Now it shows - ZZFIELD3, ZZFIELD2, ZZFIELD1. 
    I hope I have explained this issue.

  • Issues with a Z field in an append structure of VBAP when calling BAPI

    We have added a Z field on table VBAP with an append structure. It is a flag field. We want to change its value with the BAPI BAPI_SALESORDER_CHANGE. We have also created the append structure in API structures
    THe return message of the bapi gives us a success message for the modification. But when we go to the se16 we still see the field as blank, not with the X suposed to be there.
    We are succesfully calling the BAPI_TRANSACTION_COMMIT.
    What can cause us this problem? What can we do to solve it??
    Thank you!
    Artur.

    Hi Artur,
    this blog could help you:
    [Updating custom fields on VBAP and VBAK using BAPI_SALESORDER_CREATEFROMDAT2|/people/kevin.wilson2/blog/2009/09/30/updating-custom-fields-on-vbap-and-vbak-using-bapisalesordercreatefromdat2]
    Regards,
    Andrea

  • Modify fields in Append Structure

    Hi there,
    I am driving crazy about append structures. We appended a few fields to KNA1 - e.g. a field that keeps a version number (every time a record changes we want to increment the version starting with 1 at creation time).
    We found a lot of material about how to append structures and actually, it's fairly simple to extend KNA1 with append structures. But HOW can someone update those fields?
    We tried user exit EXIT_SAPLVV01_001 and BAdI IF_EX_CUSTOMER_ADD_DATA-SAVE_DATA to populate those fields at commit of customer data. In both scenarios, we don't have CHANGING or EXPORTING parameters. So, we tried to update the table directly, e.g.
    method IF_EX_CUSTOMER_ADD_DATA~SAVE_DATA .
    DATA: w_kna1 type kna1.
    select single *
      from kna1                            " Customer master table
      into w_kna1
      where kunnr = I_KUNNR.
    w_kna1-sap_version = w_kna1-sap_version + 10.
    update kna1 from w_kna1.
    break-point.
    endmethod.
    Now, when we execute VD02 the program stops at the given break-point and we see the data changed in KNA1. But the record gets updated by the SAP program SAPMF02D (underlying program of VD02), of course as we cannot manipulate the KNA1 record in the internal table of SAPMF02D.
    Is there any way to store information into append structures at save time (within the same transaction) without customizing standard programs?
    Many thanks for your help

    Hi Maic,
    Normally for append structures to standard tables, code is written in user exits where it is mandatory to change existing SAP objects (user exits exist are provided by SAP and you need change key).
    For additional functionality to the existing flow of transaction, we use BADIs and customer exits (through CMOD).
    Your requirement suits the first point above.
    Annyways, try using method GET_DATA in badi CUSTOMER_ADD_DATA_CS. This has changing parameter for KNA1.
    Ramesh.

  • Lost Append structure on adding standard field in exctractor 2LIS_13_VDITM

    Hi,
    In 2LIS_13_VDITM i have appended structure. Now i required to pull in another standard field from from the extractor from LBWE maintenance.
    One doing that and activating ii somehow lost the custom appended structure from the extract structure.
    I came to know this while replicating it into BW where it gave error about missing fields from the extractors.
    Have anyone faced similar issue. If yes can you please let me know why this happened and how can i get those fields back in to the structure.
    One way i know is by comparing it with the Q system i can manually append that structure again.
    Please let me know.
    Thanks a lot for responding.
    Ritesh

    Hello Ritesh,
    Are you adding the new field through append structure of the existing one or new one (Only one append structure is possible).
    If in the same append structure , then check whether that structure is active and consistent.
    If everything is ok, then check the hide option in the datasource (RSA6) whether its unchecked.
    Hope it helps
    Thanks
    Chandran

  • Field in Append Structure for Generic Datasource

    Hi:
    I created a Generic Datasource based on a view. After that, I created an Append to the Extraction Structure to include a field not originally on the view (and not related to any table in the view) to be calculated using customer exit in CMOD.
    At the moment of activating the Datasource, this new field doesn't appear in the selection window but in RSA6 it shows there with options "Hide Field" and "Field only Known in Customer Exit" checked.
    Again, I try to edit the Datasource but this field is not in the list to change those two checks.
    Any idea?
    Thanks.
    Luis Sales

    Dear Luis Sales,
    I was having the same requirement. I tried it hard for removing the tick mark on the HIDE option. But it was not working at all.
    I tried these steps.
    1. From RSO2 went to Extract structure. Edit Mode-> append structure.
    2. Appended required fields and activated both append structure and extract structure.
    3. Back to datasource and Save it.
    4. Came out of transaction RSO2. ( latter Logged of system )
    5. after re login - RSA6 selected given Datasource and change. there I could change the selection of HIDE field. ( Even earlier I was not able to do that)
    May be these steps help you out.

  • Update field of an Append Structure

    Hi! I need help!!
    I made an extension using Append Structure  (I Added a owner field) of a standart table ( EBAN ) about "purchase requisition".
    I want to update this field when a new purcahse requisitions is created , using the bapi BAPI_REQUISITION_CREATE.
    anynone kown how to do it?

    hi Ariel,
    use BAdI <b>ME_PROCESS_REQ_CUST</b> and choose appropriate method
    to polulate the structure (BAPIPAREX) with the newly updated field, before PR is updated.
    Hope this helps,
    Sajan Joseph.

  • VBAP append structure field on Overview screen 4900

    Hi,
    I have created an append structure on VBAP with a ZZ field and have included this field on the table control in the overview (sub)screen 4900 in SAPMV45A. 
    I have put the field in a number of the PAI CHAIN statements, but whenever I enter a value in the field and hit Enter, the value disappears.
    Does anyone have a definitive list of places that I need to change code to stop the field contents dissappearing?
    Many thanks,
    Andrew

    Hi - I have the issue of presenting ZZ fields from VBAP in the Item overview screen 4900. From your conversation I cannot see any solution to your similar issue. Did you do modifcations or is there a SAP way to include ZZ fileds in the 4900 screen?
    Please respond.
    Best regards Steen Pedersen

  • Update VBRK append structure field

    Hi,
    I have added append structure field in VBRK.
    While doing billing cancellation, i have to update a value in this field for the billing number.
    I have coded this in a user exit.
    I ve called another program and written coding for updation. DB_UPDATE_TABLE FM  used for updation.
    The value is getting updated in the table. But once it came to the user exit, the value of the field is gone from the table.
    What could cause this issue?
    Thanks in advance.
    Ezhil

    Hi,
    1. Please check in the program that are you clearing the internal table any where ?
    2. If you are using the submit statement you can use with return statement .
    3. Other Export that internal table to memory inside the program and import that same internal table in the  user exit.
    Hope this might helps you to solve your problem.
    With Regards,
    Sumodh.P

Maybe you are looking for