Header line item mapping issue in LSMW

Hello experts,
I am trying to map my data in LSMW with header and line items.My structure looks like this.
1header col1 col2 col3 (2item) col1 col2
1header col1 col2 col3 (2item) col1 col2
In the line item col1 changes its posting key.
Header is reapeating for every line items how to map the above in LSMW .
How to upload the data only when the Reference document number is changing??
Thanks and regards,
Vijay Simha CR

Hi ,
at Step 3-->maintain source fields -->Double Click on the Key Field -->Tick the check of Selection Field....
here you need to decide which one is the key field...if you dont have key field in  Item level then create one.
regards
Prabhu

Similar Messages

  • Header/Line Item Mapping Problem

    Hi all
    I am trying to achieve some kind of header to line item mapping using the graphical mapping tool. The scenario is as following:
    PU1/PA1/NAME
    My big problem now is with NAME in the NM1 segment, which is kind of a header to item level mapping since it should become part of PU1 in the target structure which is created by the RMR segments of the source structure. I've tried to use the built-in useOneAsMany function, which works fine if the NM1 segment is always there. Nevertheless, this does not work if the NM1 segment is missing since the function apparently checks the context all the time and has then problems if the segment does not exist. I've tried a global variable with user-defined set and get functions, too, but didn't get it to work either.
    I hope that my explanations make any sense. Can maybe anybody help me to get this working? Any help would be appreciated.
    Thanks,
    Daniel

    Hi Daniel
    Node function <i>useoneasmany</i> will work only if the source field is available. If this source is missing then the MM will through an error. We can make use of ifexists function, using this we can map the soruce to target. the use is the value is mapped on if the source field exists. hope this helps
    thkx
    Prabhu

  • Invoice List-Header & line items

    Dear Expert,
    If I want to create an invoice list which both AR invoice header & line items, then how can I create it as the line items has the same header?
    Could you advise this?
    Thank you.
    Raymond

    Hi Raymond,
    You can use the following query,
    SELECT T0.CardCode, T0.CardName, T1.ItemCode, T1.Dscription, T1.Quantity FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    If you are using QPLD for this then you can sort and group header items so that not to repeat again n again with row items.
    Regards,
    /Siddiq

  • Header, Line Item and Cache Techniques Using Hashed Tables

    Hi,
    How can I work with header, line item, and a cache techniques using hashed tables?
    Thanks,
    Shah.

    Hi,
    Here is an example to clarify the ideas:
    In general, every time you have a header-> lines structure you have a unique key for the lines that has at least header key plus one or more fields. I'll make use of this fact.
    I'll try to put an example of how to work with header -> line items and a cache technique using hashed tables.
    Just suppose that you need a list of all the material movements '101'-'901' for a certain range of dates in mkpf-budat. We'll extract these fields:
    mkpf-budat
    mkpf-mblnr,
    mseg-lifnr,
    lfa1-name1,
    mkpf-xblnr,
    mseg-zeile
    mseg-charg,
    mseg-matnr,
    makt-maktx,
    mseg-erfmg,
    mseg-erfme.
    I'll use two cache: one for maintaining lfa1 related data and the other to maintain makt related data. Also I'll only describe the data gathering part. The showing of the data is left to your own imagination.
    The main ideas are:
    1. As this is an example I won't use inner join. If properly desingned may be faster .
    2. I'll use four hashed tables: ht_mkpf, ht_mseg, ht_lfa1 and ht_makt to get data into memory. Then I'll collect all the data I want to list into a fifth table ht_lst.
    3. ht_mkpf should have (at least) mkpf's primary key fields : mjahr, mblnr.
    4. ht_mseg should have (at least) mseg primary key fields: mjahr mblnr and zeile.
    5. ht_lfa1 should have an unique key by lifnr.
    6. ht_makt should have an unique key by matnr.
    7. I prefer using with header line because makes the code easier to follow and understand. The waste of time isn't quite significant (in my experience at least).
    Note: When I've needed to work from header to item lines then I added a counter in ht_header that maintains the count of item lines, and I added an id in the ht_lines so I can read straight by key a given item line. But this is very tricky to implement and to follow. (Nevertheless I've programmed it and it works well.)
    The data will be read in this sequence:
    select data from mkpf into table ht_mkpf
    select data from mseg int table ht_mseg having in count all the data in ht_mkpf
    loop at ht_mseg (lines)
    filter unwanted records
    read cache for lfa1 and makt
    fill in ht_lst and collect data
    endloop.
    tables
    tables: mkpf, mseg, lfa1, makt.
    internal tables:
    data: begin of wa_mkpf, "header
    mblnr like mkpf-mblnr,
    mjahr like mkpf-mjahr,
    budat like mkpf-budat,
    xblnr like mkpf-xblnr,
    end of wa_mkpf.
    data ht_mkpf like hashed table of wa_mkpf
    with unique key mblnr mjahr
    with header line.
    data: begin of wa_mseg, " line items
    mblnr like mseg-mblnr,
    mjahr like mseg-mjahr,
    zeile like mseg-zeile,
    bwart like mseg-bwart,
    charg like mseg-charg,
    matnr like mseg-matnr,
    lifnr like mseg-lifnr,
    erfmg like mseg-erfmg,
    erfme like mseg-erfme,
    end of wa_mseg,
    data ht_mseg like hashed table of wa_mseg
    with unique key mblnr mjahr zeile
    with header line.
    data: begin of wa_lfa1,
    lifnr like lfa1-lifnr,
    name1 like lfa1-name1,
    end of wa_lfa1,
    data ht_lfa1 like hashed table of wa_lfa1
    with unique key lifnr
    with header line.
    data: begin of wa_makt,
    matnr like makt-matnr,
    maktx like makt-maktx,
    end of wa_makt.
    data: ht_makt like hashed table of wa_makt
    with unique key matnr
    with header line.
    result table
    data: begin of wa_lst, "
    budat like mkpf-budat,
    mblnr like mseg-mblnr,
    lifnr like mseg-lifnr,
    name1 like lfa1-name1,
    xblnr like mkpf-xblnr,
    zeile like mseg-zeile,
    charg like mseg-charg,
    matnr like mseg-matnr,
    maktx like makt-maktx,
    erfmg like mseg-erfmg,
    erfme like mseg-erfme,
    mjahr like mseg-mjahr,
    end of wa_mseg,
    data: ht_lst like hashed table of wa_lst
    with unique key mblnr mjahr zeile
    with header line.
    data: g_lines type i.
    select-options: so_budat for mkpf-budat default sy-datum.
    select-options: so_matnr for mseg-matnr.
    form get_data.
    select mblnr mjahr budat xblnr
    into table ht_mkfp
    from mkpf
    where budat in so_budat.
    describe table ht_mkpf lines g_lines.
    if lines > 0.
    select mblnr mjahr zeile bwart charg
    matnr lifnr erfmg erfme
    into table ht_mseg
    from mseg
    for all entries in ht_mkpf
    where mblnr = ht_mkpf-mblnr
    and mjahr = ht_mjahr.
    endif.
    loop at ht_mseg.
    filter unwanted data
    check ht_mseg-bwart = '101' or ht_mseg-bwart = '901'.
    check ht_mseg-matnr in so_matnr.
    read header line.
    read table ht_mkpf with table key mblnr = ht_mseg-mblnr
    mjahr = ht_mseg-mjahr.
    clear ht_lst.
    note : this may be faster if you specify field by field.
    move-corresponding ht_mkpf to ht_lst.
    move-corresponding ht_mseg to ht_lst.
    perform read_lfa1 using ht_mseg-lifnr changing ht_lst-name1.
    perform read_makt using ht_mseg-matnr changing ht_lst-maktx.
    insert table ht_lst.
    endloop.
    implementation of cache for lfa1.
    form read_lfa1 using p_lifnr changing p_name1.
    read table ht_lfa1 with table key lifnr = p_lifnr
    transporting name1.
    if sy-subrc <> 0.
    clear ht_lfa1.
    ht_lfa1-lifnr = p_lifnr.
    select single name1
    into ht_lfa1-name1
    from lfa1
    where lifnr = p_lifnr.
    if sy-subrc <> 0. ht_lfa1-name1 = 'n/a in lfa1'. endif.
    insert table ht_lfa1.
    endif.
    p_name1 = ht_lfa1-name1.
    endform.
    implementation of cache for makt
    form read_makt using p_matnr changing p_maktx.
    read table ht_makt with table key matnr = p_matnr
    transporting maktx.
    if sy-subrc <> 0.
    ht_makt-matnr = p_matnr.
    select single maktx into ht_matk-maktx
    from makt
    where spras = sy-langu
    and matnr = p_matnr.
    if sy-subrc <> 0. ht_makt-maktx = 'n/a in makt'. endif.
    insert table ht_makt.
    endif.
    p_maktx = ht_makt-maktx.
    endform.
    Reward points if found helpfull...
    Cheers,
    Siva.

  • Sales BOM Header line item confirmed without components in Delivery

    Hi Experts,
    The issue is about the delivery is created with the single component for the Sales BOM where as it contains two.
    We have analyzed the issue and checked that the missing component would have not been available in the stock during the time when the delivery is created and hence is not included(Header material and single component is included in the Delivery).
    The user's concern is; when there is no stock for any one of the component, then it shouldn't have confirmed the header material. Kindly suggest.

    Hi Azam,
    It seems to me that you want to use Delivery Group for Sales BOM where If Mat A = Mat B + Mat C and Mat B Availability date is 20/07/2014 (DD/MM/YYYY) and Mat C availability is 25/07/2014 then Main line item should be confirmed with 25/07/2014.
    If any one sub Item is not available, then Any of the item from the Grouping should not be dispatched.
    If this is the requirement then, In Item Category (VOV7) for main Item update Create Delivery Group field with X and your requirement will be fulfilled.
    Do let us know the result after testing.
    Regards,
    MJ.

  • ALV: Display Header,  line item, information after page break .............

    Hi .
    I am facing problem in displaying a particular layout in ALV.
    the layout is as follows:
    1. Header part
    2. Line item
    3. There is field customer and after every change of customer do page break and display information like how many record read and how many record processed. below is brief detail about how to get read and processed record.
    I have two internal table  say table1 and table2.
       Looping table1
      increase the counter as counter_read = counter_read +1.
    compare the record with table2.
    if matches
    increase the counter as counter_process = counter_process + 1.
    4. At the end of report display a error log.
       to get the error log we will follow the above logic and if record not matched then display as error record.
    Please help ASAP to find the solution.
    Thanks in advance

    There is a knowledge base article C2014229 (1210986 - Subreports do not have a Page Header) , but instead of providing link I will just copy content here:
    Symptom
    Since subreports are objects in the Main Report, they do not contain Page Headers. How can you create a fake page header for subreports?
    Resolution
    To create a fake page header for subreports, use the following steps:
    1. In the subreport, create a formula:
    @FakePageHeader
    //name of formula
    WhileReadingRecords;
    2. Go to the 'Insert' menu and click 'Group'. Select the @FakePageHeader formula.
    3. Select the 'Repeat Group Header on Each New Page' option, and click 'OK'.
    This inserts a new group at the lowest, or innermost, grouping level. You will need to move this group to the highest, or outermost, grouping level.
    4. Go to 'Report' menu and click 'Group Expert'. Use the up arrow to move this newest group up to the top of the list.
    5. Move all the headers that you would like repeated into this Header for the @FakePageHeader group.
    Hope it will help.

  • How 2 Copy Header & Line Item Text from Purchase Order 2 Out Bound Delivery

    Hi SD Gurus,
    I want to copy header and line item text from Purchase Order to Out Bound Delivery (This is required in Stock Transfer Process).
    I have been able to do successful config. for copying header and line item text from Sales Order to Outbound Delivery but config. doesn't seems to be same for copying text from PO to OBD.
    Is there any way to achieve the same? Can some expert show the way to achieve this.
    Thanks in advance.
    Warm regards,
    Rahul Mishra

    Hi Ravikumar thanks for u quick reply.
    This is wht is currently coded.
    concatenate values to get item text for read text function
       invar3+0(10) = invar1. "PO number
       invar3+10(5) = invar2. "PO line number
       SELECT SINGLE * FROM stxh WHERE tdobject = 'EKPO'
                                   AND tdname   = invar3
                                   AND tdid     = 'F01'
                                   AND tdspras  = sy-langu.
       IF sy-subrc = 0.
         invar4 = invar3.
    reading the text for the document items.
         CALL FUNCTION 'READ_TEXT'
           EXPORTING
             id       = 'F01'
             language = sy-langu
             name     = invar4
             object   = 'EKPO'
           TABLES
             lines    = it_itab.
    I have seen some PO's which have info rec texts in that, which gets pulled by the above code...first thing is its id is F02 which exist in STXH table also there is other text with F01 id, and hence the table it_itab gets both these text hence no pbm.
    but i came across a PO which has only one text which is info rec text with id F05 and is not store in stxh and hence doesnot get pulled by read_text fm. How do i change my cod to get this text which should not hamper other PO's as well.
    As mentioned in above msgs, this F05 could be retrieved by providing object name as EINE.
    anyhelp will be appreciated and rewarded.
    thanks

  • PO line item locking issue

    Hi,
    Does anyone had this issue before?
    In ECC5, we lock the PO line item using FM ENQUEUE_EMEKKOE, but SAP still lets you create/confirm Transfer Orders for Inbound delivery, however, the same FM is not allowing you to create/confirm TO's in ECC6.

    Dear Poster
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Jason Boggans
    SAP SRM SDN Moderator

  • Vendor master upload mapping issue in LSMW

    We need to upload Vendor Master Data and it contains 72 fields we identified 69 fields for mapping through standard program (RFBIKRK0) through Batch Input in LSMW.
    We are having issues to identify three fields which belongs to Address and these are not getting mapped in the program.the fields are street street1 street2 street3 street4 street5 and address notes.the mentioned fields are maintained in ADRC table but the structure is not getting populated in the standard program RFBIKRK0 in LSMW mapping section.
    In  the input file from legacy we have the following fields street street1 street2 street3 street4 street5 and this should get mapped in the LSMW .how to go about this problem.whether we need to do seperate conversion program  for the address fields .could you please any one help me .

    Hi!
    You don't have access to all fields of the address with batch input - you need to do something in addition:
    - migrate addresses beforehand (central address handling)
    - select the (hopefully few) vendors with street3 filled and migrate this later
       - manually
       - own batch input (recording in LSMW / eCATT)
    Regards,
    Christian

  • Goa line item sequencing issue

    Hello experts,
    I am facing a problem in GOA line item sequencing in SRM 4.0.
    I create a GOA with lets say 3 line items and distribute it successfully to the backend.
    Now if I want to add extra items using option 'Add Calaog items' from R/3 material and service catalog. The new items that I select and tranfer to SRM are created under line item 53 54  and so on..
    Why is this gap in the line items and why I can't I get the new line items in proper sequence?
    Please help.
    Thanks and regards,
    CM

    Hello CM,
    Have you received any repsonse on this? we are facing same issue.

  • Order Line Item Status Issue

    Experts,
    The way that order line item status is determined in SAP is causing confusion with our customers how are using our ECommerce for ERP module.  The line item status does not take into account the line item's delivery statuses.  For example, a line can be complete in SAP, even through its delivery is partial.  From a customer's standpoint, the line item is not complete until all the deliveries are complete.
    I would love to hear how are other companies are addressing this issue?  Do they enhance the ECommerce module, or ECC?

    Check the [Modification Guide|https://websmp210.sap-ag.de/~sapdownload/011000358700000469462006E/]"  for the tip. See the section on Replacing calls to standard function modules.
    Register the function module within WEB-INF/xcm/customer/modification/modficationconfig.xml
    <function-module-replacement>
    <param name=u2018fm:CRM_ISA_SHOP_GETLISTu2019 value=u2018Z_CRM_ISA_SHOP_GETLISTu2019/>
    </function-module-replacement>
    Instead of the standard function module, your function module will be called during runtime.
    Easwar Ram
    http://www.parxlns.com

  • Confirmation Reversal - PO Line Item Edit Issue

    As per the business rule, if you reverse/delete the confirmation on a line item on the PO, you should be able to edit that line item.
    However, in my case, even after deleting confirmation also, PO line item cannot be changed.
    Generally when you delete the confirmation, where(which table) does this info stored and where shuld I look for this info - which Badi, FM?. 
    Currently what is happening is that when you change a line item, the program looks in table bbp_pdbei table and if the entry exists, it thinks that that line item is confirmed.  Is that ok or should this entry be deleted from this table if the confirmation is deleted. 
    Any help will be highly appreciated.
    Thanks

    Dear Poster
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Jason Boggans
    SAP SRM SDN Moderator

  • FS10n Line item display issue

    Hi,
    When we are displaying line items in credit side of FS10N (double clic option), the result shows some line items with positive sign (It supposed to show only minus sign in all items). Is it correct? Is there a reason? Is it a bug?
    If someone has an idea please let me know,
    Thanks in advance,
    Roberto C.

    Hi Roberto,
    please check, whether the mentioned items represent negative postings. Check if BSEG-XNEGP ='X'.
    Please check note 1258687 as well.
    Regards,
    Joosz

  • Line item number issue when manually created PO is attached to Auto PO

    Initially, we have an automatically-created PO with 4 line items. We created another PO in R3 system and added the line items to the auto-PO. When this was added as 5th line, the item number listed was 14 (instead of 5). Could you help me investigate on this?
    Thank you!

    hi..
    please check the number assignment for your PO document type...
    whether there is serial number profile assigned to that Doc type or not....
    Thanks..

  • Line item dimension issue

    Hi,
          I am on development system and want to know the fact and dimension % as I need to create line item dimesion.
    One solution is executing program SAP_INFOCUBE_DESIGN.
          But if I want to use this same program in Production system, it will take a lot of time and will engage resources......
          Kindly suggest me as to how to find out which dimension should be made a line item dimension?
    Thanks,
    Sonu

    Hi,
    Use RSRV.
    Execute RSTRV and here you have the option of single cubes.
    This takes the ourput from the same tables where the SAP_INFOCUBE_DESIGNS takes.
    All Elementary Tests -> Database -> Database Information about InfoProvider Tables.
    Give your infocube name here and execute.
    It gives you a good detailed output.
    Thanks
    Ajeet

Maybe you are looking for

  • Loaded external swf vs CPU usage

    Halo.   I use the following code in order to load external "inde_2.swf" into "index.swf":    (for Flash Player 9.0) stop(); var myMovie:Sprite; var l:Loader = new Loader(); l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop, false, 0,

  • Swapouts 0, Pageouts 250877, what's going on?

    So, I was having trouble on my 2010 MacBook Pro with Mavericks being horrible slow and almost unusable. I did the normal things like cleaning disk permissions and whatnot, and still nothing. So I reinstalled OS X Mavericks and things seem to be runni

  • Itunes download error tap to retry - iphone 5s

    When downloading a song from itunes on my iphone I got the download error tap to retry. I tried restarting the iphone, signing out of itunes and restarting but still got the same error, but I can download new songs fine. So I connected the iphone to

  • Clash between   Adobe  reader  and   adobe photoshop elements

    I  have both   adobe reader   and  adobe photoshop elements  6  installed  on my  computer..  Since  upgrading to the current version of  Reader,  when I attempt  to open a  PDF  file  using  reader the  file  goes straight to Adobe  photoshop,  were

  • Regarding CS_BOM_EXPL_MAT_V2 and table returned STB

    Hi Gurus , I am facing one diffulty. I am calling following FM       CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'            EXPORTING                 capid                 = ' '                 datuv                 = pa_datga                 mdmps