IDOC posting for distinct PO records(as header) and article(line item)

Hi! All
It would give me your valuable suggestions and help me with developing the mapping below:
I have a file to IDOC scenario, which has about 10 fields and two of these fields are PO and article no.
I need to post IDOC for each distinct PO number(header) and then article number under these PO should post as line items.For exmaple:
consider sample records having the following PO and artcile number:
PO|article_no
123456|abc123
123456|abc456
123456|abc678                                    
These 3 records should post only as one IDOC, having the header PO 123456 and line items(abc123,abc456,abc678)
On the target side, PO is mapped to the parent segment and artcile is in the child segment.
Thank you for all the help!!
Regards,
Patrick.

Patric,
I think solution is simple...while creating recordset from file create recordset for every occurance of Header..
I think your File structure would be something like this in FCC..
header,1,Line_Item,*...hence it wull create recordset for every occurance of header and you can map Line Items to idoc line items...Also specify recordset per messages = *.
I have done something like this...
Let me know if you need mode details.
Nilesh

Similar Messages

  • No IDOC's for the change record in child and CUA systems.

    Hi,
    The user profile was modified and  assigned roles and profiles on so and so date by someone as it is showing in the change record of the user in the child system with a batch user id.
    I have search the IDOC's with respective of the child system, date & time but I didnu2019t find any IDOC with respective of the above criteria.
    So kindly help me out is there a way I can find the information as who changed the user profile via CUA system....
    Thanks for your help...
    Thanks & Regards
    Sukumar. V

    Release:
    700   Master & Child
    SP level
    Can i know for which area you need it...
    BASIS
    0015   Master
    0013   Child
    Netweaver
    0016   Master
    0015   Child..
    Please let me know if you need any further info....
    SV

  • Error: The sort order specified for distinct count records is incorrect

    When processing a measure group with a distinct count measure in it, i get the following error:
    "The sort order specified for distinct count records is incorrect."
    I have no idea what this means - any ideas?

    I had the same problem and your fix worked.  In more detail, the problematic field was contract_no.  I added a named calculation to the table in the Data Source View with the formula CHECKSUM(contract_no).  Then I created the distinct count measure on that named calculation.  And, lo and behold, the errors disappeared! 
    Thank you to Frank.
     - CindyCindy P Hoskey

  • How to create a new field for Q3 - QM notification in Header and item level

    Dear All,
    l
               Sub: How to create a new field for Q3 - QM notification in Header and item level
    Ref. the link --> Quality Notification
    We want to create a new field in header level and item level.
    As per the thread the solution is given below.
    In the IMG Config: Quality Management -> Quality Notification -> Notification Types -> Define screen areas for notification types Then Choose 'Define screen areas' Then Click on 'New entries' button Now, select the relevant Notification Type and click in 'Enter'. Select the 'Iten Cases' register and remember to setup the Tabstrip Header, Icon, etc. Set the 'Tabstrip active' flag. Then Save.
    Quality Notification -> Notification Types -> Define screen areas for notification types
    WE ARE UNABLE TO FIND IN CUSTOMIZATION PATH --> DEFINE SCREEN AREAS FOR NOTIFICATION TYPES.
    Please help.
    Question No. 2 :
    THE REQUIREMENT IS GIVEN BELOW.
    We want to hide the field in Q3 - QM Notification
    In header --> Reference tab --> Item (sub heading) --> "DEFECT LOCATION" FIELD TO BE ELIMINATED (HIDE)
    Ref the link --> Quality notification
    The solutiion is given below.
    Hi Sami,
    We can hide the collumns using the Transaction OQM1 and Program Name SAPLIQS0.
    Lets say Defect location need to be hidden, the field TXTCDOT need to have the radio button HIDE.
    Hope this will suffice your requirement.
    Kindly ask me if you need any other details.
    Thanks & Regards,
    Srinivas.D
    Hi Sami,
    We can hide the collumns using the Transaction OQM1 and Program Name SAPLIQS0.
    Lets say Defect location need to be hidden, the field TXTCDOT need to have the radio button HIDE.
    Hope this will suffice your requirement.
    Kindly ask me if you need any other details.
    Thanks & Regards,
    Srinivas.D
    By double clicking the "DEFECTIVE QUANTITY (EXTERNAL), WE COULD NOT GET --> field TXTCDOT .
    Plese do the needful.
    We are using ECC6.0 Ehp3 and Ehp4.
    With Best Regards,
    Raghu Sharma

    Dear Pushpa,
    Transaction Code :SHD0 is working fine.
    Please accept my sincere thanks for your sharing your Knowledge.
    I am able to fulfill my
    Regarding the enhancement, I have not tried.
    Once I will complete, I will award the fulll marks to you.
    With Best Regards,
    Raghu Sharma

  • GL display for inventory account which are not defined as line item display

    Hi All,
    We have inventory gl accounts which are auto post accounts , these accounts get posted when grn is done. these accounts are not defined as line item display accounts, but if we execute the T code: FS10 we get the gl balance display and not line item display.
    Our requirement is that we should be able to view the line item display matching the GL account balance in that GL account.
    Can we get the report in MM module line items wise display.
    Regards
    Prashant P. Zinge

    Hello,
    You should use RFSEPA01 program via execute SE38 transaction.
    This program activate line item for each account. Activation means, this program generate line items to BSIS table. So that after this program running, you can see line items in FBL3N.
    Regards,
    Burak

  • Difference between Journal batch,journal header and journal line

    Hi,
    Can someone explain what the difference between Journal batch, Journal header and journal line are?
    Can we post only one batch at a time?

    Hi,
    Journal Batch means it contains batch name, description, status, running total debits and credits, and other information.
    Journal Headers means it contains batch ID, the journal entry name
    and description, and other information about the journal entry.
    Journal Lines means it contains journal entry header ID, the line number, the associated code combination ID, and the debits or credits associated with the journal line.
    So here is the replationships.
    Batch--- 1 to many -- Headers
    Headers -- 1 to many -- Lines.
    --Basava.S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • T.code required for Vendor line item display and Customer line item display

    Hi Gurus,
    Pl provide me transaction code for "Vendor line item display and " Customer line item display apart from FBL1n for vendor and FBL5n for customers.
    Kindly advise.
    Regards,
    Samar

    Hi,
    You could use these, for example:
    S_ALR_87012103 - List of Vendor Line Items
    S_ALR_87012197 - List of Customer Line Items
    Just curious: what's wrong with FBL1(5)N?
    Regards,
    Eli

  • Header mat. in line item showing in zero quantity confirmation...

    Header mat. in line item showing in zero quantity confirmation. How to rectified it??

    What is the transaction code and where the qty is ZERO
    Explain me in detail.
    Regards,
    Deepak GS

  • IDOC Types for 215, 870, 852, 857, 858 and 838

    Hi,
    Can anyone let me know the IDOC types in SAP for
    215, 870, 852, 857, 858 and 838 messages (X12 Messages).
    Thanks,
    Sudheer

    Hi Sudheer
    Check these links,
    http://www.sap-edi.com/sap_r3/ansi.asp
    http://www.geocities.com/sap_edi/ANSI.htm
    http://www.sapgenie.com/sapedi/message_types.htm
    Hope they give you the required information
    Regards
    Vishnu

  • What Mac should i get for serious Audio recording, Video editing and Graphic's?

    Hey im new to Macs and i want to upgrade to one. My question is what one?.. My current system is not powerfull enough to handle what i am doing and i want to upgrade. I plan on using the mac for serious music recording with protools or cubase, video editing and effects with adobe premiere pro and after effects and graphics and web type stuff the rest of the adobe collection.. ex photoshop, dreamweavor, flash, illistrator, etc. So pretty much i need it to handle the adobe cs5.5 master collection and a music recording daw without bogging down. I do serious music recording and video editing and effects that need power behind it and runs smoothly. Any tips, tricks, advise, etc would be greatly appreachated!. Btw im a college student and plan on getting the discount prices in the adobe collection and hopefully the mac and would like to get the best quality computer for the best price!
    Thanks!

    Buying refurbs from Apple is a great idea - except for my current iMac, all my Macs have been refurbished. However, I would only get a factory refurb from Apple - they come with the same warranty as new units and you can buy Applecare to extend that to a total of 3 years. And, as far as I know, the Apple online store is the only place where you can get factory refurbs.

  • How to add new fields for FB01 transaction both at Header and Line item

    Hi Guys,
    I would like to add the new fields at header and item level in FB01 transaction. Can I acheive this by using transaction EEWB....please help me on this.
    Thanking you

    Hi,
    We are trying to copy a work flow objects from ECC6.0 to 4.6C...where we found the following Select statement.
    *Determine Top WorkItem Instance
      if im_top_wi_id is initial.
       select wi_id top_wi_id wi_rh_task into lw_top_id from sww_wi2obj
         up to 1 rows
         where wi_rh_task = im_wftask and
               catid      = 'BO'      and
               instid     = l_instid  and
               typeid     = 'FIPP'.
       endselect.
       endif
    As table sww_wi2obj can't be found in 4.6C, can any one help how to replace or implement the same logic as above statements.
    Thank you....

  • Gurus...Need help....extract data from BKPF header table and BSEG line item

    Gurus,
    I have to write the logic to fetch data from bkpf and bseg. Need help on how can i do that..
    I have to get bukrs  belnr gjahr ldgrp from BKPF for a given date and company code. For all these documents, then i have to get the line items from BSEG if the ldgrp is I1 or SPACE.
    If the ldgrp is not I1 or SPACE then i have to fetch the records from BSEG_ADD and then generate a ALV report with all the data including the data that was fetched from BKPF.
    So, it wil be a combined ALV report that displays header as well as LINE item data together...
    Can u please help me with the code...I am not sure how can everything go all together in one internal table....Becoz once its there in one table then only a ALV list can be generated.......
    Cheers:
    Sam

    hi Sam, this may be of some similar thing.
    Use this program, I got this prog from a source and we added a small conditional check in the program which checks document numbers in BSEG and also comapres in BKPF and sees if the output from BSEG falls under the posting data range specified in the initial selection.
    Now just so you know, this output is kinda messed up, so you will have to play with it in Excel to extract the document numbers, if that is what you want.
    ============================
    PROGRAM....... ZFI_BSEG_DOWNLOAD
    TITLE......... Download BSEG
    PROGRAM TYPE.. Download
    ======================================================================
    GENERAL DOCUMENTATION AND COMMENTS
    <...>
    ======================================================================
    ASSOCIATED PROGRAMS
    <Program>..... <Description>
    ======================================================================
    CHANGE HISTORY
    Date By Ticket Description
    REPORT zfi_bseg_download.
    TABLES: bseg, bkpf.
    TYPES: BEGIN OF ty_output,
    line(6000) TYPE c,
    END OF ty_output.
    TYPES: ty_tab_output TYPE TABLE OF ty_output,
    ty_tab_nametab TYPE TABLE OF x031l.
    CONSTANTS: c_delimiter(04) TYPE c VALUE '"%%"',
    c_records TYPE i VALUE 10000.
    SELECTION-SCREEN
    SELECT-OPTIONS: p_bukrs FOR bseg-bukrs,
    p_belnr FOR bseg-belnr,
    p_buzei FOR bseg-buzei,
    p_gjahr FOR bseg-gjahr,
    p_budat for bkpf-budat.
    SELECTION-SCREEN SKIP.
    PARAMETERS: p_file LIKE rlgrap-filename OBLIGATORY.
    SELECTION-SCREEN SKIP.
    PARAMETERS: p_append AS CHECKBOX DEFAULT 'X'.
    START-OF-SELECTION
    START-OF-SELECTION.
    PERFORM get_records.
    *& Form get_records
    FORM get_records.
    DATA: l_cursor TYPE cursor,
    lt_bseg TYPE TABLE OF bseg,
    ls_bseg LIKE LINE OF lt_bseg,
    lt_output TYPE ty_tab_output,
    ls_output LIKE LINE OF lt_output,
    lt_nametab TYPE ty_tab_nametab,
    ls_nametab LIKE LINE OF lt_nametab,
    l_field(30) TYPE c,
    l_output(50) TYPE c,
    l_date(10) TYPE c,
    l_len TYPE i.
    FIELD-SYMBOLS: <field>.
    IF p_append NE space.
    OPEN DATASET p_file FOR APPENDING IN TEXT MODE.
    ELSE.
    OPEN DATASET p_file FOR OUTPUT IN TEXT MODE.
    ENDIF.
    Retrieve BSEF fieldnames and data types
    PERFORM get_fields CHANGING lt_nametab.
    OPEN CURSOR l_cursor FOR
    SELECT * FROM bseg
    WHERE bukrs IN p_bukrs
    AND belnr IN p_belnr
    AND buzei IN p_buzei
    AND gjahr IN p_gjahr.
    Write out fieldnames
    IF p_append IS INITIAL.
    LOOP AT lt_nametab INTO ls_nametab.
    CONCATENATE ls_output ls_nametab-fieldname
    INTO ls_output SEPARATED BY c_delimiter.
    ENDLOOP.
    IF ls_output+0(4) = c_delimiter.
    SHIFT ls_output LEFT BY 4 PLACES.
    ENDIF.
    l_len = strlen( ls_output ).
    TRANSFER ls_output TO p_file LENGTH l_len.
    ENDIF.
    Process BSEG records
    DO.
    CLEAR lt_bseg.
    FETCH NEXT CURSOR l_cursor
    INTO TABLE lt_bseg
    PACKAGE SIZE c_records.
    IF sy-subrc 0.
    EXIT.
    ENDIF.
    LOOP AT lt_bseg INTO ls_bseg.
    SELECT single * FROM BKPF
    WHERE BUKRS = ls_bseg-BUKRS
    AND BELNR = ls_bseg-BELNR
    AND GJAHR = ls_bseg-GJAHR
    AND BUDAT in p_budat.
    if syst-subrc 0.
    continue.
    endif.
    CLEAR ls_output.
    Process individual fields of BSEG record
    LOOP AT lt_nametab INTO ls_nametab.
    CONCATENATE 'LS_BSEG-' ls_nametab-fieldname INTO l_field.
    ASSIGN (l_field) TO <field>.
    CLEAR l_output.
    Process by field data types
    CASE ls_nametab-exid.
    WHEN 'C' OR 'N' OR 'I'.
    Character, Numeric & Integer
    l_output = <field>.
    WHEN 'D'.
    Dates
    WRITE <field> TO l_date DD/MM/YYYY.
    l_output = l_date.
    WHEN 'P'.
    Packed decimals
    WRITE <field> TO l_output.
    WHEN OTHERS.
    MESSAGE a000(zs) WITH 'Data type error - ' ls_nametab-exid.
    ENDCASE.
    SHIFT l_output LEFT DELETING LEADING space.
    CONCATENATE ls_output l_output
    INTO ls_output SEPARATED BY c_delimiter.
    ENDLOOP.
    IF ls_output+0(4) = c_delimiter.
    SHIFT ls_output LEFT BY 4 PLACES.
    ENDIF.
    l_len = strlen( ls_output ).
    TRANSFER ls_output TO p_file LENGTH l_len.
    ENDLOOP.
    IF sy-subrc = 0.
    ENDIF.
    ENDDO.
    CLOSE CURSOR l_cursor.
    CLOSE DATASET p_file.
    ENDFORM. " get_records
    *& Form get_fields
    FORM get_fields CHANGING pt_nametab TYPE ty_tab_nametab.
    CALL FUNCTION 'RFC_GET_NAMETAB'
    EXPORTING
    tabname = 'BSEG'
    TABLES
    nametab = pt_nametab
    EXCEPTIONS
    table_not_active = 1
    OTHERS = 2.
    IF sy-subrc 0.
    ENDIF.
    ENDFORM. " get_fields
    hope this helps.
    cheers,
    Hema.

  • Mapping from File to IDoc with multiple Idocs and multiple line items?

    Hi All,
    Need some help with mapping, requirement as below: I have a flat file with multiple records, need to create multiple idocs per each separate order in flat file with as many line items.
    Order_1 field-1 field-2 field-3 field-4
    Order_1 field-1 field-2 field-3 field-4
    Order_2 field-1 field-2 field-3 field-4
    Order_2 field-1 field-2 field-3 field-4
    Order_3 field-1 field-2 field-3 field-4
    Order_3 field-1 field-2 field-3 field-4
    I have imported IDoc changed to 1:Unbounded, able to create multiple Idocs based on separate order from flat file.
    Order_No - removeContexts - splitByValue(ValueChanged) - collapseContexts - exists - creatIf - IDOC
    Now I am having hard time creating a line item segment E1EDP01. I want to have Idoc created below way:
    IDoc-1 (Order_1)
    E1EDP01
    E1EDP01
    IDoc-2 (Order_2)
    E1EDP01
    E1EDP01
    IDoc-3 (Order_3)
    E1EDP01
    E1EDP01
    I am getting multiple IDocs created. Please help me to create mutlieple line items under each Idoc. Please be speficic about the node funtions to be used, because I tried many times with different combinations, didn't work.
    Regards,
    N@v!n

    Hi Navin,
    Create your source structure like below
    <Order>1 to unbounded
        <Order_No>
        <field1>
        <field2>
        <field3>
        <field4>
    </oder>
    to create mutiple IDocs based on order number,use below logic
    Order_No-->removecontexts--->sort--->splitbyvalue(Valuechange)--->collapsecontext-->Idoc
    use below logic for E1EDPO1,
    Order----->removecontexts------>
                                                                                    formatByexample------>E1EDP01
    Order_No-->removecontexts--->sort--->splitbyvalue(Valuechange)-------->
    try above logic and let me know if you any issues.
    Regards,
    Raj

  • Posting to FI error *Balancing field "Profit Center" in line item 001*

    Hi Gurus,
    I have been posting my payroll results to FI accounts and CO (internal order).
    I executed the following transactions:
    1) PC00_M99_CIPE - Create Posting Run
    following are the results of generated document and its a successful run:
    17.01.2009 Posting Document
    Run              0000000051
    Company Code     2000
    Document         0000000011
    PostingCurrency  SAR
    Reference        XXXXX00001
    Doc. Type        AB
    Run Type         PP
    Posting Date     31.01.2009
    Document Type    G/L Account Document
    Document Date    31.01.2009
    Bus. Transaction HRP1
    Account Number with Text                       PTyp     CO Accnt A         Debit Amount         Credit Amount
    55000000   Dir Sal/wag bonus                  G/L       OrdNo 100000      6,495                      
    13113000   "Salary, wage pybl"                G/L                                                                6,495 SAR
    Posting document 0000000011                                                      6,495                      6,495 SAR
    17.01.2009 Posting Document
    Total of All Documents
    Account Number with Text         PTyp CO Accnt A                  Debit Amount         Credit Amount Crcy
                                                                                   6,495                    6,495 SAR
    2) PC00_M99_PPM - Generate Posting Run for Payments 
    when I have run above mentioned transaction
    I am getting the following error:
    Messages for Document 0000000012
           Error in document: HRPAY 0000000012 SNDCLNT101
           Balancing field "Profit Center" in line item 001 not filled
    I would really appreciate a valuable suggestion .
    Thanks in Advance !!
    KPJ

    Hi KPJ,
    I am also facing same problem please tell me the solution.
    Please give me the reply.
    Regards,
    Leelaprasad.A

  • FB05 - trans to be processed and first line item PK for doc type

    Hi all,
    Me quite confused of the entry for the following document type in FB05
    DG - cust credit memo
    DR - cust invoice
    SA- gl acc doc
    SB - gl acc posting
    KG - vdr credit memo
    DZ - customer payment
    Need the help to let me know for document type above, what radio button to choose in transaction to be processed and also what posting key use at first line item.
    Also if i choose the wrong transaction to be processed radio button, any impact?
    thanks
    rgds

    Document type is primarily used to distinguish different various types of transactions. Ultimately, there are only two effects in accouting - debit and credit. Thus, doc type helps distinguish btw various types of accounting entries. It also controls certain field status while document posting and also drives the number range for the accounting document.
    Posting keys determine whether a transaction will be a credit or a debit. They also have an influence over the field status of the document entry screen. Posting keys are broadly divided into those belonging to
    Customer                             - Acct type C
    Vendors                               - Acct type V
    GL                                       - Acct type G
    Fixed Assets                        - Acct type A and
    Material Mgmt. transactions   - Acct type M
    For each account type there are both debit and credit posting keys. You can clik on F4 on the posting key field and see the various entries. You will understand.
    Thus, which posting key to enter depends on the transaction you want to enter.
    Regards,

Maybe you are looking for

  • 9.2 convert ASCII to UTF8 welsh language

    hello I have a 9.2 ascii database that i cant convert to UTF8 yet 1 for an output (util file) i need to convert an ascii text string to utf-8 on export 2 i have two characters that are not supported by ascii, ŵŷ the users will represent these by typi

  • When best to charge MacBook Pro?

    Hi, I'm a Mac newbie. Got my first MacBook Pro (2012 release). When is it best to plug the ac power adapter - at what battery percentage or battery time remaining - to maximize the battery life? My practice has been to plug it when there is only abou

  • Time Machine starts new full backups

    Two MacBook Pro using Time Machine and Time Capsule: TM never uses the full capacity ot TC but claims "A problem has ocurred preventing TM from using the existing safety copy.", wipes out the existing sparsebundle and starts a new one so old backups

  • HT1430 I am trying to reset the access code to my ipad any idea on how to do it

    need help resetting accesscode

  • Problem with overridding JButton paintComponent

    I have written an extension of JButton that simply paints an octagon on the button: package myPackage; import javax.swing.JButton; import javax.swing.JPanel; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.