Merging Header, detail messages

hello all..
I'm receiving 2 files from this system.and im merging them using BPM, thats just fine.
The problem is that the first file acts like a header, and can have several records...like this...
_HEADER_
1,TEXTA
2,TEXTB
3,TEXTC
4,TEXTD
and the second one can also have several records, but it can be less than the first one.
_DETAIL_
3,*XXX*
4,*YYY*
I need to the messages in a way that they endup with a father child relationship like this.
HEADER
1,TEXTA
2,TEXTB
3,TEXTC
          *XXX*
4,TEXTD
         *YYY*
Any ideas on how to accomplish this???
Points will be rewarded of course.
Thanks in advance.

>
Swarup Sawant wrote:
> If you can share the exact structure of source and target side Messages then probably I could try to convert it in source code. But I will suggest to try the above logic.
>
> Thanks
> Swarup
Hi... i think that i got your point, and i will try to do something like that...
if you can give me a hand with the code it will be wellcome.
Bellow is the exact source and target structure.
<ns0:">
      <Header>
         <NumAsiento/>
         <Cuenta/>
         <Fecha2/>
         <Leyenda/>
         <DebeHaber/>
         <Importe/>
         <Cantidad/>
         <Dolares/>
         <vNumItem/>
      </Header>
      <Details>
         <NumAsiento/>
         <NumItem/>
         <CentroCosto/>
         <Porcentaje/>
      </Details>
</ns0:>
and this is the desired message.
<ns0:">
      <Header>
         <NumAsiento/>
         <Cuenta/>
         <Fecha2/>
         <Leyenda/>
         <DebeHaber/>
         <Importe/>
         <Cantidad/>
         <Dolares/>
         <vNumItem/>
         <Details>
            <NumAsiento/>
            <NumItem/>
            <CentroCosto/>
            <Porcentaje/>
         </Details>
      </Header>
</ns0:>
thanks again.

Similar Messages

  • Header Details of Actionable Message

    Hi,
    Can it possible to remove actionable message Header details while displaying message details?
    Madhu

    Venkata,
    Please let us know if you still need help w/ this post.
    Thank you.

  • Issue in displaying header details in ALV report

    Hi,
    I have used slis_t_listheader and REUSE_ALV_COMMENTARY_WRITE to display the header details in ALV report.I want the details to be displayed as below.
    Requester : ----------------------                                                                               Page: 1
    Program: -----------------------                                                                                Date:---------
                                                                     Title of Report
    But when I use the structure slis_t_listheader to display the header details,all the fields are coming one below the other.
    How can I get the fields as shown in the above format
    Edited by: Abaper12345 on Jun 25, 2009 7:54 AM

    Hi,
    Go through following code... its showing the data exactly the way you want....
    REPORT  TEST3.
    TYPE-POOLS:slis.
    TABLES:MARA.
    *Type Declaration
    TYPES:BEGIN OF t_mara,
          matnr TYPE mara-matnr,
          ersda TYPE mara-ersda,
          ernam TYPE mara-ernam,
          END OF t_mara.
    *Internal Table
    data:it_mara type standard table of t_mara.
    *Work Area
    data:wa_mara type t_mara.
    DATA:i_repid TYPE sy-repid .
    i_repid = sy-repid.
    *Declaration for field catalog
    DATA : fcat TYPE slis_t_fieldcat_alv,
           wa_fcat TYPE slis_fieldcat_alv.
    *Declaration for Layout
    data : WA_LAYOUT type SLIS_LAYOUT_ALV.
    *Initializing ColumnWidth_Optimize For Layout
      WA_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    START-OF-SELECTION
    START-OF-SELECTION.
    *Fetching data into internal tables
      PERFORM get_data.
    *Buil Fieldcatalog
      PERFORM build_fcat.
    *Display ALV Report
      PERFORM alv_display.
    *Build Fieldcat
    FORM build_fcat .
      wa_fcat-tabname = 'IT_MARA'.
      wa_fcat-fieldname = 'MATNR'.
      wa_fcat-inttype = 'C'.
      wa_fcat-seltext_m = 'Material Number'.
      wa_fcat-outputlen = 25.
      wa_fcat-col_pos = 1.
      APPEND wa_fcat TO fcat.
      CLEAR wa_fcat.
      wa_fcat-tabname = 'IT_MARA'.
      wa_fcat-fieldname = 'ERSDA'.
      wa_fcat-inttype = 'C'.
      wa_fcat-seltext_m = 'Date'.
      wa_fcat-outputlen = 25.
      wa_fcat-col_pos = 1.
      APPEND wa_fcat TO fcat.
      CLEAR wa_fcat.
      wa_fcat-tabname = 'IT_MARA'.
      wa_fcat-fieldname = 'ERNAM'.
      wa_fcat-inttype = 'C'.
      wa_fcat-seltext_m = 'User'.
      wa_fcat-outputlen = 25.
      wa_fcat-col_pos = 1.
      APPEND wa_fcat TO fcat.
      CLEAR wa_fcat.
      endform.
    *&      Form  GET_DATA
          text
    -->  p1        text
    <--  p2        text
    form GET_DATA .
    select matnr ersda ernam from mara into table it_mara.
    endform.                    " GET_DATA
    *&      Form  ALV_DISPLAY
          text
    -->  p1        text
    <--  p2        text
    form ALV_DISPLAY .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       I_CALLBACK_PROGRAM                = i_repid
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
       I_CALLBACK_HTML_TOP_OF_PAGE       = 'HTML_TOP_OF_PAGE'
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
       IT_FIELDCAT                       = fcat
      TABLES
        t_outtab                          = it_mara
    EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " ALV_DISPLAY
    *&      Form  html_top_of_page " I_CALLBACK_HTML_TOP_OF_PAGE  "
    FORM html_top_of_page USING document TYPE REF TO cl_dd_document.
    CALL METHOD document->add_text
      EXPORTING
        text          = 'Program'
        sap_color     = document->list_group
        sap_fontstyle = document->standard
       sap_emphasis  = document->strong.
    CALL METHOD document->new_line
      EXPORTING
        repeat = 1
    CALL METHOD document->add_text
      EXPORTING
        text          = 'Requester'
        sap_color     = document->list_group
        sap_fontstyle = document->standard
       sap_emphasis  = document->strong.
    CALL METHOD document->new_line
      EXPORTING
        repeat = 1
    CALL METHOD document->add_gap
      EXPORTING
         width      = 125
    CALL METHOD document->add_text
      EXPORTING
        text          = 'This Is Test Data'
        sap_color     = document->list_group
       sap_fontsize  = document->LARGE
       sap_fontstyle = document->standard
       sap_emphasis  = document->strong.
    ENDFORM.                    "HTML_TOP_OF_PAGE
    Thanks & Regards
    Ashu SIngh

  • IHC errors valid clearing partner not found and no header details found while idoc creation after f110

    IHC errors :valid clearing partner not found and no header details found while idoc creation after f110
    Please let me know where the config is missing for ihc automatic payment program.in we02 status is not 53.
    Please help

    Hi
    Please share the error message in the IDOC.
    If the error message is IHC204 "No valid clearing partner was found", it may be due to the missing correct configuration in Set Up Creation of Payment Requests for Inbound IDoc in FI, which links the clearing partner, ALE logical system partner type and IHC account number.
    Cheers
    taro

  • Problem in mapping xml data with header details from IPM 11g to BPEL

    Hi,
    I want to map xml data as a supporting content from IPM application to BPEL.
    My xml is
    <?xml version="1.0" encoding="utf-8"?>
    <DocumentFile xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/Document.xsd">
    <Document DocumentType="Invoice">
    <DocumentImage>
    <Filename>\\10.205.0.209\Img\10883212.TIF</Filename>
    </DocumentImage>
    </DocumentFile>
    If I remove header details from root element <DocumentFile> i.e. modified xml is
    <DocumentFile>
    <Document DocumentType="Invoice">
    <DocumentImage>
    <Filename>\\10.205.0.209\Img\10883212.TIF</Filename>
    </DocumentImage>
    </DocumentFile>
    it works fine but i need to pass header details as well.
    Please suggest.
    Thanks,
    Priya

    Hi Naveen,
    In sxmb_moni the content transmitted to the adapter(RFC)is as follows
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns:ZRFID_EQUIP xmlns:ns="urn:sap-com:document:sap:rfc:functions">
    - <RECORDS>
    - <item>
      <FLOC>f1-01-01</FLOC>
      <RFID_NO>I006</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-02</FLOC>
      <RFID_NO>I002</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-03</FLOC>
      <RFID_NO>I003</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-04</FLOC>
      <RFID_NO>I004</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-05</FLOC>
      <RFID_NO>I005</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-06</FLOC>
      <RFID_NO>I001</RFID_NO>
      </item>
      </RECORDS>
      </ns:ZRFID_EQUIP>
    At r/3 side the field floc and rfid_no gets mapped to floc which is of char30
    eg floc=f1-01-01I006
       rfid_no=

  • In BDC VA02 i am uploading header details in BILLING PLAN tab.

    Hi Friends,
    In BDC VA02 i am uploading header details in BILLING PLAN tab.
    I am having sales order no in flat file.
    While i am clicking BILLING PLAN tab its showing 1 POPUP screen for Milestobe For billing plan (INPUT AS NETWORK NO).
    Some sales order nos this popup is not coming.
    How to code this bdc?

    CLOSED

  • ALV list Header details scattered

    Hi All,
    I have a ALV-LIST report output but the header details displayed are scattered in output. Can you suggest how to align all deatils properly aligned.

    Hi again,
    1. first of all how are u writing / displaying
       the alv header ?
    2. using documentary write ?
       then also, u can use one variable of
      length 100 and use this concept.
    3. If u are using top_of_page
      event,
      in this event, WE CAN use WRITE.
      (i have used it, and it
      works fantastic)
                  (not in case of alv grid)
    4. My point is, what ever u are using,
       use on variable of length 100.
      WRITE value INTO variable.
      using offset
      and then proceed further.
    regards,
    amit m.

  • How to get the Change Document Header details for a given date

    Hi All,
    Can anyone help me on this Change Document Header details(CDHDR).
    Better way to pull the information of Change Document Header details(CDHDR). No Index is maintained for the tables.
    So please suggest better Optimising techniques to get the Change Document Header details(CDHDR).
    Using this Function module : CHANGEDOCUMENT_READ_HEADERS how to import the DATE_OF_CHANGE.
    Thanks in advance
    Regards
    Chakri

    HI,
    Go through the documenattion of the FM u can get the details.. and also where used list
    Regards,
    Nagaraj

  • JDeveloper compile error without detailed message

    Hi all.
    When compiling my application i get compiler error on one EO without detailed message. When i check and validate source in xml everything seems to be ok. Are there any settings to further investigate the problem. I'm using jDeveloper 11.1.2.0 developing ADF application.
    Suggestions welcome.
    Edited by: user5866800 on 20.12.2011 13:49

    If i open xml file, everything is colored with green.i cant comment on this statement. because am not using release2.
    did you change anything .xml which you mentioned.?
    how did you generated EntityImpl for the EO?

  • Fixed width file outgoing with header,detail and trailer in one map

    we have a scenario where in we have to create an output file. the file is fixed width with three different kinds of records namely header, details and trailer. if the specification of the metadata of the file is specified how will we incorporate the creation of the file in one map since the map produces only one call to UTL_FILE and writes it.
    there is a work around in a crude way where in we can define the file as a CSV and pass everything in an appanded string in one column. but i wanted to know how we can get the three logical records in one map..
    thanks
    kamal

    The problem is not with generating the records.. i mean header , detail and trailer.
    it is how we put them into a fixed width sampled file. if we look at the code generated we will see only one call being made to generate the file.

  • Table name for the AMOUNT field in header details of costomer invoice

    hi experts,
                    I need the table name for the field AMOUNT(wrbtr) which is in header details in fb70 tcode .I have checked many tables like bseg bsid,  there its showing the amount but at item level.

    Hi,
    the table behind structure INVFO is RBKP (Header level).
    For item level you have table RSEG.
    These tables refer to MM.
    Once the MM documents are completed and you post the corresponding invoice RBKP data goes to BKPF and RSEG data goes to  BSEG data.
    The relattion between MM(RBKP/RSEG) and FI(BKPF/BSEG) documents is in field BKPF-AWKEY. This field usually contains (RBKP-BELNRRBKP-GJAHR that is MM documentMM year).
    e.g. (BKPF-AWKEY = 51056024412009)
    Best regards.

  • Regarding Updating Shipment Header Details in VT02N tcode

    Hi all,
    I have created a dialog program, inwhich iam populating shipment related details.
    1st Screen: Selection screen fields:
    billing Doc
    Billing date
    2nd Screen: Based on Billing Document number and date, i have to fetch Shipment details using Table Control like:
    shipment number,        Output only
    Forwarding Agent,      input/Output both -
    editable
    Shipment start Date,    input/Output both -
    editable
    Container id.                input/Output both -
    editable
    and i have created a button as "Update VT02N" on second screen.
    When we choose Columns in table control and click on "Update VT02N", then it should trigger VT02N transaction and update the shipment details with following fields:
    1. Forwarding agent
    2. Container id
    3. Shipment start Date.
    So i waht to know any BAPI available to update Shipment Header details in VT02N tcode.
    I have tried: BAPI_SHIPMENT_CHANGE -
    NOT WORKING PROPERLY.
                        SD_SHIPMENT_SAVE -
    NOT  WORKING.
    IF ANY BODY HAS SOME SOLUTION, PL SUGGEST WITH STEPS.
    HELPFUL ANSWERS -
    BETTER POINTS...
    Regards,
    Vamsy

    Hi,
    Have you called the BAPI_TRANSACTION_COMMIT after executing BAPI_SHIPMENT_CHANGE , even then if it is not working
    you can check the FM  SD_SHIPMENT_HEADER_CHANGE.
    Thanks.

  • PO header details

    Hi,
    Is there any report of PO header details which gives the below details?
    1. PO
    2. PO creator(Planner)
    3. Buyer
    4. Customer Data in header details ( In our organisation we put email ID which should be available in the report).
    Regards,
    Rajaneesh

    Hi Rajaneesh
    The table EKKO contains the following fields (SE16 -> EKKO)
    EBELN                             Purchasing document
    AEDAT                             Created on
    ERNAM                             Created by
    LIFNR                               Vendor
    IHREZ                             Your Reference
    VERKF                             Salesperson
    LLIEF                             Supplying Vendor
    KUNNR                             Customer
    etc..
    I hope this can help

  • Portal Header details to be added

    Hi,
    In the SAP GUI, in a report program, I'm creating a URL by calling the function module CALL_BROWSER. I'm calling the report program in Portals. In the report program, when I call the URL, the URL should appear with Portal header details.
    When the call is made from portals, is it possible to get the Portal Header details in the BSP page which I'm calling from the Report program.
    Thanks & Regards
    G.Raja

    Hi!
    With EP60 you should use the Portal URL instead of the backend url.
    The Portal URL points to the Portal iView with a URL like this: http://<portalserver>:<port>/irj/portal/?NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fyour.folder%2Fyour.sub.folder%2Fcom.your.iview
    Hope this helps.
    Regards,
    Volker

  • Update Function module - How to provide detailed messages in case of errors

    Hello everyone,
    I am using update function modules. When there is a error, the Message i provide goes to inbox and i get a express message.
    I am looking for ways to provide detailed messages (multiple lines) and i also need to add the error message returned by the BAPI
    Providing a long text for the MESSAGE also does not work.
    How can i achieve this ?
    Thanks

    Hi,
    The express message is because the update functions executes in background.
    You can view the detail messages of updates [Error Information from Update Management|http://help.sap.com/saphelp_nw04/helpdata/en/e5/de874735cd11d3acb00000e83539c3/content.htm]
    For your requirement have alook at [Application Log and Application-Specific Error Tables|http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/content.htm]
    There are some functions avaibale for this and is mentioned in the document.
    Keshav

Maybe you are looking for