Need the relevant procedure

Hi,
I have the text structure like
HDR+col1+col2+...
DTL+col1+col2+...
DTL+col1+col2+...
HDR+col1+col2+...
DTL+col1+col2+...
DTL+col1+col2+...
DTL+col1+col2+...
DTL+col1+col2+...
HDR+col1+col2+...
DTL+col1+col2+...
DTL+col1+col2+...
DTL+col1+col2+...
while the number of "DTL+.." lines following each "HDR+..." line is not fixed. Then how about the way to detect each line in the file and insert each line into HDR_TAB and DTL_TAB separately?
For this 3 lines
HDR+col1+col2+...
DTL+col1+col2+...
DTL+col1+col2+...
there will be one record in HDR_TAB and 2 new records in DTL_TAB.
For this 3 lines
HDR+col1+col2+...
DTL+col1+col2+...
DTL+col1+col2+...
DTL+col1+col2+...
DTL+col1+col2+...
there will be one new record in HDR_TAB that is with a different identity ID, and 4 new records created in DTL_TAB. how?
Many Thanks & Best Regards, Hua Min

Hi HuaMin,
While using the flat-file schema wizard,
At the first level (/Root) at “Delimited Record”, specify “HDR+” in the Child-Delimiter.
 Don’t specify “{CR}{LF}” which is the default. This would delimit the records by the occurrence
 of the HDR+.
Then while selecting the child record, set first “Element type” as “Repeating record” and other record as “Ignore”.
Then while specifying the delimited for each above record specify “{CR}{LF}” as the “Delimited Record”, Now for the first record, specify the “Element type” as “Record” and
second record (which is the DTL+) as the “Repeating record” and other record as “Ignore”.
Rest is straight forward.
As said, the curx here is the at the first level (/Root) at “Delimited Record”, specifying “HDR+”. So this would make the repeating HDR record as separate record.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Similar Messages

  • I am running Lightroom 6 in conjunction with 64 bit Photoshop CS6. I need to install Camera Raw 9 plus other relevan updates for the Adobe Design and Web Premium CS6 package. Running Adobe Application manager finds the relevant updates but won't download

    I am running Lightroom 6 in conjunction with 64 bit Photoshop CS6. I need to install Camera Raw 9 plus other relevan updates for the Adobe Design and Web Premium CS6 package. Running Adobe Application manager finds the relevant updates but won't download / install them. Clicking the update button results in an error message "Application Manager has stopped working". This is a windows system running 64 bit Windows 7

    update manually:
    pre cc updates:  http://www.adobe.com/downloads/updates/
    cc updates:  http://prodesigntools.com/adobe-cc-updates-direct-links-windows.html
    cc 2014 updates:  win (http://prodesigntools.com/adobe-cc-2014-updates-links-windows.html) / mac (http://prodesigntools.com/adobe-cc-2014-updates-links-mac.html)

  • I need to connect to my work PC remotely from my macbook. I think I need the citrix software. But which version and what is the procedure?

    I need to connect to my work PC remotely from my macbook. I think I need the citrix software. But which version and what is the procedure?

    Probably don't need citrix software. Is you computer in the office on LAN? Also, is the office computer setup for remote access? If it's windows then its going to be running Remote Desktop Protocol (RDP) natively. If it is in fact RDP that your windows machine at work is using then you need to download RDC for mac. I use it to connect to my work computer using RDP (don't tell the "Info Tech" dude at my office) and if your not too tech savvy I would suggest trying GOTOMYPC. It's alot easier to setup. But if you have experience in setting up remote access and your Windows office machine is connected through LAN and your IT TECH has allowed port forwarding then you should be just fine with RDP and it's free!!! But are you logging onto your actual computer at work or logging into the "SERVER" through your work machine... believe me it's two completely different things.
    Basically, you'll need:
    1. Physichal IP address of work computer. (If office computer is on WIFI this won't work) use IPCONFIG commands in command prompt
    2. Port forwarding needs to be enabled by your IT Tech
    3. Remote Desktop settings will need to be enabled on the office computer
    4. Download RDC for mac (search google)
    5. Type the physical IP address into RDC and hit connect... type in credentials and your all done.
    We need lots more details though... there are many ways to connect remotely and if your office already has a system in place for remote access then any details would be helpful in determining which method will suit you best. If it's citrix just have your IT dude set it up. If you think you need citrix then good luck....

  • What is the charging procedure for european travel do I need to use a transformer or just an adapter?

    what is the charging procedure for european travel? do  need to use a converter or just an adapter?

    The only thing would be an adapter, for example World Travel Adapter Kit from the Apple Store.
    The power supply will accept the 240V input in Europe.

  • I need the procedure to run daily but any specific time. can this be possib

    via dbms_scheduler..
    Idea is I can easily set dbms_scheduler to freq = dailiy
    But the timing is also set..
    What if the server is down ..at that time..and i need
    the procedure to run the moment the pc is started
    but it has to run only once..
    so is there a setting in dbms_scheduler through which we can get this done..
    Like setting dbms_scheduler freq= daily .. But timing .. .that is the issue..
    I cannot give a fixed timing ... .
    It can be at any time i start the computer..on a day.. but afte the computer has started..it should not fire duplicate..
    Any options in dbms_scheduler to accomplish this..
    Thanks

    Refer to your other question.
    have a doubt on dbms_scheduler..

  • Why my iphone produces a bug after it renew for OS5.1.1. The bug is when I use message, type a Chinese word, and then using a releveant word, then the program automately closes. Every time I try the same procedure, it definitely closes.

    Why my iphone produces a bug after it renew for OS5.1.1. The bug is when I use message, type a Chinese word, and then using a releveant word, then the program automately closes. Every time I try the same procedure, it definitely closes.

    Nobody knows? Not even administrators?
    Please it would be really nice to have help on that to take all the benefit of the remote app.
    Thank you very much in advance.

  • Need to add a check in between the stored procedure

    Hi Team, I am new to pl/sql and need to add a check in between the below procedure such that, Only if the Insert is successfull the delete should execute, if not the loop should be ended.
    Please help me.
    CREATE OR REPLACE PROCEDURE Archive_psuser_grants AS
    i NUMBER:=1;
    CURSOR c IS SELECT * FROM ps_user_grants1 WHERE DATABASE = 'F90PRD';
    BEGIN
    FOR records IN c loop
    INSERT INTO ps_user_grants_archive VALUES (records.DATABASE,records.username,records.level_type,records.privilege,records.grantable,records.owner,records.table_name,records.column_name,records.sr_number,records.initially_granted);
    i := i+1;
    IF mod(i, 1000) = 0 THEN -- Commit every 1000 records
    dbms_output.put_line ( '1K records applied into archive table ');
    COMMIT;
    end if;
    end loop;
    COMMIT;
    dbms_output.put_line ( 'Rows successfully Inserted into Archive Table ');
    delete FROM ps_user_grants WHERE DATABASE = 'F90PRD';
    COMMIT;
    dbms_output.put_line ( 'Rows successfully Deleted from Original Table ');
    END Archive_psuser_grants;
    Thanks in advance,
    Sri
    Edited by: user3969470 on Feb 9, 2011 8:50 PM

    ROW by ROW, is SLOW by SLOW.
    COMMIT inside LOOP is a GREAT mechanism for producing ORA-01555; SNAPSHOT TOO OLD, error
    You need to implement EXCEPTION handler(s)
    What should be done where DELETE fails?

  • Business Event not triggering the PLSQL procedure.. What to do?

    We need to call a plsql procedure when the GL Approval workflow has ended with approval. I thought i could do this by customizing the relevant business event.
    We are on EBS 12.1.3 with RDBMS : 11.2.0.3.0.
    I saw that the business event oracle.apps.gl.Journals.journal.approve was disabled currently. I enabled it and created a subscription for it. Subscription was a PLSQL procedure. Currently, for test purpose only thing it is doing is to insert a row into a table.
    Business Event Subscription settings:
    System: ORDEBS.SYSTEM.COM
    Triggering Event
    Source Type:Local
    Event Filter: oracle.apps.gl.Journals.journal.approve
    Execution Condition
    Phase: 100
    Status: Enabled
    Rule Data: Message
    Action Type:Custom
    On Error: Stop and Rollback
    Action
    PL/SQL Rule Function: XX_GL_APPROVE_BE_PKG.Get_Attributes
    Priority: Normal
    Documentation (Not sure what value to be given for these. I went with the below values.)
    Owner: Company Name
    Owner Tag: Custom Schema
    Using the below query i can see that the business event is getting called when the approval happens (One row added each time approval happened). But I cant see any rows in the table where it should insert a row. What could be going wrong? How can i verify that the procedure has been called?
    select * from WF_DEFERRED where corrid ='APPS:oracle.apps.gl.Journals.journal.approve'
    Procedure:
    CREATE OR REPLACE PACKAGE BODY APPS.XX_GL_APPROVE_BE_PKG
    AS
    PROCEDURE Get_Attributes
    IS
    BEGIN
    INSERT INTO xx.xx_test_table VALUES ('From BE');
    COMMIT;
    END Get_Attributes;
    END XX_GL_APPROVE_BE_PKG;

    Thanks Alejandro. Now this is working.
    Changes i made:
    1. Added the WFERROR workflow as a subscription to this event. So i could see that the function i am calling from the event did not have proper signature.
    2. Changed the function signature to have standard parameters like:
    CREATE OR REPLACE PACKAGE BODY XX_GL_APPROVE_BE_PKG
    AS
    function subscription(p_subscription_guid in raw,
    p_event in out nocopy wf_event_t) return varchar2 is
    l_result varchar2(20);
    begin
    insert into xxvtv.xxvtv_test_table values ('From BE');
    commit;
    exception
    when others then
    wf_core.context('XX_GL_APPROVE_BE_PKG','function subscription', p_event.getEventName(), p_event.getEventKey());
    wf_event.setErrorInfo(p_event, 'ERROR');
    return 'ERROR';
    end subscription;
    END XX_GL_APPROVE_BE_PKG;
    3. Changed the owner name and owner tag both to the custom schema name (XX)

  • Condition Type  not displaying on the pricing procedure

    Hello We are copying a sales order contract with reference to a sales order but we want a condition on the contract pricing procedure to be determined. Now I know I could redetermine pricing by selecting these option but we can't do that as there could be  a year difference so we need the old pricing. B    Carry out new pricing C    Copy manual pricing elements and redetermine the others e.g. Sales Order  Pricing Procedure XXXX                         Conditions ZPR0                          Conditions ZHD1 Create Contract with reference to sales order    Contract  Pricing Procedure yyyyy                         Conditions ZPR0                          Conditions ZHD1                         Conditions ZNEW In the analysis the condition ZNEW has the "Condition without condition record (not relevant)" As I mention in new pricing it appears   

    Hi Roy,
    Trust you are doing good,
    I have gone through the question which you have asked but its not clear what do you want to exactly do.
    Pricing Procedure XXXX                         Conditions ZPR0                          Conditions ZHD1 Create Contract with reference to sales order    Contract  Pricing Procedure yyyyy                         Conditions
    Here you talking about two different pricing procedures..or you talking in terms of pricing values.
    Please highlight.
    Thank you,
    Regards
    SRT

  • Rebate fixed amount condition in the pricing procedure

    Hi SD Gurus,
    i'm using rebate fixed amount conditions (Lum sum).
    The situation from a business point o f view is the following: i pay the customer 1000$ once he made something.
    This kind of condition is not relevant for accruals since they have to be built manually (manual accrual). As a consequence i'm note sure if this condition shoul be put in the pricing procedure used for invoices. In the other and for sure this condition should be inserted in the pricing procedure for manual accrual/credit note.
    What is your point of view!!
    Thanks
    C

    if you are going to use Rebate, then there is no need to add condition type in standard pricing procedure, if you have designed your pricing procedure, include condition types for rebates as in standard pricing procedure.
    This condition type is linked to Rebate type.
    I think you first try the scenario in IDES and then do the same settings as per yoru requirement.
    If you want step-by-step procedure for rebates will help you
    Please refere the thread
    rebate documentation
    Regards
    Jitesh

  • Whats the relevance of the Transalation date in the BKPF table

    Dear All,
    Whats the  relevance of <b>Transalation date ( field name WWERT )in the  BKPF table </b>  and what does it mean , since the translation date in a docuemnt which i was viewing is 03.01.2005 where as the document was created  a couple of days back.where the posting date and the entry date si 24.10.2005
    Thanks in adavance.
    Cheers
    Seshi.

    Hi,
    This is F1 Documentation for the field,
    <b>Short text
    Translation date
    Definition
    Translation date for determining the exchange rate which is to be used for translation. The exchange rates are stored in the system.
    Procedure
    You do not need to enter a date unless the date in question is not the same as the document entry date.</b>
    This is the date that is used for determining currency exchange rates during currency conversion..
    For example, if the accounting document was created from a billing document then <b>vbrk-kurrf_dat</b> is passed into <b>bkpf-wwert</b>. <b>vbrk-kurrf_dat</b> in turn is normally filled from billing date (vbrk-fkdat).
    Sri
    Message was edited by: Srikanth Pinnamaneni
    Message was edited by: Srikanth Pinnamaneni

  • Is this the correct procedure ?

    Hi experts,
    As per my knowledge i am following the following procedure for
    extracting Inventory data.Please suggest me whether it is correct
    or not:
    1.Activate 2Lis_03_bx datasource in rsa5 and run intialization of
    setup tables in the tcode MCNB and transport in
    rsa6.Replicate datasource into bi system. Create transformations
    between datasource and Infocube.Create Info package with
    generate Initial status and load the data upto PSA.
    Create DTP and set it to Delta With Get data by request and load
    data to the info cube.Compress the request with No marker update
    not set.( I unchecked the check box and compressed the request ).
    the setting Get data by request.
    2.Activate 2Lis_03_bf datasource in rsa5 & LBWE fill the setup
    tables in the transaction oli1bw and transport in
    rsa6.Replicate datasource into bi system. Create transformations
    between datasource and DSO.Create Init of delta with data
    transfer Info package and load the data upto PSA..
    Create DTP and set it to Delta With Get data by request and load
    data to the DSO. And then create DTP with Delta with get data by
    request between DSO and infocube  and load the data into the
    same cube in which the 2lis_03_bx was loaded and Compress the
    request with No marker update set. ( I checked the check box and
    compressed the request ).
    3.Activate 2Lis_03_um datasource in rsa5 & LBWE and fill the
    setup tables in olizbw and transport
    in rsa6.Replicate datasource into bi system. Create
    transformations between datasource and DSO ( Same DSO in
    which 2lis_03_bf was loaded ).   Create Init of delta
    with data transfer Info package and load the data upto PSA..
    Create DTP and set it to Delta With Get data by request and load
    data to the DSO. And then create DTP with Delta with get data by
    request between DSO and infocube  and load the data into the
    same cube in which the 2lis_03_bx & 2lis_03_bf were loaded and
    Compress the request with No marker update set. ( I checked the
    check box and compressed the request ).
    Can anyone please suggest me whether it is the correct procedure
    or not and also suggest me what are the standard relevant cubes
    and DSO's ( With keyfields )  which are used to load the data from
    2lis_03_bx,2lis_03_bf, 2lis_03_um.
    Full points will be assigned.
    Thanks & Regards,
    V N.

    Dear VN,
    the way you are extracting is correct and while loading to the cube and doing the compression especially for inventory please follow the steps as follows.
    2lis_03_BX = Stock initialization, (first we have to do this and check no marker update and compress)
    2lis_03_BF = Material Moments, (do the loadu2026and donu2019t do compression)
    2lis_03_UM = Revaluations, (after this load also completed do compression on both the loads normally)
    NOTE: if you want to see for which request the no marker update option is set and for which request the option is not used, go to the log file of each compression and if you see messages like REF POINT UPDATE then the marker was not updated in this compression.
    Please assign points if it helps...
    still you need any further calirify please let us know..
    Thanks,
    Ashok

  • How is the tax procedure determined on a transaction?

    Hi !
    We are using a bolt-on for US tax transactions and internal functionality for VAT. 
    Now, the US entity needs to sell from an EU plant under an EU VAT ID.
    We crated and assigned a new pricing procedure in SD to pick up MWST conditions and created appropriate condition records to assign EU tax codes.
    In SD, all goes well; the appropraite tax codes are assigned, rates used in calculations etc.
    However, when we release to accounting. We get an error that "Tax Code XX is not assigned to Tax Procedure TAXUSX."
    It was my understanding that the country of the shipping plant was the country that drives the Tax Procedure selection, so I would have expected the system to find the appropriate EU tax procedure etc.  Why is the system finding the Tax Procedure for the United States?
    Help!

    Hi,
        In SD the country of the shipping plant is used for the tax procedure.
        In FI the country of the company code is used for the tax procedure.
        In cases where the countries are different ,you have to maintain the same tax code in both relevant procedures.
       SD only transfers the tax code to accounting (not code + procedure) , so accounting looks for that tax code in TAXUSX.
    Kind regards

  • About the pricing procedure of purchasing order

    Hello friends,
    can anyone tell me about the pricing procedure,conditions & texation of Purchase order?
    and hoew to maintain all those term in Customisation?

    The Basic thing is Condition Technique. In which there are 
    1. Access Sequence 2. Condition Record 3. Condition Type 4. Condition Table. 
    A Access Sequence access a Condition Record of a Condition Type in a Condition Table is a  Condition Technique.This is a simple logic 
    Here the Condition Type is very important like PB00, PBXX,RA01 etc. 
    In the background every Condition Type has its own defition means the purpose of the Condition Type  like, is it for Pricing or Percentage, Quntity base, Accrual Feilds etc is to be defined to work this functions.  Normally we use the existing ones without any risk. But some cases, we have to Create a New Condition Types as per the organisation requirement. 
    The Pricing Schema is useful to minimise condition types while mention prices for Vendor on the basis of Pricing Schema which we defined according to organisation requirement. 
    The Pricing Schema means the calculations procedure of Condition Type. 
    Ex.  RA01 - Discoount % is caclulated on PB00 - Gross Price  means 
    RA01 is based on PB00  like that we have to define in the Pricing Schema 
    which makes easy to use in real time. 
    Here PB00 has the Access Sequence - 0002. 
    But RA01 does not have the Access Sequence.Why because it is a dependent on PB00. But both are Condition Types. 
    In the system, by default some standard  Scheme will be there at Vendor Schema Group in the Vendor Master Screen means the standard one is assigned which is very lengthy which may fullfil our requirement. But some cases which may not fullfil our requirement, in such we have to define. 
    For the configuration, I may not able to explain properly through here but will give some idea. 
    Configuration: SPRO - IMG - Material Management - Purchasing - Conditions - Define Price Deternmination Process:
    1. Define Access Sequence 
    2. Define Condition Type 
    3. Defince Calculation Schema:- Here you have to define the Schema - Define Schema group 
    1. Define Schema Group vendor 
    2. Define Pricing Schema group 
    3.  Schema group for Purchase Organisation 
    4. Assign Schema group to Purchase Organisation - Define Schema determination 
    1.define calculation schema for Standard purchase organisation 
    After completion of the Schema Group, we have to assign it to Vendors. 
    Then whenever we use any transaction with this Vendor, the concerned  Schema will work as configured by us. 
    The Pricing in MM is vast because each Condition have its own importance and each Access Sequence have its own importance. So you need not bother about this. First you learn how to define the Calculation Schema through the above.

  • HT2534 when i create the apple ID with the above procedure, i dont see "none" options under credit card selection, please help.

    When i create the apple ID with the above procedure, i dont see "none" options under credit card selection, please help.

    Apple needs people like you.

Maybe you are looking for