File to IDOC combining the values

Hello Guru's,
In my IDOC structure target I will be having
Target Structure
Header Record
Item Record,
Value records.
Source Structure
Header Record
Item Record,
Value records1
Value records2
Value records3
Value records4
I want to map to all this records. How I can handle with the 4 VALUES RECORDS in to my target records VALUES RECORD 1
         VR1----->|
      VR2----->| 
      VR3----->| VA1
      VR4----->|
Please let me know how to resolve this issue.
Thanks,
Jane.

HI,
Can you please explain me what is the value which is coming to all the Val in the input side and what you want to get at the output side.
R u doing any validation on the same.
Thanks and Regards,
Chirag Gohil

Similar Messages

  • SSIS - Loop through files from a file path based on the value in the variable

    Experts,
    I have a requirement where I'll be loading multiple files in to a SQL server table and archive the files when loaded. However, the challenge is , the file path should be dynamic based on the value of a variable (say, @ProductName).
    For example: If I am running the package for variable @ProductName="Product", the file path would be "\\....\Src\Product", in that case the ForEachLoop will loop through all the files in that folder, load them to the table and Archive
    the files to the "\\....\Src\Product\Archive" folder.
    Similarly, if the @ProductName="Product_NCP", the foreachloop container should loop through files in the "\\....\Src\Product_NCP" folder, load them to the table and archive them to the ""\\....\Src\Product_NCP\Archive"
    folder.
    Any suggestions? I should be able to run the package manually just by passing the "@Product" value, create Archive folder if it doesn't exist, load the data and archive the files.

    Yes
    1. Have a variable inside SSIS to get folder path. Set path based on your rule using an expression
    like
    (@[User::ProductName] == "Product" ? "\\....\Src\Product" : (@[User::ProductName] == "Product_NCP" ? \\....\Src\Product_NCP:..))
    similary archive
    (@[User::ProductName] == "Product" ? "\\....\Src\Product\Archive" : (@[User::ProductName] == "Product_NCP" ? "\\....\Src\Product_NCP\Archive" :..))
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • File-to-IDoc, but the file structure is equal to the IDoc structure

    hi,
    we have a scenario where the incoming message has to be picked up by FTP. The incoming message is a flat file, no delimiters, no separators, nothing, however is exactly the IDoc structure.
    Since the file adapter does not know how the structure is set up, because no tags are present, it can not translate the filestructure into any format. Therefore it can not be processed further.
    Is there a way for a fileadapter to convert this plain file to an IDoc format, or to call the file-to-IDocadapter up front, the same way as if you would use in SAP the fileport in IDoc processing ??
    thanks!

    Hi Alexander,
    XI understands ONLY XML. All messages to and from XI are always XML messages.
    Now, if the file being placed by your Legacy System is not going to be an XML file, then you can use the content conversion of your sender File adapter to convert this non XML file to an XML file.
    Same way, if the file that is required by your 3rd party application should not be in a XML format, you can use content conversion of the receiver adapter to convert XML to text and so on.
    Basic point, all messages that reach the inegration engine of XI need to be in XML format and so you need content conversion to conevrt non xml to xml and vice versa.
    To make note mapping cannot be performed with a flat file as XI understands only XML. Hence content conversion required.
    Please go thru these links for step by step procedure to do the same:
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    http://help.sap.com/saphelp_erp2005/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    I hope I have answered your query.
    Regards,
    Abhy

  • How can I include the Header Information....for a File to IDOC Scenario

    Hi,
    I made a File to IDOC Scenario with DEBMDM06 for MDM>XI>SAP R/3. The Header Information in the XML File which is at the XI end is Missing. For that reason In Tcode SXMB_MONI we are getting an Error that <b>"HEADER Information Missing: Message should Start with EDI_DC40"</b> i.e the Header Information.
      My Question is that whether we can do some changes in the Message mapping Step in the Integration Repository. I HardCoded the Few mandatory Fields that were there but it Again gave me the Same Error as above.
    Can you please Suggest some Solution for this. Since the data is Coming in from MDM part the Header information is not there but It actually Important as it has got all the Port Information.
      Kindly Inform me some Solutions.
    Thanks & Regards
    Somnath

    Hi Suraj,
      Thanks for ur Reply, but Since we are Doing a File to IDOC Scenario the IDOC DEBMDM is on the Right Side in Message Mapping and as U know it is Mandatory to Map an IDOC on the Right Part. EDI_DC40 is coming as it is there in the IDOC but our XML File Does not have that. If we Don't Map then it Becomes RED, which is an Error.
      Furthermore in the Receiver Agreement we have put the Necessary Details such as Sender Service and Receiver Service along with the IDOC Communication Channels.
      Can U give as a Better Insight on this Note how to check the Header Part as it is mandatory to MAP.We also tried to HARDCODE it by putting those Values and Mapping them to a Constant but it is Giving the Same Error.
    Thanks and Regards
    Somnath

  • The value should be set for Base image URL and Image file directory

    Hi experts
    Now customer has the following issue.
    XML Publisher concurrent request, using RTF layout template with LOGO, does not generate the LOGO for Excel output.
    but in output formats PDF, it is shown normally.
    from the debug log, we can found the following error message
    ======
    [051812_054716051][][ERROR] Could not create an image. Set html-image-dir and html-image-base-uri correctly.
    ======
    so I tell the customer to do the following action plan.
    1. in XML Publisher Administrator resp > Administration expand the HTML Output section.
    2a. enter a value for 'Base image URI'
    2b. enter a value for 'Image file directory'
    Customer set the value as following and retest this issue,but he found the issue is not solved.
    Base image URI: /u01/r12/ebssnd/apps/apps_st/comn/java/classes/oracle/apps/media/XXSLI_SONY_LIFE_LOGO.gif
    Image file directory: /u01/r12/ebssnd/apps/apps_st/comn/java/classes/oracle/apps/media
    I verified 'Base image URI' and 'Image file directory' settings:
    1) Change output type to HTML.
    2) Click the Preview.
    but the image is correctly displayed on HTML, so I think the issue is caused by user's uncorrectly setting of the base image URL and/or image file directory
    but could anyone give me some advice on which value should be set for Base image URL and Image file directory
    Regards
    shuangfei

    First thing to do is to edit the post and use some tags to format the code as it is unreadable and too much!
    Read the FAQ (https://forums.oracle.com/forums/help.jspa) to find out how to do this.
    Next we need to know the jdev version you are using!
    As the code is generated I would first try to generate it again after the db change.
    Timo

  • Lookup issue for File to Idoc scenario-- Urgent Pls.

    Hi All,
    Iam doing File to IDoc scenario with one file --> any of 3 R/3 systems.
    Routing has to be done dynamically using a lookup file, based on the incoming GLN code and last character of the Order Reference number.
    The last character of the Order ref Num will have A,B or C.
    Where,  ' A'  for  R/3 152 Client
                 ' B' for  R/3 142 Client
                 'C'  for  R/3  132 Client.
    1. PlantGLN_Routing lookup file :
    DestinationSystem,   Plant GLNCode,       Partner Number,  
    A,                            5000243000473,         GDKDVRC152,     
    B,                            5000243000473,         GDKDVRC142,      
    C,                            5000243000473,         GDKDVRC132,      
    A                                 500034000487           GDKDVRC152,     
    B                                 500034000487           GDKDVRC142,     
    C                                 500034000487           GDKDVRC132,
    By Using DestinationSystem and Plant GLN Code as lookup key --> I need to get the value of partner system.
    2.  IdocCtrlLookup
    Purpose: To read the IdocCtrlLookup file to populate the Idoc control segment
    Now based on the partner system from previous table --> I need to get the details of Sender Port , Sender Partner Type , Sender Partner Function , Sender Partner Number , Rx Port , Rx Partner Type , Rx Partner Function , Rx Partner Number.
    Please help me how can acheive this scenario with the help of lookups.
    Its very urgent.
    Regards
    Krupakar.

    HI,
    Here you would have to use one mapping for dynamic routing , based on this create IM and use it in receiver determination.
    the another mapping is general to file to idoc.
    see the dynamic routing link here
    Dynamic Configuration of Some Communication Channel Parameters using Message Mapping -
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    Also if you know the field name the context object can be defined for partner no that can be used in receiver determination in condition. to particular partner no in receiver determination.
    Regards
    Chilla

  • 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

  • Query on Context Handling ( File to IDOC mapping )

    Hi All,
       I've a scenario from file to IDOC. The structure of file is as follows.
    Struct ( occurs unbounded times )
    |
    - Name
    Str. of IDOC
    Node
    |
    - name1
    - name2
    - name3
    - name4
    The problem is that the name in file can occur many times.
    So if say name occurs 2 times in the file then it has to be mapped to name1 and name2 in IDOC.
    If Name in file occurs 3 times it'll be mapped to name1, name2 and name3 in IDOC.
    Am looking for some help.
    Thanks,
    Joe.

    Hi Joe,
    For every name in the file, you will have to map the value to the name field in the IDoc. Use SplitByValue node function available in the graphical editor. You will be able to achieve this mapping. For more about the usage, here's the documenation and a blog(where an example has been given):-
    http://help.sap.com/saphelp_nw04/helpdata/en/21/3bb8c495125e4eb5969f0377885fe0/frameset.htm
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    Regards,
    Sushumna

  • How to populate a context node on the basis of the values in another node?

    Hi,
    I have a Webdynpro application which has to run on Portal as well as BlackBerry.
    In this application I have a scenario where I need to have a sub node inside a node but as Blackberry doesn't support sub nodes with Singleton value false, I have to use another node for storing the values which earlier wre present in the sub node.
    The actual scenario here is that we have two tables A & B. For each row of table A we have a no of rows in table B. This can be easily accomplished for Web Browser but we need to do this for Blackberry.
    My question here is that how can i populate the data in table B at runtime using the concept of onLeadSelect. I am not able to fully undersans this concept.
    According to my approach I have two a while loop which generates data for  table A and inside this while loop I have another while which generates data for table B corresponding to each iteration of the outer while loop. I create the node elements for the rows of the table B and store them in a list and then store this list in a HashMap corresponding to a key formed by combining the values of all the elements of the row of table A.
    Now I am not able to understand how can I display this data into table on user slecting a particular row.
    Please guide ASAP.
    It wille quite useful if you can provide me with some code snippets for the same.
    Thanks in advance!
    Manish

    Hi Manish,
             In WebDynpro u can use the onLeadSelect event of table A and do all the processing in that method.Like u can use this method to fill ur context node,which will be the source node for table B. So this way u need not to use any hash map.Fill the source node of table B with data corresponding to ur selected data of table A.
      I hope this solution wud help u in solving ur problem.
    Reena

  • Problem in : File to IDoc

    Hi,
       I am working on a file to IDoc scenario.The logical name for the sender system is maintained in the SLD.I am not populating the control record in the mapping.
       When am executing the scenario, the status message in SXMB_MONI is showing request processed but in the outbound status it is showing error and the message displayed is " EDI Partner Profile not found ".
       Can anyone help me out with this.
    Thanks and regards,
    Pravesh Puria.

    Hi,
    Transaction :WE20
    Choose partner Type : LS
    Give partner Number (  give Logical System Name ( Sender System ..check with basis or Bd54 Transaction .if the sender is Business Service ..give XI Logical system)
    and Inbound parameter  add the Idoc and give the process code and save.
    ur problem will solve..
    let us know if U need any
    regards
    Ram

  • File to Idoc with error in trfc

    Hello,
    I have a scenario like
    File -> XI -> (idoc) R3
    The scenario works fine but yesterday I had a problem with the user in the rfc destination(pwd wrong) which is used for the idoc-adapter. In the sxmb_Moni and the RWB the msg. got an success flag/info but it was not delivered to the r3 because the rfc-destintion could not work.
    I know that the idoc-adapter is not part of the adapter-engine and  my understanding was that the adapter send his status back to the integration engine. But in this cause I got no feedback from the adapter. I think this is not Ok or I am wrong ?
    Regards Jami

    Hi Jami,
    The reason is simple.....the message is sent from the integration server to the adapter engine which was susessful.but what went wrong is the rfc destination being wrong in the receiver adapter which is not known to the integration server. So in simple words, if things work fine in your integration server then it will not throw an error in your sxmb_moni. So had there been a problem between the message transfer from the integration engine to the adapter engine then it would have surely given you an error in your sxmb_moni(for example you specify some wrong parameters while configuring your receiver IDOC adapter).
    But in this case since we dont have an IDOC adapter in the component monitoring (it has adapters which are in the JAVA stack only but IDOC adapter is in the ABAP stack)we can see the error in SM58 only.
    I hope this answers your question fully. If any other doubts regarding the same pls do ask me.
    Regards,
    Abhy
    Message was edited by: Abhy Thomas

  • File to IDOC - Error Inbound -56

    Hi,
       I am doing file to Idoc. (CREMAS01).. My scenario in
    RWB is successful. But in R/3 it is shwoing IDOC
    error :"EDI: Partner profile inbound not available".
      I created Partner Profile in R/3(logical name of BS-
    sender file). Still is shwoing Error.
    Regards,
    Mukharji
    Message was edited by: Mukharji T

    Hi Mukharji,
    I hereunder give you the step by step procedure for File to IDOC scenario.  Cross check whether you have done all these:-
    SLD
    1) Create a Product/Software Component
    2) Technical System pointing to R/3 system
    3) Business System for the above technical system
    In the Repository
    1) Import the Software component created in the sld
    2) Create a namespace,
    3) import the idoc and then create sender data type/message type etc and mapping
    4) Mapping Rules is depends on the requirement
    In the Directory
    1) Create a Scenario /import the business system
    2) Create Receiver/Interface determination
    3) Create communication channels for sender and receiver
    4) Sender Agreeement and Receiver Agreement.
    Then the file adapter configuration is depend on the input file format.
    Also you need to have Logical destionation created in the XI , and the IDX1 entry
    In R/3 Port, Partner profiles etc should be created
    Have a look into this document~
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
    While doing an File -> XI -> IDoc scenario, The Points to noted are:
    1. You don’t need a DT, MT or a message interface for the IDOC as it itself acts as the Message Interface.
    2. You import the IDOC and use the same in your mapping.
    3. In this configuration note that you will need a sender agreement for the file.
    4. In this configuration note that you will also need a receiver agreement for the IDOC.
    For any File -> XI -> IDoc scenario ref:
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    Hope this helps you.
    Regards.
    Praveen

  • Converting a flat file to IDOC

    Greetings to All,
    I have a requirement where i need to convert an IDOC (flat) file to IDOC.
    the idoc is SHPMNT04.Presently i am trying to implement it using FCC at the sender side as the flat file is fixed length type.
    Can any one suggest me a better method like using XSLT or Java mapping which could make my work smarter as i am Finding it very difficult to count and write the FCC for the IDOC which is have more than 60 segments.
    Any help will be greatly admired.
    Thnaks,
    Anika.

    Hi
    I am still having a doubt if this method will work on real time scenario.I mean i have to pick files
    from an 3rd party FTP location (polling and picking as and when i get a file starting with say
    ABC*.txt).Added to this there will be issue related to the volume of file(1000 per day),will that create
    any performance issues.
    It is now that you are sharing the complete scenario/ problem , just have a glance from your first post at the top & the replies, because its the problem statement that steers the discussion.
    Making the files available for the Report is a seperate task. You have to develop FTP-to-File XI scenario (or regular ftp process to send files across, which normally will not be allowed in XI server), I dont see any other way, if any, I 'assume' that it might complicate the situation.
    Performance - it is not something to do with your scenario alone, but the overall system load, configuration etc. (b.t.w 1000 is normal)
    Can we schedule a job for running the report periodically?
    Yes, scehdule a batch job calling this Report (with necessary variants) with required frequency or exact time (if there is any agreement with sender)
    I have started a POC
    I appreciate that, best way at this moment. you can reverse engineer from the errors to configure your scenario. for any reason,if you think it does not work, you can always stop and/or look for different solution.
    need your help
    - Definitely I will share my thoughts, if time permits
    how will i get the flat file xml(IDOC) in the source side
    do you mean the source structure, you can use the same structure as your target.
    once you are convinced with your solution approach, then it is better to close this thread & start a new one with new issues, for more views & suggestions and better readability.
    @Rajesh - I appreciate your efforts to solve the issue , but the below is not correct & possible, w.r.t this issue
    Here what you need is to do configure File Sender CC with NFS protocol.
    Regards
    Vishnu

  • FILE TO IDOC MAPPING Query

    Hi Experts
    I have facing some confusion when i am doing mapping for my scenario FILE to IDOC.
    The IDOC Structure is as follows
    HeaderRecord  0-1
    DataRecord1   0-unbounded
         (Subnode)DataRecord2 0-unbounded
          (Subnode)DataRecord4   0-unbounded
    DataRecord5 0-unbounded
          (subnode) DataRecord6 0-unbounded
    TrailerRecord 0-1
    when the DataRecord1 is executed, an idoc is generated and all the DataRecord2,DataRecord4,DataRecord6 shld come under that particular Idoc. And when another Idoc is generated,all the DataRecord2,DataRecord5,DataRecord6 shld come under that particular Idoc.
    How to achieve mapping for this??
    please help me out.
    Edited by: vemuganti naga phalguna on Oct 27, 2010 7:56 AM
    Edited by: vemuganti naga phalguna on Oct 27, 2010 7:59 AM

    Hi
    1) Source file is Text File.
    sample source data.
    A|20101006142345|SAPQMP|40|
    B|5999|R00003D||N|20072008|Unknown|
    C|T0014|M1556||colourless Pale yellow||Receipt-Bulk|1|Yes|Y|Text||
    C|T0001|M1556||Limpid liquid ||Receipt-Bulk|1|Yes|Y|Text||
    C|T1379|M1398|18||23|Receipt-Bulk|1|Yes|Y|Number|mm²/s|
    B|5998|R00014A||N|20072008|Unknown|
    C|T0014|M0211||2.0||CoA|1|No|Y|Text||
    C|T0014|M0211||2.0||Receipt-Bulk|1|No|Y|Text||
    C|T0014|M0211||2.0||Transfer|1|No|Y|Text||
    C|T0051|M0271|97|||CoA|1|No|Y|Number|None|
    C|T0073|M1356|Pass|||Receipt-Bulk|1|No|Y|||
    C|T0073|M1356|Pass|||Transfer|1|No|Y|||
    C|T0025|M0331||0.880||CoA|1|No|Y||g/ml|
    C|T0025|M0331||0.880||Receipt-Bulk|1|No|Y||g/ml|
    C|T0025|M0331||0.880||Transfer|1|No|Y||g/ml|
    C|T0001|M1556||Clear & Bright ||CoA|1|No|Y|Text||
    C|T0049|M0341|28.0||32.0|CoA|1|No|Y|Number|mm²/s|
    C|T0049|M0341|28.0||32.0|Receipt-Bulk|1|No|Y|Number|mm²/s|
    C|T0049|M0341|28.0||32.0|Transfer|1|No|Y|Number|mm²/s|
    C|T0042|M0422|||-15|CoA|1|No|Y||°C|
    C|T0092|M0578|||16|CoA|1|No|Y|Number|% Loss|
    C|T0021|M0199||||CoA|1|No|Y||minutes|
    C|T0039|M1453|Mktble|||CoA|1|No|Y|||
    C|T0050|M0341||5.1||CoA|1|No|Y|Number|mm²/s|
    C|T0050|M0341||5.1||Receipt-Bulk|1|No|Y|Number|mm²/s|
    C|T0050|M0341||5.1||Transfer|1|No|Y|Number|mm²/s|
    C|T0026|M0412|210|||CoA|1|No|Y|Number|°C|
    Z|20101006142355|SAPQMP|40|
    where Records A indicate File Header, Z indicates File Trailer
    Recodrs B indicateds Material header and Would be repeating multiple times
    No. of B Records = No. of Idocs generated with corresponding C records data which indicates Component Rows (multiple)
    i.e as many B records file contains, that many Idoc will be created
    For Mapping I require B and C Records. Field Separator is Pipe | symbol
    I need to Ignore A B C Z
    How to define the source structure and the respective FCC Parameters
    please help me out

  • File to idoc scenario with file size 16 MB

    Hi experts
    We are developing  a file to idoc scenario.The file is a 16 mb CSV txt file.Is it feasible to poll a 16 mb file at a single shot or any mechanism can be followed which would split the 16 mb file into manageable size files so that it can be polled from the adapter engine side.Will there be any performance bottleneck fr polling 16 mb file .Plz provide help in this regard

    Hi Sabyasachi,
    There would be absolutely no problem , you need not worry. I myself am using a 16 MB master record file.
    The problem only arises when you need to open this 16 MB file for into some errors or some other changes then invariably what happens is that my desktop hangs.
    Regards
    joel

Maybe you are looking for

  • Free good

    Hi all I am configuring free goods & i'm stuck : ( I have done Maintain Pricing procedure NA001 =>Activate free goods determination =>control free goods pricing => maintain condition type =>Maintain pricing procedure for pricing When trying to Mainta

  • TS4268 How do I get facebook to say "posted from IPhone" when using my IPhone?

    When posting anything on facebook from my Iphone 4s. it tags as "posted from Mobile" how can I get it to say posted from Iphone. and yes I  downloaded the facebook app from the app store and when using the app it still says from posted from mobile. i

  • BAPI in a User-Exit

    Hello, I need to cancel some other corresponding documents when I cancel a Billing document, for which I will be using a BAPI. I want the BAPI to commit only if the cancellation process is successful. Does a commit statement for BAPI's execute at the

  • Using a driver with labview

    I want to create a GUI using labview to control a data acquisition card using a driver that was not created in labview. Could someone point me in the direction of some documentation that would give me some info on doing this. Thanks

  • Ifcase formula in Expresion Buildeer in Admin tool

    Hi , I am working on Authorizing based on External Table. I have a Sesion Variable based on which i need to filter on Table. Sesion Variable A Holds one value either 1 or 0. Sesion Varaible B Holds more than 1 Row wise Initilization. Sesion Varaible