How to read IDOC in flafile structure into SAP to create PO

HI,
We have a requirement like, we will be provided with IDOC PO flatfile structures(Exactly same as IDOC,but in Dlafile format) .
We have to read those flafiles and create POs in our SAP system.
how can we do that?what are the necessary configuration required?
please explian the different steps involved.
thank you in advance.
...Sri

Hi,
Thank you for your reply.
is there any other methods of processing the Flatfile IDOC into SAP.
like through using file port with configuration done in Partner Profile , standard FM and report ?
would this be different if we have customised IDOC?
thank you,
regards,
.....Sri

Similar Messages

  • How to read  xml with deep  structure into intarnal table.

    Hi,
    Could you pls any body provide xslt code for deep structure  convert into internal table.
    sample xml file:
    - <ns0:CREATIONOFCONTRACT xmlns:ns0="http://BPCreationXSD.CreationOfContract">
    - <CREATIONOFCONTRACTDATA>
      <RequestType>L0011</RequestType>
      <ApplicationId>AN-12</ApplicationId>
      <LoanId>QO-22</LoanId>
    - <Borrowerguarantorinfo>
      <Borrowerbpno>101020</Borrowerbpno>
      <Co-borrower1BPNo>101021</Co-borrower1BPNo>
      <Co-borrower2BPNo>101022</Co-borrower2BPNo>
      <Guarantor1BPNo>101023</Guarantor1BPNo>
      <Guarantor2BPNo>101024</Guarantor2BPNo>
      <Branch>New Delhi</Branch>
      </Borrowerguarantorinfo>
    - <Loaninfo>
      <Applicationtype>Fresh</Applicationtype>
      <Purposeofloan>Home Purchase</Purposeofloan>
      <Securedunsecuredflag>Secured</Securedunsecuredflag>
      <Loantype>HL with MRTA</Loantype>
      <Loancurrency>INR</Loancurrency>
      <Loanproduct>MaxiHome Loan Package</Loanproduct>
      <Loanscheme>MaxiHome ZEC</Loanscheme>
      <Loanamount>1500000.00</Loanamount>
      <Loantenure>60</Loantenure>
      <Tiered>No</Tiered>
      </Loaninfo>
      <Periodfrom>01/07/2009</Periodfrom>
      <Periodto>16/09/2019</Periodto>
      <RateType>Fixed</RateType>
      <Ratecode>10.25</Ratecode>
      </CREATIONOFCONTRACTDATA>
      </ns0:CREATIONOFCONTRACT>

    Hi Ramesh,
    Thanks for the info,but I found lot of tables unfortunately I am not getting the value for radio buttons. Also I found a FM FIELD_SELECTION_CUSTOMIZE , IMPORT_DYNPRO etc which will call that screen based on profile but it will not store data any where. I found several tables like TCATS, TFAWC, TFAWF, TFAWT etc.But I am not getting the value for raduio buttons.
    Thanks & Regards,
    Nagaraj Kalbavi

  • How to Read Java Byte Array back into SAP xstring Table?

    Hi Guys,
    I have a situation whereby a user can upload a document in a WebDynpro Java Application.  This needs to be saved.  I am trying to see if I can make the location of this file that is being saved to be on our SAP AS.  I have written a SAP RFC that is imported into the Java Application for use.
    The RFC is expecting a table of type TBL1024 which is basically a table of xstring values.  The Java proxy interprets this SAP table as a byte array.  This is my problem... I cannot seem to "break" up the Byte array into lines of 1024 lengt and send it back to SAP.  All that is happening currently is that the byte array creates a singe line in the TBL1024 that consists of only the first 1024 bytes in the array...  This means that only the first 1024 bytes of my document is being saved - making it corrupt.
    Please advise,
    Kind regards,
    Christiaan

    Loop it...
    File file = new File("java.pdf");
    FileInputStream fis = new FileInputStream(file);
    byte[] buf = new byte[1024];
            try {
                for (int readNum; (readNum = fis.read(buf)) != -1;) {
                    // Here populate the RFC table               
            } catch (IOException ex) {

  • How to read a whole text file into a pl/sql variable?

    Hi, I need to read an entire text file--which actually contains an email message extracted from a content management system-- into a variable in a pl/sql package, so I can insert some information from the database and then send the email. I want to read the whole text file in one shot, not just one line at a time. Shoud I use Utl_File.Get_Raw or is there another more appropriate way to do this?

    how to read a whole text file into a pl/sql variable?
    your_clob_variable := dbms_xslprocessor.read2clob('YOUR_DIRECTORY','YOUR_FILE');
    ....

  • How to read and write a string into a txt.file

    Hi, I am now using BEA Workshop for Weblogic Platform version10. I am using J2EE is my programming language. The problem I encounter is as the above title; how to read and write a string into a txt.file with a specific root directory? Do you have any sample codes to reference?
    I hope someone can answer my question as soon as possible
    Thank you very much.

    Accessing the file system directly from a web app is a bad idea for several reasons. See http://weblogs.java.net/blog/simongbrown/archive/2003/10/file_access_in.html for a great discussion of the topic.
    On Weblogic there seems to be two ways to access files. First, use a File T3 connector from the console. Second, use java.net.URL with the file: protocol. The T3File object has been deprecated and suggests:
    Deprecated in WebLogic Server 6.1. Use java.net.URL.openConnection() instead.
    Edited by: m0smith on Mar 12, 2008 5:18 PM

  • How to upload Organisation structure into SAP HR. Version 3.1I.

    Hi Experts,
    We have to upload Organisation structure into SAP HR.We are using Version 3.1I.
    Can any body please tell me how to do that.
    Itr'sa important as in version 3.1 i we cannot use LSMW or eCATT.
    Thanks and regards
    Rajeev Chhabra

    Hi Rajeev,
    SAP Best Practices provides load tools that should be valid for 3.1 since the data structure hasn't changed much.  You can also use delivered program RHALTD00.  I'm not sure if plain old CATTs were around in 3.1, but those would work as well. 
    Good luck,
    Sharon

  • To read data from exel file into sap

    hi all,
    How to read data from exel file into the internal table in abap?
    Regards,
    sugeet.

    Hi Sugeet,
    Use the following code.
    DATA : BEGIN OF tbl_asset occurs 0,
             anlkl LIKE anla-anlkl,          " Asset Class
             bukrs LIKE anla-bukrs,          " Company Code
             ranl1 LIKE ra02s-ranl1,         " Asset #
             txt50 LIKE anla-txt50,          " Description 1
             txa50 LIKE anla-txa50,          " Description 2
             sernr LIKE anla-sernr,          " Serial #
             invnr LIKE anla-invnr,          " Inventory #
             menge LIKE anla-menge,          " Quantity
             meins LIKE anla-meins,          " Base UOM
             inken LIKE anla-inken,          " Inventory
    END OF tbl_asset.
    DATA : w_filename TYPE IBIPPARMS-path,
           w_file     TYPE string.
    start-of-selection.
    *popup for file path from user
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       PROGRAM_NAME        = SYST-CPROG
       DYNPRO_NUMBER       = SYST-DYNNR
    IMPORTING
       FILE_NAME           = w_filename          .
    MOVE w_filename TO w_file .
    * upload data
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      =  w_file
        FILETYPE                      = 'ASC'
        HAS_FIELD_SEPARATOR           = 'X'
      TABLES
        DATA_TAB                      = tbl_asset
      EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    for HAS_FIELD_SEPARATOR Use
    'X': Fields are separated by tabs.
    SPACE: Fields are not separated by tabs. In this case, the table must contain only one column or all columns must be contained in the file in their entire length.
    Hope it helps...
    Lokesh
    Pls. reward appropriate points

  • How to save xml output of fm into sap as xml

    how to save xml output of fm into sap as xml
    thank you,
    regards,
    Jagrut bharatkumar shukla

    Hi Jagrut
    The XML document can be stored in an ABAP variable rxml of the type STRING or XSTRING, or in an internal standard table sxml of the elementary line type C. Hence, I believe, your issue with the lenght can be resovled with this types.
    For rxml, you specify an interface reference variable of the type IF_IXML_OSTREAM that points to an IXML output stream.
    For rxml, you specify an interface reference variable of the type IF_IXML_DOCUMENT that points to an IXML document.
    With the stream factory you have several options. Before you call your CALL TRANSFORMATION, you setup your stream factory for these different options.
    1. You want to write the file to the application server file system. You want to create your OSTREAM as a binary string. In this example b_xml is an empty binary string. OSTEAM will be the reference variable of tyep IF_IXML_OSTREAM.
    ostream =
    streamfactory->create_ostream_xstring( b_xml ).
    You get the output lenght with the following:
    ressize = ostream->get_num_written_raw( ).
    You can then send the entire string to the file system with the following:
    transfer b_xml to filename1 length ressize.
    Also refer to this weblog:
    /people/tobias.trapp/blog/2005/05/04/xml-processing-in-abap-part-1
    Regards
    Ravish Garg
    <b>
    *Remember reward points is the best way to say thank you :)</b>

  • How to convert JSR-168 compliant Portlets into SAP iviews

    Hi All,
    Its very urgent requirement for me...
    <b>How to convert JSR-168 compliant Portlets into SAP Enterprise Portal supported iViews in SAP NetWeaver 2004 or 2004s.</b> Can you please tell me any tools are available for conversion or is there any another procedure to achieve this problem.
    At last can we ach
    Each answer will be awarded with points.
    Regards
    Sreedhar G

    Hi Sreedhar,
    Is there anyway to display Standard Business packages content in IBM websphere portal.If there is anyway please let me know.
    thanks,
    Anil

  • How to convert JSR 168 compliant Portlets into SAP supported iViews.

    Hi,
    How to convert JSR 168 compliant Portlets into SAP supported iViews in SAP NetWeaver 2004.
    Thanks & Regards
    Siva

    Guys,
    JSR is not supported untill NW05. Please check this
    /thread/176954 [original link is broken]
    Akhilesh

  • How to read Filter selection variable values into ABAP code

    HI IP Gurus,
    Requierement: In my filter characterstics, i have assigned variables, which use will enter when running th e planning sequence.
    so  variable values entered by user , i would like to get those values into ABAP code and pass them to some function module.
    SO please give me step by step detail how to achive this.
    MY understanding use the below method . but not sure how to proceed.Please let me know abap code to get values.
    GET_TAB_PARAM_DATA_SEL and GET_PARAM_DATA_SEL.
    Please help me.
    Thanks in advance.Will Assign points
    Sania

    Hi Srinivas,
    So In RSPLF1 , in paramters tab, Do i have create structure(str1) and then create component Data selection (Dtsel1) under str1(what setting i have to do here, where should i enter variable value and do i need to give info object name and how do it in code.i tried to following example, not able to get any values in tab_sel .
    It will be great, if you could explain in detail.
    other thing i found out is in Initialization method i can read i_t_data_charsel table values , where it contains filter slected values.but could not pass  these values to execute method
    Is there is any way that i can pass values from init method to execute method.
    A tabular structured parameter with name "MY_TABSTRUC" is defined for the function type. "MY_TABSTRUC" consists of the two parameter components "MY_ELEM" and "MY_DATASEL". You access the parameter values as follows:
    DATA: TAB_PARAM_STRUC TYPE RSPLFA_T_PARAM_STRUC,
           REF_PARAM_STRUC    TYPE REF TO IF_RSPLFA_PARAM_STRUC,
          REF_PARAM_ELEM     TYPE REF TO IF_RSPLFA_PARAM_ELEM,
          REF_PARAM_DATASEL  TYPE REF TO IF_RSPLFA_PARAM_DATESEL,
           L_VAL(20)          TYPE C,
           TAB_SEL            TYPE RSPLF_T_CHARSEL.
    get table of parameter MY_TABSTRUC:
      TAB_PARAM_STRUC = I_R_PARAM_SET->GET_TAB_PARAM_STRUC( 'MY_TABSTRUC' ).
    process all lines:
      LOOP AT TAB_PARAM_STRUC into REF_PARAM_STRUC.
      get component MY_ELEM:
        REF_PARAM_ELEM = REF_PARAM_STRUC->GET_COMP_ELEM( 'MY_ELEM' ).
      get internal value of MY_ELEM:
        REF_PARAM_ELEM->GET_VALUE( IMPORTING E_VALUE = L_VAL ).
      get component MY_DATASEL:
        REF_PARAM_DATASEL = REF_PARAM_STRUC->GET_COMP_DATA_SEL( 'MY_DATASEL' ).
      get data selection table of MY_DATASEL:
        TAB_SEL = REF_PARAM_DATASEL->GET_T_SEL( ).
      ENDLOOP.
    Thanks in Advance..please help me

  • HTTP Sender - how to read URL Parameter USER id into Mapping

    Hi,
    My scenario is HTTP - XI - ABAP Proxy.
    I wanted to capture USER id of the person who posted(HTTP) into XI(Mapping). How to read/evaluate the value of sap-user from querystring of URL ?
    http://HOST:8008/sap/xi/adapter_plain?namespace=http%3A//abc.com/sales_oa&interface=MI_sales_OA&service=DEV_D&party=&agency=&scheme=&QOS=EO&<b>sap-user=SM9999</b>&sap-password=xxxxx&sap-client=001&sap-language=EN
    please help.

    Mallik,
    Try  URL Parameters in HTTP sender communication channel.
    In the sender communication channel set Adapter Specific Message Attributes. Click on Apply URL Parameters. In Parameter1 put sap-user (U can query any URL parameter by giving its name as in the HTTP URL).
    Now in SXMB_MONI, in inbound payload SOAP Header, under Dynamic configuration u can see the value of the user. Query the same in Mapping using Dynamic Configuration using keyName as UrlParamOne.
    Regards,
    Sudharshan N A
    Message was edited by:
            Sudharshan Aravamudan

  • How to read XML file and write into another XML file

    Hi all, I am new to JAVAXML.
    My problem is I have to read one XML file and take some Nodes from that and write these nodes into another XML file...
    I solved, how to read XML file
    But I don't know how to Write nodes into another XML.
    Can anyone help in this???
    Thanks in advance..

    This was answered a bit ago. There was a thread called "XML Mergine" that started on Sept 14th. It has a lot of information about what it takes to copy nodes from one XML Document object into another.
    Dave Patterson

  • How to read Idoc acknowledgement in BPM

    Hi ,
    I am trying to get data from database and send  Idoc to sap . Upon successful idoc processing i want to send success msg to file . To achive this functionality i am using BPM , but i am not able to understand how to read acknoiwlegement in XI ? Do I need to create another datatype for acknowledgement in XI ??
    Please advice
    Suvarna

    Hi,
    Configure the Acknowledgements as shown in the Link i had given earlier.
    Next, in your BPM, with the SEND step activate APPLICATION Acknowledgements. Now, your BPM will wait for the acknowledgements before going to the next step and so on.
    Also, if you do not want to wait for longer than a particular period of time, you can have a deadline monitoring branch and so on.
    Regards,
    Bhavesh

  • How do I upload a network hierarhcy into SAP BW?

    I am trying to import a large network hierarchy with "link nodes" into SAP BW.
    I'm new to SAP, and BW 7.0 is all I know. However, apparently, you can't use the new 7.0 concepts and methods to import hierarchies. You must use older 3.5 methods, including a 3.5 InfoSource.
    I found some instructions at http://help.sap.com/saphelp_nw70/helpdata/en/fa/e92637c2cbf357e10000009b38f936/frameset.htm
    Which documents how do import hierarchies using 3.5 mechanisms in version 7.0.
    Unfortunately, I am unable to follow these steps. I create the 3.5 InfoSource, and the docs say:
    "Choose InfoSource Tree ® Your Application Component ® Your InfoSource ® Assign Source System."
    However, I see no option to "Assign Source System" anywhere. Also, when I create the 3.5 InfoSource, I see the target InfoObject show up in the InfoSources tree, but I don't see a InfoSource object show up in the InfoSources tree. I'm not sure what to do.
    Message was edited by: Giesen
    Completely revised post.

    Krzys,
    Thank you so much. I was trying to use a DB Connect Source System. I created a new flat file Source System and with that, I make it past step 4.
    On step 5, I get asked about three different data sources. I choose "no" to the attributes and text data sources (those are import through BW 7.0 mechanisms) and "yes" to the hierarchy data source.
    On Step 6, I am on the InfoSource change screen and I try to activate. I don't know what all the settings on the InfoSource mean. When I click activate, I get this error:
    "InfoObj. 0GN_IOBJNM from fld IOBJNM of dataSource CSTOB_CBO_HIER is not active but BCT ex. -> Dtl Message no. RSAOLTP236"
    I attempt to follow this help text and do: "RSA1" -> "Goto" -> "BI Content"
    From there I see a panel, "InfoProviders by InfoAreas". There is a large tree underneath. I do a "find" for 0GN_OBJNM but nothing comes back. I don't know how to proceed.
    I also do a Google for 0GN_OBJNM. I found the Best Practices Article BS1 which mentions activating the 0GN_OBJNM object. I try to follow step 3.3.2, however at step 2.c, I get a running stopwatch cursor that lasts for several hours. I assume it's hung. CPU+Disc on SAP server are idle.
    Swapna,
    I tried to follow the PDF file that you linked. However, I can't do transaction SE38 since I can't get a developer code. The following steps seem similar to Krzys's suggestion where I'm getting the issues above.

Maybe you are looking for

  • RAID mirror with software utility caused kernel panic every time

    Using disc utility to make a mirror of 2 drives, click create and i get kernel panic and have to power off machine. if i try to start the machine with either of the two disks in it (together or individually) i get same kernel panic and have to power

  • Offline Web Start app fails to launch with Java 7 Update 25

    So it seems that another issue with Java 7 update 25 and Web Start applications is that a signed application will not launch when offline. It fails when attempting to check the revocation status of the signing certificate. Anyone have any ideas to ge

  • Did anyone get a reservation ID from Apple?

    Hi, I ordered the iPhone 6 Plus in Gray with 64GB. I was able to complete the order and received a confirmation for my reservation stating "we received your order and have reserved this iPhone for you, we aren't able to contact the carrier as of yet

  • Is anyone finding out a good best practice on size and wording of subject lines?

    we test a lot and what works this time seems to be changing rapidly...just wondering what everyone else is seeing out there when it comes to uniqe, eye catching subject lines

  • Old videos from Power PC not working in OSX

    I have old videos (converted from a camcorder to digital) that worked on a Power PC but no longer work in OSX. The files are still intact, or at least are as large as they were, but do not seem to contain a file format. "Get Info" says they are a doc