Insert Issue writing to pipe delimited column multiple attributes.Drop Dead

Gurus,
drop dead date tomorrow, please help
Page won't write pipe delimited data to single column. Below is a sample from my VO. All three attributes reference a single column-different pipe delimited positions. Reference these values from page. No error appears when creating new "account" from page but after commit, no pipe delimited data is committed.
Any ideas?
substr(AcctMapEO.header_label_template, 1, instr(AcctMapEO.header_label_template,'|')-1) referencename1,
SUBSTR(substr(AcctMapEO.header_label_template,instr(AcctMapEO.header_label_template,'|')+1,instr(AcctMapEO.header_label_template,'|',1,2)-instr(AcctMapEO.header_label_template,'|')-1),1,40) referencename2,
substr(substr(AcctMapEO.header_label_template,instr(AcctMapEO.header_label_template,'|',1,2)+1,instr(AcctMapEO.header_label_template,'|',1,3)-instr(AcctMapEO.header_label_template,'|',1,2)-1),1,40) referencename3
Edited by: sreese on Sep 21, 2009 2:20 PM
Edited by: sreese on Sep 22, 2009 12:22 AM

Gurus,
Please help!
Ok, here's what I've done which should work but doesn't. I've created a new non-table Entity Attribute in my EO. Then created Transient Attribute in my VO and assigned to value from EO. In my page, I've referenced my transient attribute from VO Instance. In my EOImpl, I'm passing the attribute as a parameter.
No error occurs but Transient Attrib value isn't being passed into PL/SQL call like all other attributes. When I make the call below in TOAD, value is created properly.
public void insertRow()
try
OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)getDBTransaction();
String s = "begin spl_jdev_api_account_map.spl_create_acct(p_cont_cd=>:1,p_consolidate_cd=>:2,     p_customer=>:3,p_req_asn=>:4,     p_sonic_label=>:5,p_req_conversion_date=>:6,p_override_asn=>:7,p_vendor_name=>:8,p_building =>:9,p_revision =>:10,     p_acct_lookup_use_whse_flag =>:11,p_asn_under_rcpt_tolerance=>:12,p_asn_over_rcpt_tolerance=>:13,p_created_by=>:14,p_creation_date=>:15,p_last_updated_by=>:16,p_last_update_date=>:17,p_cancel_asn_yn=>:18,";
String t = "p_use_flex_valueset=>:19,p_po_asn_yn=>:20,p_prepaid_ups_flag=>:21,p_eia_label=>:22,p_exe_flag=>:23,p_header_label_template=>:24,p_line_label_template=>:25,p_all_lpns=>:26,p_internal_asn=>:27,p_print_pickslip =>:28,p_replace_asn_flag =>:29,p_get_line_ref_flag=>:30,p_commercial_inv_flag=>:31,p_req_asn_search =>:32,p_asn_ship_days =>:33,p_asn_receipt_days=>:34,p_asn_creation_days =>:35,p_asn_conversion_flag =>:36,p_min_shelf_life_days=>:37,p_restrict_expired_pick =>:38,";
String u = "p_ars_rules=>:39,p_restock_ord_tgt_oms=>:40,p_attribute_category =>:41,p_attribute1 =>:42,p_attribute2 =>:43,p_attribute3 =>:44,p_attribute4 =>:45,p_attribute5=>:46,p_attribute6=>:47,p_attribute7 =>:48,p_attribute8=>:49,p_attribute9=>:50,p_attribute10=>:51,p_attribute11 =>:52,p_attribute12 =>:53,p_attribute13 =>:54,p_attribute14 =>:55,p_attribute15 =>:56,p_reflbl1 => :57); end;";
String v = (s+t+u);
OracleCallableStatement oraclecallablestatement = (OracleCallableStatement)oadbtransactionimpl.createCallableStatement(v, -1);
oraclecallablestatement.setString(1,getContCd());
oraclecallablestatement.setString(2,getConsolidateCd());
oraclecallablestatement.setString(3,getCustomer());
oraclecallablestatement.setString(4,getReqAsn());
Edited by: sreese on Sep 24, 2009 3:06 PM

Similar Messages

  • Pipe Delimited Column

    Hi,
    How can I convert following data into columns?
    1|Toy Story (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?Toy%20Story%20(1995)|0|0|0|1|1|1|0|0|0|0|0|0|0|0|0|0|0|0|0
    2|GoldenEye (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?GoldenEye%20(1995)|0|1|1|0|0|0|0|0|0|0|0|0|0|0|0|0|1|0|0
    3|Four Rooms (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?Four%20Rooms%20(1995)|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1|0|0
    4|Get Shorty (1995)|01-Jan-1995||http://us.imdb.com/M/title-exactGet%20Shorty%20(1995)|0|1|0|0|0|1|0|0|1|0|0|0|0|0|0|0|0|0|0
    5|Copycat (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?Copycat%20(1995)|0|0|0|0|0|0|1|0|1|0|0|0|0|0|0|0|1|0|0
    This data is available in text file.

    Hey Tahir,
    Is that file generated by you somehow? Can you use, perhaps, semicolon as a delimiter? If not, you would have to bring it up through the Zip port in Execute R or Execute Python and parse the file. OR you could use Excel to load it (and have it parse the
    pipes) and save the excel file. You can then bring it through the Reader Module if the file is in Azure Blob Storage and denote the file as Excel.
    If you can modify it, a semicolon may be more appropriate and you can use the CSV with Encoding option to set semicolon as the delimiter.
    Let us know if you need help with this.
    Regards,
    AK

  • Multiple flat files with Comma delimiter and Pipe Delimiter in the sub folders.

    Hi,
    I have a directory C:\doc\Outcomes\Health  --(This is the main path). 
    In the path above i have multiple subfolders like 
    A
    B
    C
    D
    Folder A & B have 20 flat files each which are comma separated and pipe delimiter files. 
    Folder C&D have 20 excel files each.
    1) So, In SSIS while looping through the subfolders how do i limit to loop only excel files one time and flat files one time.
    2) In folder A&B, how do i loop only Pipe delimiter files (neglecting comma saperated files). I want to loop only pipe delimiter files while using for each loop container.
    Thanks 

    Both are txt files, but the data inside the files is saperated by ',' and '|'. ( comma and pipe)
    Thats ok 
    If delimiters are not consistent you can use this method
    http://visakhm.blogspot.in/2014/07/ssis-tips-handling-inconsistent-text.html
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • XML Column from table extract to Pipe Delimited Text File

    Hi,
    I have an XML column with large data in a Table ( Source SQL server Database).
    I was asked to   extract    XML column to .txt file using SSIS.
    Is it possible to extract xml column with huge data to text file ?
    when I tried,  select XML column from Table in source , I noticed  that Property of column is taken as [DT_NTEXT] . I Converted it to DT_TEXT as Ansi donot support DT_NTEXT.
    Execution method was success but it failed due to trucation. so wondering is there a way to get XML column extracted to Pipe delimited text file?
    Is it advisable to do this ? or IS It Valid to export XML in Pipe Delimited File ?
    Please Kindly advice
    thanks
    kodi

    Are you looking at shredding data within XML nodes and then importing it to text file or are you looking at exporting XML value as is? Also is SSIS a necessity?
    If not, You can simply use T-SQL for this along with bcp for this. just use a query like
    EXEC xp_cmdshell 'bcp "SELECT CAST(XMLColumn AS varchar(max)) AS Column FROM table" queryout <full file path> -c -S <ServerName> -T -t |'
    provided you use trusted connection (windows authentication)
    see
    http://visakhm.blogspot.in/2013/10/bcp-out-custom-format-data-to-flat-file.html
    If you want to shred the data use Xpath functions in the query as below
    http://visakhm.blogspot.in/2012/10/shred-data-as-well-as-metadata-from-xml.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to Identify the count , If multiple parameters are passed using Pipe Delimited string

    Hi,
    We are passing Pipe delimited string to the parameter and I want to know how many values we are passing to the parameter.
    Here is the example
    Parameter.Grant: 24|34|54|67
    I am using below expression, but it is not giving the right values. Please let me know if  I am missing anything or is it possible.
    =iif(parameters!Grant.Count>1,"Multiple value selected",parameters!Grant.Value)

    Hi NaveenCR,
    According to your description, you used pipe delimited multi-value parameter in the report, you want to know how many values passed to the parameter. If that is the case, please refer to the following steps:
    In Design view, click Text Box in the Toolbox.
    On the design surface, click and then drag a box to the desired size of the text box.
    Right-click inside of the text box, then click Expression.
    In Expression text box, type the expression like below:
    =iif(split(Parameters! Grant.Value,"|").Length>1," Multiple value selected",Parameters!Grant.Value)
    The following screenshots are for your reference:
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • Writing schema for pipe delimited file

    Hi all,
    I have to write a pipe delimited file (|) in .txt at a particular location. I am not seeing this option in native schema creation.
    The file should be written in following format:
    Header1
    Line1
    Line2
    Line3
    Header2
    Line1
    Line2
    Line3
    Can we write a schema for such kind of scenario?
    Here is an example for the format specified above:
    Orderno1|Customer1|site1
    Partno1|price1|Quantity1
    Partno2|price2|Quantity2
    Partno3|price2|Quantity1
    Orderno2|Customer2|site2
    Partno1|price2|Quantity2
    Partno1|price2|Quantity2
    Partno2|price2|Quantity3
    Please help me out.
    Thanks in advance,
    Abhishek.

    Hi Abhishek,
    You are right there is no option in native schema creation wizard for generating '|' delimiter file.
    But you can achieve this problem with another approach.
    step 1: Create schema file for ',' (comma) delimiter through native format builder wizard.
    step 2: open the created XSD file and replace ',' with '|' option in terminatedBy command of each element.
    step 3: Attach this updated XSD file to your outbound(write) service.
    Thanks
    Praveen
    Edited by: PraveenT2 on Nov 19, 2008 11:01 PM

  • Writing data to a column

    I cant figure this out. I havent used labview in a little while and now I have to use these things you people call "arrays" and I'm confused.
    Anyway, I want to dynamically write data to a column and/or a row depending on where in the program I am.
    I'm having an issue writing to a column, please help me. What am i doing wrong
    Attachments:
    labview3.JPG ‏22 KB

    The term "array" is a pretty common term in computer programming, so if you aren't familiar with it, then you probably will have lots of problems.  I suggest you start with some online LabVIEW tutorials
    LabVIEW Introduction Course - Three Hours
    LabVIEW Introduction Course - Six Hours
    You are using Insert into Array.  It looks like you are inserting into column 2.  Are you sure you don't want "Replace Array Subset"?
    It is hard to debug a screenshot.  A copy of your VI would be better.  Is your 2-d string array going into the initializer terminal of the feedback node an empty array?  You can't insert new data into an array in an area past the end of an array.  (i.e.  if column 0 is blank, you can't insert data into column 2, what would column 1 get?)

  • How to create Schema Header and footer with Pipe delimiter file..?

    Hi all,
    I have issue with creating Schema Header and footer with body file ..The file format is Pipe delimiter.. The follwing file below like is...
    Adapters:File Adapter(Read)-11g.
    1|000|2025|SDFG|54787
    1|2055|244|9566|000|000|044|2577|361147|45554|wweqw|52555|564|000|647|464
    1|2027|344|4566|000|000|044|8577|361147|45554|wweqw|82555|564|000|647|844
    1|2024|444|6566|000|000|044|9577|361147|45554|wweqw|12555|564|000|647|544
    1|2023|544|8566|000|000|044|5577|361147|45554|wweqw|52555|564|000|647|442
    1|2022|644|3566|000|000|044|7577|361147|45554|wweqw|02555|564|000|647|448
    1|0000|546|25544|454
    If you have sollution for this, please help me out..Thank you.

    You mean how many rows or columns..?
    If coloumns means 5 and rows only one(1).

  • Help needed in extracting pipe delimited fields in a CLOB data type

    hi
    i Had a table with clob field as shown below.
    CREATE TABLE TRANSACTION_INFO
      TRASACTION_ID  CLOB,
      LOG_ID  NUMBER
    Insert into TRANSACTION_INFO
       (TRASACTION_ID, LOG_ID)
    Values
       ('354502002020910|000000610214609663||09/27/09 08:02:37|RNEW|DC25|MOTOROLA|8802939198', 123);
    Insert into TRANSACTION_INFO
       (TRASACTION_ID, LOG_ID)
    Values
       ('354599892020910|000000610214609663||09/27/10 08:12:47|SOLD|DC23||8802939198', 456);
    COMMIT;As you can see Clob field is a pipe delimited data.Now i am able to extract the first two fields using the below querry.But it may be the right solution as
    substring function fails if there is missing character in any on the fields.
    Also when there is a null value in any of the fields,how can i be able to get as null value ? Basically i want to get the values in a delimited manner.
    how can we do this ?
    Select Substr (TRASACTION_ID, 1, Instr (TRASACTION_ID, '|')-1) field1,
            Substr (TRASACTION_ID, 17, Instr (TRASACTION_ID, '|')+2) field2              
      From TRANSACTION_INFO;
    output should be like as shown
       FIELD1          FIELD2          FEILD3                 FEILD4
    354502002020910     000000610214609663                  09/27/09 08:02:37
    354599892020910     000000610214609663                  09/27/10 08:12:47Thanks
    Rede

    hi Michael
    Thanks for the solution and its my bad not mention that there is a possibility of having a null value at the start of the record also which RPLACE function no longer works for this case.
    For example
    with transaction_info (trasaction_id, log_id)
         as (
    select '354502002020910|000000610214609663||09/27/09 08:02:37|RNEW|DC25|MOTOROLA|8802939198', 123 from dual union all
    select '354599892020910|000000610214609663||09/27/10 08:12:47|SOLD|DC23||8802939198', 456 from dual union all
    select '|000000610214609663||09/27/10 08:12:47|SOLD|DC23||8802939198', 456 from dual
    select trim(regexp_substr (trasaction_id, '[^|]+', 1, 1)) f1,
           trim(regexp_substr (trasaction_id, '[^|]+', 1, 2)) f2,
           trim(regexp_substr (trasaction_id, '[^|]+', 1, 3)) f3,
           trim(regexp_substr (trasaction_id, '[^|]+', 1, 4)) f4,
           trim(regexp_substr (trasaction_id, '[^|]+', 1, 5)) f5
      from (select replace (trasaction_id, '||', '| |') trasaction_id from transaction_info)
    F1                   F2                   F3                   F4                   F5                 
    354502002020910      000000610214609663                        09/27/09 08:02:37    RNEW               
    354599892020910      000000610214609663                        09/27/10 08:12:47    SOLD  
    000000610214609663                        09/27/10 08:12:47    SOLD Now the last record is wrongly created....

  • Need a pipe delimiter after every field in the file on application server

    Hi ,
    i have to transport data in internal table to a file on application server.
    I have done this successfully. But the problem is i have to put a pipe
    delimiter after every field in the file on application server.
    Could yoe plz help in  this issue.
    Thanks & Regards
    Suresh kumar D

    Hi Should,
              I think the below code should solve your problem as i also had  a similar type of requirement and this was the code i had used in my program.
      FIELD-SYMBOLS: <FS> TYPE ANY.
      DATA: L_FLINE TYPE STRING.
    Open file for output
      M_CHECK_SELSCR_FNMS O1 O.
      LOOP AT I_TARGET.
    Write records to file
        DO.
          ASSIGN COMPONENT SY-INDEX OF STRUCTURE I_TARGET TO <FS>.
          IF SY-SUBRC EQ 0.
            IF SY-INDEX EQ 1.
              MOVE <FS> TO L_FLINE.
            ELSEIF <FS> NE C_PIPE.
              CONCATENATE L_FLINE C_PIPE <FS> INTO L_FLINE.
            ELSE.
              CONCATENATE L_FLINE <FS> INTO L_FLINE.
            ENDIF.
          ELSE.
            TRANSFER L_FLINE TO W_SRVR_NM_O_O1.
            EXIT.
          ENDIF.
        ENDDO.
      ENDLOOP.
    Close file
      CLOSE DATASET W_SRVR_NM_O_O1.
      IF SY-SUBRC EQ 0.
        MESSAGE S208(00) WITH TEXT-M02.
      ENDIF.
    Regards
    Sikha

  • What is the best, most efficient way to read a .xls File and create a pipe-delimited .csv File?

    What is the best and most efficient way to read a .xls File and create a pipe-delimited .csv File?
    Thanks in advance for your review and am hopeful for a reply.
    ITBobbyP85

    You should have no trouble doing this in SSIS. Simply add a data flow with connection managers to an existing .xls file (excel connection manager) and a new .csv file (flat file). Add a source to the xls and destination to the csv, and set the destination
    csv parameter "delay validation" to true. Use an expression to define the name of the new .csv file.
    In the flat file connection manager, set the column delimiter to the pipe character.

  • File content conversion for Pipe delimited file

    Hi
    i have a scenario ( file-xi-proxy) in whch file is coming in a pipe delimited.
    my data type is like
    DT_ XXXXX
    AwardInfo
    Header contains some fileds
    DetailRecord contains some fileds
    trailer contains some fields
    what are content conversion parameters i have to use
    venkat

    Sedamkar,
    Expecting you have one header, multiple details and one trailer then give recordset structure in sender file communication channel as:
    Header,1,DetailRecord ,*,trailer,1
    In content conversion you should give parameters:
    Header.fieldSeparator : |
    Header.endSeparator : 'nl'
    DetailRecord.fieldSeparator : |
    DetailRecord.endSeparator : 'nl'
    trailer.fieldSeparator : |
    trailer.endSeparator : 'nl'
    You may need to change the parameters also according to your strcuture and the file layout. See this SAP help for file content conversion:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Regards,
    ---Satish

  • How to create schema for Header and Footer with pipe delimiter file BPEL11g

    Hi all,
    I have issule creating Schema for Header and Footer with body file .The file format is Pipe delimiter.The following format below like is...
    Softeware Components:File Adapter(Read) 11g,
    1|1211|000|577|5444
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|4544|000|yted
    I hope get the sollution for this from this Forum..Please help me out..Thankyou.

    You mean how many rows or columns..?
    If coloumns means 5 and rows only one(1).

  • Report script. with pipe delimited?

    hi
    when i create script to extract some selective data with tab delimited it was ok
    but how abt pipe delimited isit possible ?
    i tried checking in oracle technical help but no use
    for example
    Account | Year | Period | instead of Account Year Period ( present script)
    cheers

    i really appreciate ur help glenn
    but i have this kind of issue
    {Tabdelimited Rowrepeat no indentgen outmbrnames
    supemptyrows supmissingrows supfeed sup commas supheading}
    { decimal 8 } {indentGen -5}
    <row("year","period","scenario","Account".....blah blah
    and i get output like this
    jan FY09 Actual SG cust1
    jan FY09 Actual UK
    jan FY09 Actual IND
    But iam looking for this
    JKSG | 1 | FY09 | Actual | SG
    JKUK | 2 | FY09 | Actual | UK
    JKIND | 3 | Fy09 | Actual | IND
    Tab delimited = pipe delimited
    here i want to join Jk with calculating legal entity but what i wonder is Jk is not present in OUtline how can i keep in <ROW(....)
    Can possible?
    Edited by: user8800516 on Mar 9, 2010 12:02 AM

  • Pipe delimited file format

    HI Guys,
    can some body explain what a pipe delimited file format is.
    thanks
    Column Name =  WRKAREA_CODE
    Format of Pipe Delimited File  =   20 Digits
    SAP DB Type  =  CHAR (20)
    Description = Work Area Code
    WRKAREA_CODE is a field of the table WFAV_WRKAREA

    HI,
      a pipe delimited file is a file in which the content of the file is seperated by a pipe symbol..
    example
    100|Name|School|age|
    *-- Read the File From PC
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME = V_FILENAME
        TABLES
          DATA_TAB = I_FILE
        EXCEPTIONS
          OTHERS   = 17.
    *-- Split the Record into Individual Fields
          SPLIT X_FILE-LINE AT '|' INTO   X_PRSTR-VCODE
                                          X_PRSTR-CURR
                                          X_PRSTR-ODLEVEL
                                          X_PRSTR-DLEVEL
                                          X_PRSTR-EDATE
                                          X_PRSTR-SCODE
                                          X_PRSTR-TCODE
                                          X_PRSTR-DCODE
    Thanks
    Mahesh
    Thanks
    Mahesh

Maybe you are looking for