Regarding Fields Mapping

hi all
How to fecth the Goods receipt no(material Document no) and Invoice Receipt no for a particular Purchase order.
i want from which tables i will get those information along with relation between tables...

Hi,
after you get the material document, go to MSEG and get the details..
  SELECT
      MBLNR
      MJAHR
      KDAUF
      KDPOS
      EBELN
      EBELP
      INTO TABLE IT_MSEG
      FROM MSEG
      FOR ALL ENTRIES IN IT_MKPF
      WHERE MBLNR = IT_MKPF-MBLNR AND
        MJAHR = IT_MKPF-MJAHR.
    REFRESH: IT_PO,
             IT_SO.
    LOOP AT IT_MSEG INTO WA_MSEG.
      CLEAR:  WA_PO,
              WA_SO.
*moving into it_so
      IF NOT WA_MSEG-KDAUF IS INITIAL.
        WA_SO-MBLNR = WA_MSEG-MBLNR.
        WA_SO-KDAUF = WA_MSEG-KDAUF.
        WA_SO-KDPOS = WA_MSEG-KDPOS.
        APPEND WA_SO TO IT_SO.
      ENDIF.
*moving into it_po
      IF NOT WA_MSEG-EBELN IS INITIAL.
        CLEAR V_KANBA.
        SELECT SINGLE KANBA
              INTO V_KANBA
              FROM EKPO
              WHERE EBELN = WA_MSEG-EBELN AND
                    EBELP = WA_MSEG-EBELP.
        IF SY-SUBRC = 0 AND
           V_KANBA IS INITIAL.
          WA_PO-MBLNR = WA_MSEG-MBLNR.
          WA_PO-EBELN = WA_MSEG-EBELN.
          WA_PO-EBELP = WA_MSEG-EBELP.
          APPEND WA_PO TO IT_PO.
        ENDIF.
      ENDIF.
    ENDLOOP.
if you want i can give the coding related...
Regards
vijay

Similar Messages

  • How to add a new field in the Field Mapping

    Dear Freinds,
                   I have two un used fields in the  Source fields to the Target Fields ,
    i have to add the 3   fields which r there in the my source fields to that
    of the target fields ( as per the change in the requirement) in the 5th Step
    i.e Maintain Field Mapping and Conversion Rules
    the Target strucutre & the Source fields( by clicking the button
    Source field and selcting the fields from the popup menu) in the mapping and conversion step  ,i want to  add  3 fields which are availabe in the list of th source list  which i want to map to the Target strucutre  .
    When i tried it is adding in the othe target field
    presently i have mapping (5th sept ) as below.
       ZPA30_08                       LSMW
           Fields
               TABNAME                      Table Name
                                   Source:  ZP0008_STRC-PERNR (Personnel Number)
                                   Rule :   Default Settings
                                   Code:    ZPA30_08-TABNAME = 'ZPA30_08'.
               TCODE                        Transaction Code
                                   Rule :   Default Settings
                                   Code:    ZPA30_08-TCODE = 'PA30'.
    now i want to add 3 fields Pernr,wage type and Amount  , but when iam trying it is
    getting and saved in the TABNAME .
    How can i map please let me know .
    Regards
    syamla

    Hi,
    So you need that this new field have data in old records?
    1.- If you are in BI 7.0 and the logic or data for that New field are in the same Dimension, you can use a Remodeling to fill it. I mean if you want if you want to load from a Master Data from other InfoObject in the same Dim.
    2.- If condition "1" is not yours.
    First add the new field, then create a Backup Cube (both cubes with the new field) and make a full update with all information in the original Cube. The new field willl be empty in both cubes.
    Create an UR from BackUp_Cube to Original_Cube with all direct mapping and create a logic in the Start Routine of the UR (modiying the data_package) you can look for the data in the DSO that you often use to load.
    To do that both cubes have to be Datasources ( right click on Cube-> aditional function-> and I think is "Extract Datasource")
    Hope it helps. Regards, Federico

  • ABAP code which will use function module during field mapping in LSMW

    Hi,
    During field mapping in LSMW, for one of the field called field, I want to use a function module 'QF05_RANDOM_INTEGER', which will generate random numbers and map that random number to that field.
    How do I write ABAP code which uses function module, during filed mapping for a particluar field in LSMW ?
    Please help...
    Regards,
    Tushar.

    Hi Tushar,
    You can write in FORM ROUTINE and LSMW.
    I hope you know how to write ABAP code at field level.
    If not ...
    Come to change mode->select the field->Rule->ABAP Code
    write a perform statement in ABAP code at field level.
    <b>PERFORM test</b> using val
                 changing valu.
    Go to Utilities(at menu)->switch layout-> extras ->select Layout->check Form routine-> it will display a FORM Routine... at bottom
    this is the place where you can write some code for
    <b> FORM test</b> using value
              changing value1
      FM call....
    .ENDFORM  
    Get the value1 returned and use for the Field population.
    Reward points if this Helps.
    Manish
    Message was edited by:
            Manish Kumar

  • How to create Rules with Flex Field mapping in the bpm worklist

    I Have created a flex field label and was able to map to the flex field attributes .
    But when i try to create a rules , I don't see the label or the flex attributes in the task payload .
    Can someone please help is understanding how to create Rules with Flex Field mapping in the bpm worklist .
    Even I am also searching for any scripts which will take the flex fields prompts and can directly create a label in the bpm worklist .
    Any pointers or suggestion is highly appreciated .

    Hi,
    SE38 -> Enter program
    Select Variants button and display. In the next screen, enter a variant name, (If not existing , press Create to create new one), else click on Change.
    Now the selection screen will display with a button "Variant Attributes" at the top.
    Click on that button.
    In the next screen, go to the selection variable column of the date field. Press F4 or drop down and select 'D' for date maintenance.
    In the column "Name of Variable (Input Only Using F4)" press F4 or drop down, select whichever kind of date calculation you want and save the variant.
    Now whenever you run the prgrm with this variant, date will be displayed by default.
    Regards,
    Subramanian

  • How to change field mapping in IDOC

    Hi Experts,
    My requirement is to create a purchase requisition automatically through an interface using the IDOC sent by a *source client*.
    For this i have used PREQCR as the message type, PREQCR02 as basic type.
    E1BPEBANC & E1BPEBANTX are the segment type i have to use.
    I have created a Z process code in which the function module that i have used is IDOC_INPUT_PREQCR.
    With the help of this i can map all the field values to PR.
    Now there is a field in this idoc called vendor which comes from the source client.
    Now the value that is maintained in this field(vendor) should go to the Text Id that is maintained at the header level. ( i.e. the header text. i.e. In transaction ME51N, the text IDs which we can see at header level, the vendor value should go in one of this text Id ).
    Now how do i do this, because I am using standard funciton module IDOC_INPUT_PREQCR in which there is already field mapping that this vaue should go in this field and so on...
    Do I have to use an exit for the same ?? If yes then which is the exit ??
    Please suggest.
    Regards,
    Priti.

    Hi,
    I think there is no userexits available during the processing using function module "IDOC_INPUT_PREQCR".  You have to copy this function module to a Z function module.  Change as per your requirement and attach the new function module with the Z Process code created by you.
    Regards
    Vinod

  • Field Mapping of CREMAS05 IDoc..!!

    Hi Gurs ,
    Iam trying to map the following fields in CREMAS05 Basic IDoc Type but unable to find the correct mapping field segments in the IDoc.
    Fields need to be mapped are:
    1.Building Code
    2. Pan No
    Can anyone suggest me which segment and field i need to use for the above fields mapping..? or if i extended my idoc with some custom table how i will map into Standard field .
    Thanks .
    Hemant Gulati(A1)

    Hi Jurgen  ,
    Thanks for Reply .
    Vendor Master Idoc  CREMAS05
    i have extended my idoc with some zfields . in zfield i have Building code and Pan no
    like zbuild and zpanno i need to map these in ADDR1_DATA-BUILDING and J_1IMOVEND-J_1IPANNO respectively .
    Thanks & Regards
    Hemant Gulati(A1)

  • Related Content Field Mapping using "Page Field" mapping type

    In PeopleBooks it refers to a Page Field mapping type whene mapping fields from the component to it's related content.
    Is this a misprint in PeopleBooks, did this feature not make it into 8.50.09 or is this option only available under certain circumstances.
    I'm trying to pass a non key field from level 0 to the rel content url.
    Thanks to anyone who can shed some light on this.
    Graham

    Hi Jim
    Thanks for the reply.
    It appears that you can't select the "Page Field" mapping type unless you have the related content specified by PAGE ratehr than component.
    PBOOKS states Page Field: use when you want to map the service parameter to any level 0 page field.
    In the component buffer fields in level 0 could be any page. I was hoping to pass ANY level 0 field through to the Rel Content URL for any page in this component.
    Kind regards
    Graham

  • Field mapping and value mapping - Basic

    Hi,
    Assuming I have a repository containing a main table with 3 fields
    1)Product
    2)Description
    3)Manufacturer (lookup field)
    When i map the source file to the destination repository
    1) i map fields product and description of the source file and destination repository.
    2) map the manufacturer field between the source file and destination repository.
    3)Value map the contents of the manufacturer field between the source and destination.
    If i have a  source file like this.
    Product                                         Description                                Manufacturer
    a                                                         a                                              Hindustan lever
    b                                                         b                                              Hindustan lever
    a                                                         a                                              P&G
    b                                                         b                                              P&G
    Since i have made the manufacturer field a lookup field, it can hold the lookup values Hindustan lever and P&G.
    what happens to prduct ? i have made only a field mapping. Will the values a & b be stored in the destination repository this way?
    Is a value mapping required for product as well to hold both the values?
    Please help
    Thanks,
    Vignesh

    Hi Vignesh,
    You do not have to value map it. Import managerwill automatically assign both the values to product a and b. Basically it is set in the configuration options of the import manager. There is a setting "merge source records based on matching field". If that option is set to yes,  both the values will be assigned to product a and b respectively.
    Best Regards,
    Dheeraj

  • EDI_DC40 empty in Field mapping

    Hi Friends,
    in LSMW when I come to the field mapping step I find the structure EDI_DC40 empty.
    I have entered Information for Partner types, Partner Number and Ports.
    Normally when I come to the step field mapping the structure EDI_DC40 is allready filed with values.
    Do I have to set defaults somewhere?
    Many tahnks.
    RG. Jimbob

    Hello,
             While processing the Idoc, it is required to maintain the Control Record Information for the IDoc.
             So, please maintain data for the Control Record such as Partner Information, Port Information etc.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • Field Mapping from External System To BW

    I am trying to map some keyfigures from another BW system to my companies BW system.  The objective is to find KeyFigures in our system that closely match or are similar to the KeyFigures from this external BW system.  Basically what I am doing is opening up different queries and going through the list of KFs that get listed under the InfoProvider.  This is, as you can probably guess, a very tedious process!  So, is there a better way to accomplish this? Is there a tcode which can list all the KFs in my system both BI content and Custom Z types so that I can print out a list and just go through that list?  Any suggestions and ideas to make this process better and faster would be immensely appreciated .

    IF YOU WERE IN NEED TO MAP CHARACTERISTICS AND KEYFIGURES  FROM OLTP SYSTEM
    IN BW
    GO TO TCODE -SE11
    DATABASE TABLE ->RSOSFIELDMAP->DISPLAY
    UTILITIES->TABLE CONTENTS->DISPLAY-> GIVE THE NAME OF OLTP SOURCE NAME.
    YOU WILL ABLE TO GET THE CHARACTERISTIC AND KEY FIGURE USED FOR FIELD  MAPPING PURPOSE.
    REGARDS
    JAY

  • LSMW  Field Mapping: can't map Batch Input Structure for Session Data

    In step 5 Maintain Field Mapping and Conversion Rules, I can not see Batch Input Structure for Session Data Fields.
    Can somebody tell what's wrong?
    Here's what I see:
    Field Mapping and Rule
            BGR00                          Batch Input Structure for Session Data
                Fields
                BMM00                          Material Master: Transaction Data for Batch Input

    Hi Baojing,
    To see structure BGR00  you have to map this structure first with input file structure in step 4 (maintain structure relationship).
    Regards
    Dhirendra

  • Maintain Field Mapping and Conversion Rules//LSMW

    Hello Friends,
    I want to add new fields in the step.no.5(Maintain Field Mapping and Conversion Rules).
    Indetail i'm going to upload the GL balances, for DR and CR line item fields are same so system is not accepting the same field value, so i have added 1 for the CR line item fields like in the below example.
    BSEG-WRBTR(Dr line item)
    BSEG-WRBTR1(Cr line item)
    but BSEG-WRBTR1(Cr line item) field not displaying in the step.no.5 to mapping to source field.
    please let me know the solution for this.
    thanks
    swapna.

    Hi,
    I would like to ask few questions.
    1. Are you using batch input recording or using any program for uploading. (through LSMW)
    2. Whether all your debit or credit line items are same every transactions. I believe they should be same, because you are uploading the balances.
    You should not have two similar fields for example, if it is WMBTR, then again WMBTR should not be there, it should WMBTR1 and WMBTR2. Make sure you have done the field mapping properly. When you have done the field mapping all the fileds must have been mapped. If any one of the fields are not mapped, then it will not be uploaded.
    Please see the following LSMW sample guide:
    http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
    Maintain Object Attributes Do the recording - Make sure that you do not have two fields with the similar name. If you have two fields with the same name double click on the field name and add1 or 2 to differentiate between field names. Just Copy those fields and descriptions in excel sheet, delete the blank lines, then in excel data => text to columns, your field names and descriptions will be now in two columns. Copy them, then put your cursor on the next sheet, then edit => Paste Special => Transpose, all the columns will become your rows. Now your file structure is ready. Maintain Source Structures Give some unique structure name and description Maintain Source Fields Here you add the fields that are being used in EXCEL first sheet, just copy them and make all the fields as C (Constant) and then give length of 60 for all fields. Maintain Structure Relations Though structure relations are already created just go to this step, click on edit, then click on create structure relation, just accept the message stating that the structure relation has already been created. Maintain Field Mapping and Conversion Rules Do the field mapping for all the fields, all the fields willl be stretched and you will see five rows against each row. In case if there is any row that has NOT stretched means, there is something wrong in the mapping. Maintain Fixed Values, Translations, User-Defined Routines There is nothing to be done at this step. You can simply ignore this. Specify Files Make you must have saved your excel file as .txt (before saving make sure you have copied data from sheet2 to sheet 3 and then sheet 3 is saved at tab delimited file. Text (Tab delimited) Select your file, make SURE that you have select "TABULATOR" radio button and say OK. Assign Files Go to this step and click on Create assignment button and accept the message and say ok. Read Data Remove two check boxes and just click on execute button. See the log. Make sure you have number of entries (lines) in your excel file are matching with this. Display Read Data Display data give 1 to 999 lines and double click on one of the line and see whether fields are mapped correctly are not. Convert Data Execute and see the log match the number of entries. Display Converted Data Display converted data, give 1 to 999 and double click on one of the line and see whether fields are mapped correctly or not. Create Batch Input Session Check on Keep Batch Input sessions check box, then execute. If you select that check box, even after execution it will be there and you can analyze what happened. Run Batch Input Session (Takes you to SM35) Go to SM35 select the batch and click on process button (execute), make sure you have checked right hand side first three check boxes and FOREGROUND (because you want to save what it is creating) Say OK Keep on press ENTER on your key board in order to move the session further. If you follow these steps along with the guide, surely you should be successful. There may be small difference between the file and what I have explained but ultimately the purpose is same. Hope this is useful and let me know in case if you have any issues.
    Regards, Ravi

  • R/3 - MDM field Mapping

    Hi All,
    I am looking for latest R/3 and MDM field mapping for Customer, Vendor, material and Product. I already have IDoc to MDM mapping included in SAP business content. But i am looking for R/3 and MDM field mapping. it would be of great help for me if anyone can send me this on my id [email protected]
    Thanks,
    SHiv.
    Points will be rewarded for helpful answers.

    Hi shiv,
    When u unzip the business content for Customer,material,vendor then in the repository u have remote systems which have a list of standard remote systems namely R/'3,Data warehousing..etc.
    Now in the Import Manager select type as <given data format> and the remote system as R/3 since u r importing the data from R/3.
    After doing this you can import the maps and then u will get a list of all maps in a sequencail order .selecting this map will help you to map the R/3 fields to MDM for customer/material/vendor.
    note the mapping has to be done in the given sequence in the list.
    Please award points if u find these blog helpful.
    Thanks and Regards
    Deepankar Pandit

  • LSMW Source and Field Mapping

    Hi,
      I'm trying to use the LSMW.  What is the fastest way to maintain the source field and relationship?? Is it possible to define the source field and length in a text file and load it in the LSMW??
    Regards,
    Kit

    Hi Kit,
            u can create source fields in faster way.
    menupath
    In the 3rd step i.e., Maintain source fields
    source fields -> table maintenance
    here u can fill all the fields at a time.
    u can also maintain the fields in a file and copy and paste them in the Table maintenance .
    In 5th step i.e.,  Maintain Field Mapping and Conversion Rules
    Extras -> Auto field Mapping
    Now u get the auto field mapping setting pop-up.
    click ok.
    Now u Get the auto field mapping proposel pop-up.
    Here check Target field and Source field and click on Accept proposel push button for all the fields.
    with this the source and target field mapping are done automatically.
    reward if helpfull
    raam

  • CMP Bean's  Field Mapping with oracle unicode Datatypes

    Hi,
    I have CMP which mapps to RDBMS table and table has some Unicode datatype such as NVARCHAR NCAR
    now i was woundering how OC4J/ oracle EJB container handles queries with Unicode datatypes.
    What i have to do in order to properly develope and deploy CMP bean which has fields mapped onto the data based UNICODE field.?
    Regards
    atif

    Based on the sun-cmp-mapping file descriptor
    <schema>Rol</schema>
    It is expected a file called Rol.schema is packaged with the ejb.jar. Did you perform capture-schema after you created your table?

Maybe you are looking for