File to IDoc - How to proceed further?

Hi everybody,
Consider the following scenario,
<Header>
  <Transaction>
     <Meterpoint>
        <Address></Address>
        <Asset>
          <Meter></Meter>
          <Conversion></Conversion>
          <Register></Register>
        </Asset>
      </Meterpoint>
    </Transaction>
</Header>
This is the structure of one IDOC.
My Source structure can contain multiple <meterpoint> and multiple <transaction>.
I have to post one IDOC for each meterpoint per transaction.
For example, a transaction can contain 4 meterpoints, then I have to post 4 IDOCs for that transaction alone.
And this applies for each transaction that are present in the source structure.
My Queries are,
1. How to proceed for posting the IDOCs for this kind of scenario?
Is it possible to do it with message mapping itself or we need a java mapping/XSLT mapping?
2. How can I do content conversion for a complex structure like this.
Any help will be highly appreciated.
Regards,
Prasad U

Hi Prasad,
I feel with XSLT you can quickly develop your mapping as follows.
<Header>
   <xsl:for-each select="Input/Transaction/MeterPoint">
     <Transaction>
        <Meterpoint>
            <your idoc mapping here>
        </Meterpoint>
      </Transaction>
   </xsl:for-each>
</Header>
You can do message mapping also. But you have to change the idoc occurrence setting to 0 to unbound.
Instead of posting IDoc one by one, collect your IDoc into packets and send to SAP.
Thanks,
Sasi

Similar Messages

  • How to proceed further once the explain plan and trace files are generated?

    Hi Friends,
    I need to improve the performance of on of the views that i am working on.
    As suggested in the thread - http://forums.oracle.com/forums/thread.jspa?threadID=863295&tstart=0 , i gave generated the explain plan and the trace file.
    From the explain plan, we can see the expensive operations for the query.
    Can any one please tell, how to proceed further from here on i.e. how to make this expensive operations less expensive?
    For ex: FULL TABLE SCAN might be an expensive operation when the table has indexes.In such cases, how can we avoid such operations to make query faster?
    Regards,
    Sreekanth Munagala.

    Hi Veena,
    An earlier post by you regarding P45 is as below
    Starter report P45(3) / P46 efiling for UK
    from my understanding though i have not worked on GB Payroll you have said that you deleted IT 65 details of leaver,however there must be clusters generated in system from where the earlier data needs to be deleted and may be that is why you are facing the issue.
    In Indian payroll when we execute text file for efiling of tax after challan mapping all the data compiles and sits in PCL cluster and therefore we are unable to generate form 16 with proper output,here we delete the clusters and rerun again the mappings and then check form 16.
    Hope this might help you,Experts have suggested you earlier also,they may correct me for this.
    Salil

  • File to IDOC:how do i relate inbound idoc with generated idoc in the R/3

    hi experts;
    can any body tell me how can i relate the IDOC number genrated in the PI with the generated IDoc number in the SAP R/3 system for file to IDOC scenario?
    in SAP PI for tcade idx5, idoc no is:12002
    but in SAP R/3 in tcode WE05, idoc no is:846915
    how can i know a particular message (in SAP PI) created a particular idoc in the backend SAP R/3 System.
    thanks in advance,
    kumar

    Hi Kumar
    at the time of testing you have to note down a time at what ur file got picked up ok
    then go to we05
      -> give the date on CREATED ON field.
      -> then in BASIC TYPE field select your particular IDOC CREMAS05 or whatever, see the TIME field that you have noted down at the time of testing, if that is matching means that is ur latest IDOC you have tested.
      -> one more thing, tha last IDOC showing in the list means that is your latest IDOC you have tested.
    Hope i have helped you, points plz
    Warm Regards
    Dheeraj Kumar

  • File to idoc how to get file name at runtime

    Hi Experts,
    In my file to idoc scenario,
    the requiremnt is like in mapping i have to give condition like if file name is name1 then one target filed is 40 and if file name is name2 then that target field is 60.
    how can we achieve this ?
    Regards,
    rohit

    Hi Rohit
    mughdha is right but you can do it through graphical mapping easily
    give condition in fix value under category conversion like this
    1) source-> FIX VALUE ->if value is true then map FIX value
    else nothing
    double click on first FIX VALUE function and assign your input values for file (for ex 40 or 60,......) in the key field and in the value field assign TRUE
    if this condition will be true the it willl map second FIX VALUE
    else assign a constant with empty value
    in second fix value assign values (for ex 40 or 60,......) which you have checked in first FIX VALUE function in key field and assign corresponding name which you required in the value field
    hope this will solve your problem
    Thanks
    sandeep
    if helpful reward points

  • HI Team, Recently One week back I bought a new iphone 5 from India. They have given me a used mobile which has a different IMEI number when compared to the IMEI number present on the box. Please let me know how to proceed further

    HI Team, Recently One week back I bought a new iphone 5 from India. They have given me a used mobile which has a different IMEI number when compared to the IMEI number present on the box. Please let me know how to proceed further

    When you went back to the place where you purchased this phone, & asked them, what did they say?
    No one here can help you with this, nor can/will Apple. You need to take this up with whoever you purchased this phone from.

  • File- XI- IDOC (how to start?)

    I am a newbee in the field of XI and have some doubts as below :-
    1. What should be the business system and technical system type in the case of sending a file to idoc? Should it be a third party system or a web as abap system ?
    2. I am not able to pick the file from my local system. Every time i need to place the file on the application server. What should I do to pick the file from the local server?

    Hi,
    >>>1. What should be the business system and technical system type in the case of sending a file to idoc? Should it be a third party system or a web as abap system ?
    use business service (ftp) to business system - abap(IDOC)
    >>>2. I am not able to pick the file from my local system. Every time i need to place the file on the application server. What should I do to pick the file from the local server?
    you have to use FTP server on your local machine (or on any other)
    BTW
    for documents have a look at Documents section on my XI FAQ:
    /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>
    Message was edited by: Michal Krawczyk

  • I have got iphone v.4.1, i bought bowling game (US$ 0.99), due to version problem i could not down load the same (not compatable), pls let me know how to proceed further.

    I have got a iphone 3 GS version 4.1, i download bowling game (US$ 0.99), due to version mismatching i could not down load the same, i already paid for the same, please advise how to proceed the same.
    i have been told not to update my iphone to new version, otherwise it will be locked forever.
    please help me.
    chandrru iyer

    Help with what? It's YOUR responsibility to READ the requirements for any app you want to purchase. They are clearly stated on the app's info page. So, either update your phone or beg iTunes support for a refund:
    http://www.apple.com/support/itunes/

  • Hi.. IOS 6..1.1 is downloaded in my ipad 3.. then i clicked to install. ipad restarted with an apple icon and a status bar. but there is no update for almost 2 hours. please let me know how to proceed further

    Hi.. IOS 6..1.1 is downloaded in my ipad 3.. then i clicked to install. ipad restarted with an apple icon and a status bar. but there is no update for almost 2 hours. please let me know how to proceed further

    Hold down on the home and power buttons at the same time until the iPad shuts down and the Apple logo appears again.
    You might need to connect to a PC running iTunes to restore if the update got corrupted and can't complete

  • Automator not working properly while setting comments and moving files to folders, how to proceed?

    So, this is my workflow, i've converted it into a folder action and applied it to a folder called "Automator" in my desktop:
    i've turned "show this action when the workflow runs" so I can see what is going wrong
    here's what I get (each action happens to have a problem to it)
    1) Get specified finder items
    2/3) Filter / find finder items
    those are there just to work for this simple porpouse: identify that i've dropped a pdf file in the "Automator" folder
    I move the PDF
    The workflows starts
    4) Ask for a text
    this would be a prompt for me to add a comment to go to the "Spotlight Comment" section when I click on "get info"
    put instead I get this...
    that's the directiory that the file is in!
    so I type some random text that would go to the spotlight comment section
    then click OK
    5) Set Spotlight Comments for Finder Items
    that's the actual action, it should have the text that i've inputted in the last step, but instead it has this:
    (Text is the variable that i've setted up to be shown on the ask for text and set spotlight comment...)
    so, I have to manually input the comments I want to be on the file
    and click continue
    6) Label Finder Items
    That's the action where i'm suppose to choose the label color, so I do that and click continue
    this should work, but the file doesn't change label at all
    nothing happens.
    7) Move Finder Items
    It should move to the "untitled folder", but again, it doesn't.
    and that's it.
    It's a PDF file, but it's not recognized by the system as a PDF.
    When it is recognized, if I move more than one PDF file, the workflow works for just one PDF, instead of working for all of them!
    I would reeeeally appreciate any help
    the whole point in this was for me not to buy Hazel, but I think I will end up buying it :/
    thanks for any help anyone can give me!

    hey red_menace, thanks veeeery much for your support, I really appreciate it
    as you can notice, i'm new to the automator, i'm actually new to the whole software thing, I have no idea what I'm doing so I really appreciated your help, changed my life and made my day
    BUT, it didn't work...
    well, it did, partially
    I still don't get any comments on the "Spotlight comments" area and when I convert the workflow to a folder action, it does not recognize the file!
    here's my workflow:
    here's what I did, step by step:
    first I added find finder's items, that worked really well, but it labeled all the finders files that were in the folder AND subfolders (the ones that were suppose to already be labeled right)
    then I removed the find finder's items and tried, worked well, but I hadn't checked the "ignore the input", so the comments weren't working
    so then I ignored the input on the actions that didn't require an iput, so my workflow is the same as yours now… and It's not working.
    at first it worked for only 1 pdf, but no comments
    then it worked for 50% of the pdfs, with comments
    then it stopped working at all.
    added the find finders items
    worked while testing with one
    saved
    tried with 7 at the same time
    worked… but didn't get any spotlight comments
    went back on automator
    checked "show this action when the workflow runs" for the spotlight comments action
    added the variable as an answer on the "ask for text"
    the variable ran as expected, I had the same input I've inputed as an answer for the "ask for text" on the "spotlight comments" action, label went okay and stuff, but i did not get any spotlight comment on the spotlight comment section!!
    went back on automator and checked out the "append to existing comments" on "set spotlight comments for finder items"
    and still didn't get any comments on the files!
    btw, I went back on the automator and removed the find finder items
    then tried again with only one file, dropping it in the application. it worked, but I still didn't get any spotlight comments!!
    I also tried deleting the ask for text and tried just
    but it did not work
    I also converted the workflow that working for all expect the comments to a folder action, and it DID NOT recognize the pdf I dropped in the folder, what do I do?!

  • I have donwloaded a smartform to my system and how to proceed further...

    Hi friends,
               I have copied a smartform to my system [ BC470_FLOWD_FINAL ]. And then if i execute it, it is not showing proper output. And also it is not taking any input from the user. In the sense we have to mannually write a program and pass the tables(data) to the smartform  or what has to be done?
       Please guide me in this regard...
    Points will be rewarded
    With Regards
    Badri

    Please go through this link , hope you will get some useful stuff from this.
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450
    *& Form f9100_save_to_pdf
    text
    -->P_WS_FORMNAME text
    FORM f9100_save_to_pdf using value(ws_formname).
    data: i_lines TYPE tline OCCURS 0 WITH HEADER LINE.
    data: ws_bin_size type i,
    ws_filename type string.
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    format = 'PDF'
    max_linewidth = 132
    IMPORTING
    bin_filesize = ws_bin_size
    TABLES
    otf = i_otf
    lines = i_lines
    EXCEPTIONS
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    err_bad_otf = 4
    OTHERS = 5.
    IF sy-subrc <> 0.
    flg_exit = 'X'.
    MESSAGE i050 WITH 'Error converting to PDF format'.
    EXIT.
    ENDIF.
    Get the download path
    PERFORM get_download_path CHANGING ws_filename.
    if flg_exit = 'X'.
    EXIT.
    endif.
    Download
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = ws_bin_size
    filename = ws_filename
    filetype = 'BIN'
    TABLES
    data_tab = i_lines
    EXCEPTIONS
    file_write_error = 1
    no_batch = 2
    gui_refuse_filetransfer = 3
    invalid_type = 4
    no_authority = 5
    unknown_error = 6
    header_not_allowed = 7
    separator_not_allowed = 8
    filesize_not_allowed = 9
    header_too_long = 10
    dp_error_create = 11
    dp_error_send = 12
    dp_error_write = 13
    unknown_dp_error = 14
    access_denied = 15
    dp_out_of_memory = 16
    disk_full = 17
    dp_timeout = 18
    file_not_found = 19
    dataprovider_exception = 20
    control_flush_error = 21
    OTHERS = 22.
    IF sy-subrc <> 0.
    MESSAGE i050 WITH 'Error while File download'.
    flg_exit = 'X'.
    EXIT.
    ELSE.
    MESSAGE i050 WITH 'File downloaded successfully '.
    flg_exit = 'X'.
    EXIT.
    ENDIF.
    Regards,
    Prakash.

  • Hide command or how to proceed further

    Dear Experts,
                            I have a question to solve, got  records on the output,for example AA  0017 NEW YORK  SAN FRANCISCO,
    when i click on new york it should take me to secondary list only upon clicking new york and if i click on other records other thank newyork  it shouldnt show up the secondary list,so check this and let me know the solution,
    regards,
    harish

    HI Harish,
    While displaying the basic list i.e using Write statement, you need to hide the values as well.
    example.
    Loop at gt_basic_list into wa_list
       WRITE: (10)wa_list-field1,
                    (10)wa_list-field2,
                    (10)wa_list-field3.
       HIDE : wa_list-field2.              <------hiding only that value which is required in secodary list
    Endloop.  
    at line-selection.
    if sy-lsind = '0'.                                              "secondary list
    get cursor field 'field1' value lv_value.
    if value = 'New York'.                                  "any value for which u want the secondary list to get trigger.
    *here u can write code to do what u wanted after the click of this value.
    endif.
    Regards
    Ankit Attrish
    Edited by: Ankitatt on Feb 19, 2010 4:00 PM

  • File to IDOC

    Hi,
    While working with File to IDOC, How can we know what are the mandatory fields that need to mapped?
    Regards
    Krishna.

    Hi,
    I want to know the mandatory fields before I import the IDOC into XI, so that I can mention those fields in my source structure.
    So, how can I know that?
    Regards
    Krishna.

  • How to Proceed oracle database 10.2.0.4 with OID 10.1.4.0.1

    Hi,
    We have Oracle Metadata Repository version 10.2.0.4 and our Oracle Identity Management version is 10.1.4.0.1
    While installing/configuring OID 10.1.4.0.1 we are getting the below error.
    "You must have an OID schema version 10.1.4.0.1 to 10.1.4.9.9.Please select another Metadata Repository or upgrade the OID schema in this Metadata Repository to a compatable version."
    Is it possible to have oracle database 10.2.0.4 with OID 10.1.4.0.1?
    How to proceed further?

    Hi.
    We have installed Metadata Repository on the Existing database using RepCA
    During installation of Oracle Identity Management we are getting the below error
    "You must have an OID schema version 10.1.4.0.1 to 10.1.4.9.9.Please select another Metadata Repository or upgrade the OID schema in this Metadata Repository to a compatable version."
    Here there are some of the details from metadata repository database
    SQL> select * from INTERNET_APPSERVER_REGISTRY.components;
    PRODUCT COMPONENT_NAME COMPONENT_VERSION
    Metadata Repository Container mrc 9.0.4.0.0
    SQL> select comp_id,version,status from app_registry;
    COMP_ID VERSION STATUS
    SYNDICATION 10.1.2.0.2 VALID
    PORTAL 10.1.2.0.2 VALID
    SSO 10.1.2.0.2 VALID
    WORKFLOW 10.1.2.0.2 VALID
    B2B 10.1.2.0.2 VALID
    BAM 10.1.2.0.2 VALID
    MRC 10.1.2.0.2 VALID
    OCA 10.1.2.0.2 VALID
    OID 10.1.2.0.2 VALID
    DCM 10.1.2.0.2 VALID
    DISCOVERER 10.1.2.0.2 VALID
    COMP_ID VERSION STATUS
    WCS 10.1.2.0.2 VALID
    UDDI 10.1.2.0.2 VALID
    WIRELESS 10.1.2.0.2 VALID
    14 rows selected.
    From the above query we see that OID version is 10.1.2.0.2 and we have to upgrade the OID schema version to 10.1.4.0.1.
    Can you tell us how to upgrade the OID schema version and with proper document to follow?
    Kindly update for any output from my side
    Thanks

  • File to IDOC (CREMAS03)

    Hi Experts,
      I am trying to load Vendor data in the R/3 system, I got stuck up when I am trying to do mapping between file and IDOC, how can get CREMAS03 Idoc into XI.... Please help
    Thnx
    Raj

    Hi Raj,
    You have to import the metadata for SAP Interfaces(IDocs,RFCs) into XI Repository before you can use them in the mapping.
    You can import the Idocs into your own SWC but as a best practice, these Idocs were imported into SWCs like SAP APPL, SAP BASIS etc. In this way there is no duplication of these Interfaces in multiple SWCs.
    To Import the IDOC metadata
    1) Edit the SWC.
    2) Make sure you have the "import of RFC and Idoc interfaces from SAP systems permitted" radio button selected with connection data for the backend R/3 system.
    4) In the SWC, on the left panel select the Tab "Imported Objects". Provide the connection data if asked for. Select the Idoc CREMAS.CREMAS03 and import it.
    5) This imported Idoc will be added to the list of Idocs in "Imported Objects" Tab. Verify the structure of the Idoc before using that in your mapping.
    Hope this helps.
    Regards,
    Sam Raju

  • File to IDOC ( need advise on how to map file fields )

    Hello friends,
    I spent quite some time reading all the helpful blogs and threads regarding File to Idoc scenario. However I had a very basic question ( maybe its trivial as I am just new to XI).
    In my scenario I have Bank Master data (in a CSV file) and it does not correspond exactly to Bank Master IDOC structure BANK_CREATE01.
    I understand that I will need to use File adapter to get this file into XI and then use an IDOC adapter to send it to R/3. (Pl correct me if I am wrong)
    Now when I use file adapter, how will I do the data mapping. I mean do I need to create a structure which corresponds to file fields and then XI will automatically load my file fields into this structure and then I can use this structure to map fields to IDOC.
    My only issue seems to be how will I see the FLAT FILE data in XML FORM in XI.
    To explain it further my CSV file looks like
    "GB,123456,11223344,GBP, London,.."
    where
    GB corresponds to country,
    123456 corresponds to Bank key,
    112233445566 corresponds to Bank account,
    GBP is currency and so on
    So should I create a data type maintaining same sequence of fields above without using any hierarchy like in the IDOC.
    If this is not possible then will I need to transform my input file exactly into IDOC structure and then use it.
    Hope I have manged to explain it.
    Appreciate your help on same.
    Thanks
    Shirin

    Hello Shrini,
    First of all The CSV file has to be changed in to an XML file , To achieve this File Content Conversion has to be done.Once this is done, please make the following changes in R/3 and PI to push Idoc in to PI.
    Configuration required at Xi side:
    Go to IDX1: configure the port.
    Go to IDX2: load the DOC metadata.
    Go to SM59: Create RFC destination which points to R3 system this is require in the case where your IDOC is sent to R 3 system,
    Configiration required at R3 side:
    Maintain Logical System for PI (SALE transaction):
    Maintain Partner Profile for XI system(WE20):
    Thanks,
    Kiran.

Maybe you are looking for

  • Ipod no longer recognised by pc

    hi my ipod was working fine then i installed my partners ipod mini & new ipod software on my pc and now itunes doesn't recognise my original ipod. it doesn't show up as a disk either. (it did however show up in the safely remove hardware list). most

  • Cant get 60 hz hdmi output to panasonic plasma tv

    hello i am trying to get tv out from my laptop and desktop pc to panasonic 42" plasma tv .. i can only take 1920x1080 1080p/50hz display . i tried everythink but i cant get work kms line in my grub menu .. all i need is 1080p/60 hz display from grub

  • Message Interface not running as synchronous

    Hi, We have an synchronous interface which was running fine. We then applied SP18. This inerface now only runs in asynch mode. Has anybode experienced this before. Thanks Martin

  • BAPI_CURRENCY_CONV_TO_EXTERNAL

    Hi, I'm using the FM BAPI_CURRENCY_CONV_TO_EXTERNAL. is working fine in SE37 But in my program, when I fill the parameter amount_internal  with a variable type KBETR this raise a DUMP. Does anybody has an example in order to try this. Thanks in advan

  • How to insert data with & into table..

    Hi, i want to insert following data to table sql>insert into emp values('company & co'); Enter value for co: how to avoid this ?