Creation of sequence in etext template

Hi All,
I am creating a custom etext template for a invoice payment which will be forwarded to bank.
The file will be generated for each invoice payment made one at a time.
So, I have a requirement where in need to generate a sequence number in of the fields of the extext template. When the first file is send to bank, the sequence should be 1, for the second run the sequence should display 2 and so on.
Here we cannot use the <RESET AT LEVEL> as RECORD or LEVEL as we need to control the sequence outside the etext template and in the database. So, I believe we should use PERIODIC_SEQUENCE that controls the value in database level.
My question is how to achieve the relation between the database value and the etext template value.
ex:
<DEFINE SEQUENCE> allrecordsequence
<RESET AT LEVEL> PERIODIC_SEQUENCE
<INCREMENT BASIS> /outboundtransaction/paymentsequence[sequencename=allrecordsequence]/lastvalue + 1
<END DEFINE SEQUENCE> allrecordsequence
In the etext template
sequence(allrecordsequence)
The value in the etext template is always generation as 1, as the database record paymentsequence/lastvalue is null.
Here is the user guide notes:
Reset at Level
The reset at level subcommand defines where the sequence resets its starting number. It is a mandatory subcommand. For example, to number the payments in a batch, define the reset at level as Batch. To continue numbering across batches, define the reset level as RequestHeader.
In some cases the sequence is reset outside the template. For example, a periodic sequence may be defined to reset by date. In these cases, the PERIODIC_SEQUENCE keyword is used for the reset at level. The system saves the last sequence number used for a payment file to the database. Outside events control resetting the sequence in the database. For the next payment file run, the sequence number is extracted from the database for the start at number (see start at subcommand).
But the sequence value in the database is not getting incremented.
Appreciate an early response as it is really urgent.
Thank you in advance.

I have developed the solution using the below approach-
Requirement - ( My requirement was a little different to what was mentioned above)
     To generate a sequence number in the e-text template of a invoice payment file.
     In a day when the first file is send to the bank, the sequence should be 1, for the second file the sequence should be 2.
     For the next day run the sequence value should be reset to 1.
Approach 1) Use the IBY_FD_EXTRACT_EXT_PUB hook and Use sequence in the e-text template.
GET_INS_EXT_AGG procedure is called once only for the payment instruction.
It will add XML data element under OutboundPaymentInstruction tag.
Add a new XML tag with the successful count of the formatted payments in a day.
SQL query.
SELECT COUNT (1)
INTO v_payment_count
FROM iby_payments_all a
WHERE UPPER (a.org_name) = <org_name>
AND UPPER (a.payment_profile_sys_name) =
'profile system name'
AND TRUNC (a.creation_date) = TRUNC (SYSDATE)
AND a.payment_service_request_id <
(SELECT MAX (b.payment_service_request_id)
FROM iby_payments_all b);
In the e-text template use the sequence number
<DEFINE SEQUENCE>     RecordSeq1
<RESET AT LEVEL>     OutboundPaymentInstruction
<INCREMENT BASIS>     LEVEL
<START AT>          1
<END DEFINE SEQUENCE >     RecordSeq1
While referring to the sequence use :- SSPN_PAYMENT_COUNT + SEQUENCE_NUMBER(RecordSeq1)
to get the latest count of payment files.
Approach 2) Using payment system
<DEFINE SEQUENCE>      RecordsSeq1
<RESET AT LEVEL>      PERIODIC_SEQUENCE
<INCREMENT BASIS>      LEVEL
<START AT> /PaymentSequence[SequenceName=’RecordsSeq1’]/LastValue + 1
<END DEFINE SEQUENCE > RecordsSeq1
By using a PERIODIC_SEQUENCE it will periodically generate the numbers.
SEQUENCE_NUMBER(RecordsSeq1) is used to generate the number.
I believe we need to have a payment system defined and associate the same to a Payment Process Profile.
Only then can it have association with the last sequence number in the database.
Please correct me if the Approach#2 set up is incorrect.
Since Payment system was not necessary for the payment profile that we have used I have used approach 1
Approach 2 can be used as a guideline :)

Similar Messages

  • How to use XDOXSLT in rtf template layout for etext template creation

    <DEFINE CONCATENATION>     BookDetails
    <BASE LEVEL>     Category
    <ELEMENT> Name || '/' || Price     
    <DELIMITER>      '/'
    <END DEFINE CONCATENATION>     BookDetails
    With EFTProcessor the above details are created in xsl file as follows
    <xsl:template name="CONCAT_BookDetails">
    *I need to declare one more variable here
    EG: <xsl:value-of select="xdoxslt:set_variable($mycount, count(.//Category))"/>
    --and use this variable for any dyanamic process inside this template. How to achieve this in rtf template by declaring a xdoxslt function. How to declare this
    syntax in rtf layout so that it creates a varibale in xsl template using the EFTProcessor. Please help me out. The main point here is to include xslt functions in
    rtf template layout for etext template creation.*
    <xsl:for-each select=".//Category">
    <xsl:call-template name="CONCAT_BookDetails_V"/>
    </xsl:for-each>
    </xsl:template>

    in the next time use BI Publisher forum - BI Publisher
    <?format-number(ENTERED_CR,'##,##0.00')?>it's works for me
    output:
    444    ->  444.00
    444.55 ->  444.55

  • Can we have a for loop/ the loop control construct in an etext template?

    Hi All,
    Can we have a loop control construct in etext templates?
    I have to print a remittance advice of only 11 invoices per page only. How can I do this?
    Your help in this regard is really appreciated.
    Rgds,
    Kiran Panditi

    Hi Ravi,
    Do you use SharePoint Designer 2007?
    Have you tried to use sequence approval workflow with participants in serial order?
    http://office.microsoft.com/en-001/sharepoint-designer-help/understand-approval-workflows-in-sharepoint-2010-HA101857172.aspx
    If you use SharePoint Designer 2013, there is an "loop" operation available you can take a look.
    http://prasadtechtactics.blogspot.in/2012/07/sharepoint-designer-2013-workflows-part_24.html
    Thanks
    Daniel Yang
    TechNet Community Support

  • How to Print multiple Records under one level in Etext templates.

    Hi,
    I am working on the Etext templates and customizing the standard template “US NACHA PPD FORMAT”.
    This standard template don’t have a addenda record.. I have modified and it is working for single Addenda records. But when I have multiple ADDENDA records to be printed in one particular *<outboundpayment>* level, it is not printing.
    How do I modify the template so that Multiple Addenda records get printed?
    Note:     I have multiple *<MyPayables>* tags under *<OutboundPayment>* tags.
    Please help me in understanding this…
    Regards
    Pradeep G

    What you probably need to do is generate each bio
    individually with the
    <cfdocument...> tag just the way you want them. And
    then use some of
    the advanced <cfpdf...> functionality that allows you
    to append two or
    more individual PDF's into a single large PDF.
    Here are some resources that describe some of the
    <cfpdf...> functionality.
    http://www.coldfusionjedi.com/index.cfm/2007/7/9/ColdFusion-8-Working-with-PDFs-Part-1
    http://www.coldfusionjedi.com/index.cfm/2007/7/10/ColdFusion-8-Working-with-PDFs-Part-2
    http://cfpdf.blogspot.com/
    http://cfpdf.blogspot.com/2007/06/cfpdf-action-merge_27.html
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=cfpdf_02.html

  • Preview Etext template in XML Publisher Desktop (Template Builder)

    Is there a way, or are there plans, to be able to preview an eText template using the template builder, in MS Word, like you can with PDF type templates. This is a great feature when creating PDF output and saves a lot of time. It would be great to be able to do the same for eText templates.
    Cheers,
    Dave

    You can create a dummy data definition and dummy template(etext) in xml publisher admin responsibility.
    For the Data definition , in the bottom if you scroll down you will see a link for upload preview xml data file.
    After uploading the xml file access your template and you can see a preview icon.If you click it you will see a txt file popping up
    thanks
    prasanna

  • Problem in Formatting Number in eTEXT template

    Hi All
    We want to format the payment amount for check in the eTEXT template.
    We want a number with 2 digits after decimal point and a comma before 3 digits to the decimal point.
    We tried using
    Number, ####,###.##
    But for the data 135 it is printing 0000135.00, But we want it in 135.00
    Similary for data 1356.7, we would like to have 1,356.70
    I tried with some trial and errors, but no luck.
    your help is appreciated.
    Thanks & Regards
    Naga

    it should work,
    I would like to see your template,
    drop me xml and template to my id , its in profile.

  • Date formats and etext templates

    I have been working with etext templates in the last few days and am struggling with date conversion. My XML file has dates in the format DD-MON-YY and my output requires DDMMYYYY. It seems that the format conversion in etext template only works when the xml date is in the format YYYY-MM-DD. I thought I would convert the DD-MON-YY using a combination of TO_DATE and TO_CHAR but TO_CHAR doesn't seem to accept the date mask in etext templates. It looks like I will have to modify the original report unless someone has a way to achieve this in the template.
    Thanks,
    Dave

    I had to change the report. You may be able to change the setup in the reports server to alter the default date format but I didn't want to do that in case it affected the output of any of the other reports that are being run. (N.B. I haven't tried this myself so not sure it can be done).
    The change to the report is pretty simple, I just added a formula column that took a copy of the standard column in the report and used to_char to reformat the date. In my case I reformatted to YYYY-MM-DD so that I could use the template to change the format to the required style. This is just in case there is a later change in the output style so I won't have to modify the report again.
    When the date in the XML is in the format YYYY-MM-DD the documented formatting options work (e.g. "Date , DDMMYYYY" would convert "2005-10-26" to "26102005").

  • Save output of BIP report that uses etext template

    Hi,
    I have made a BIP report using etext template and when I click on View, it displays the data fine. But I want to save this as a text file with all the formatting intact. If I try to Export, the formatting goes haywire in the resultant txt file.
    Can anyone advise me how to save this as a txt file without disturbing the formatting?
    Thanks
    MS

    HI ,
    I'm new to Bi Publisher.Please help in creating the etext format. Can u exlpain me the step by step basic procedure.Is it a word or rtf format but while loading giving an etext file. Because only etext format can be burt to csv file. pleasse help me . maile me to [email protected]

  • Etext templates using the API

    HI All, I'm trying to create a Etext template using the API.
    EFTProcessor processor = new EFTProcessor();
    String template = TemplateLocator.getTemplateFullName(mergReq.getTemplateType(), mergReq.getTemplateName());
    processor.setData(input);
    processor.setTemplate(template);
    processor.setOutput("c:\\test.txt");
    processor.process();
    This output looks like it creates the xsl and not the text file. Am I missing a step?
    Any help would be greatly appreciated...
    Thanks,
    Matt
    BI standalone 10.1.3.4

    Hi,
    IINM, user hooks are available in other modules (like Sales & Marketing, Asset Management, ..etc). If you are looking for certain module, and you cannot find the proper APIs, please log a SR.
    Thanks,
    Hussein

  • What are the " eText Template Commands" in R12 ?

    Hello,
    What are the " *eText Template Commands* " in R12
    My requirement is upgrading payments 11i to r12
    In 11i Addenda RMR record is Looping, So i need use that looping in eText template in R12.
    Thanx,
    <-- Raj -->

    You probably do want 'Other Standard LMSs' selected, unless you specifically want to track to one of the other options in that LMS drop-down, correct?
    The issue you're finding is that it's using the 'MultiSco' path incorrectly?
    It should be using the 'Program Files\Adobe\Adobe Captivate 7\Templates\Publish\LMS\Standard\SCORM' path?
    I don't have CP8 setup yet so can't duplicate the issue.
    If you're sure that's the problem, just backup the '\MultiSco\SCORM\1_2\Default.htm' and copy over the proper path/files from the SCORM directory... So if CP is going to insist on an incorrect path, at least you can put the correct file where it's going to grab from.
    Or, of course, you can just swap out after publishing, right?
    Meanwhile if indeed a bug, report it here:
    Adobe - Feature Request/Bug Report Form

  • POSITION command ignored on eText template

    Hi,
    I'm building my first eText template (fixed position based) with a certain degree of success, but I cannot make XMLP respect the positions indicated in my template.
    It seems that XMLP is considering the lenght of each field and then concatenates them one after the other (not even a space between them), ignoring the position that I indicated on the first column of the template (<POSITION> command).
    Can you suggest me how to debug this problem?
    Thanks!
    Pablo

    Hi,
    Just in case anybody has the same problem, Oracle Support confirmed me that the POSITION column header has no effect on the output. It's just like the COMMENTS header.
    XMLP UG is a little bit misleading regarding this, but that's how things are.
    Cheers,
    Pablo

  • Creating etext template

    Hi,
    Good morning.
    We are currently planning to use OBI Publisher(10.1.3.4) for out transactional reporting. Since we are new to this tools we request your help on building the below scenario.
    We are using oracle db as a datasource and writing SQL for building reports.
    We need a text file to be generated as a fixed width data which is required for integerating with a 3 party vendor system. We tried build a rtf template and export on CSV, all looks fine except it has an header and double quotes on the starting and ending point of each record. We were not able to remove these characters on runtime.
    We then came to know that etext template can be used but we tried all options from searching the net and could not succeed to build a report.
    Our queries are
    1. Can we build etext template based on SQLs or it works only XML as an input file.
    2. If SQL cannot be used directly for etext is there any workaround for this.
    My SQL is as below
    select 'I'
    ||'KFA'
    ||rpad('ITC',5,' ')
    ||lpad(nvl(DECODE('KFA',
    'KA',
    SCLX.SPEC_RENTL_REQ_TXT,
    'IA',
    SCLX.PREV_MI_NAME,
    'JT',
    SCLX.PREV_LST_NAME,
    'DC',
    SCLX.EMGC_EMAIL_ADDR),' '),16,' ')
    || RPAD(nvl(SC.LAST_NAME,' '), 30, ' ')
    || RPAD(' ', 30, ' ')
    || SUBSTR(nvl(SC.FST_NAME,''), 1, 1) || RPAD(' ', 1, ' ')
    || RPAD(nvl(TO_CHAR(SLT.TXN_DT, 'YYYYMMDD'),' '),8,' ')
    || LPAD(TRUNC(SLT.NUM_POINTS), 7, '0')
    ||lpad(nvl(DECODE('KA',
    'KA',
    SCLX.SPEC_RENTL_REQ_TXT,
    'IA',
    SCLX.PREV_MI_NAME,
    'JT',
    SCLX.PREV_LST_NAME,
    'DC',
    SCLX.EMGC_EMAIL_ADDR),' '),16,' ')
    || RPAD(' ', 5, ' ')
    || RPAD(SPI.NAME, 5, ' ')
    || RPAD(' ', 2, ' ')
    || RPAD(' ', 5, ' ')
    || RPAD(SLT.TXN_num,10,' ')
    || ' ' OUTPUT
    FROM S_LOY_MEMBER SLM,
    S_CONTACT SC,
    S_CONTACT_LOYX SCLX,
    S_LOY_TXN SLT,
    S_PROD_INT SPI
    WHERE SLM.PR_CON_ID = SC.ROW_ID
    AND SC.ROW_ID = SCLX.PAR_ROW_ID
    AND SLT.MEMBER_ID = SLM.ROW_ID
    AND SLT.PROD_ID = SPI.ROW_ID
    AND UPPER(SLT.TYPE_CD) = 'REDEMPTION'
    AND UPPER(SLT.STATUS_CD) = 'PROCESSED'
    AND upper(SPI.NAME) = 'XXX'
    On execution I get the complete output in a single column( named OUTPUT) as my resultset.
    Can someone help me to build a etext template on this output. I need one record per line in a text file.
    Can someone throw some light on this.....
    Thanks in Advance
    Thanks & Regards
    Ramesh

    Our queries are
    1. Can we build etext template based on SQLs or it works only XML as an input file.
    Data input top any template has to be in XML.
    2. If SQL cannot be used directly for etext is there any workaround for this.
    No, there is no workaround to build the template.
    You need to put this query in BIP and get the xml out from there and build the template and upload the template back.

  • Automatic Creation of Documents using Document Templates in UCM

    Hi,
    We need to cater following requirements in my project and we are using Oracle UCM 11g.
    1. Can we create documents automatically using some document templates? i.e.     Auto-generation of documents based on message input and templates.
    2. Can we enter free text into some areas of the documents available in UCM repository? And can we enter that new text parts in to UCM library?
    3. Can we automatically create printable pdfs in UCM?
    Please guide me how I can achieve these functionality in UCM.
    Regards,
    Sunny

    Hi,
    When you do transfer postings, SAP will set the batch number same as the one from which you are issuing the stock. To avoid this you can set the creation of batch to B (Automatic/ Manual with check in user exit)
    You need to use following user exit at batch creation
    EXIT_SAPLV01Z_001
    EXIT_SAPLV01Z_002
    Hope this helps, reward if useful,
    Best Regards VS

  • Preview of Fixed Position Based eText template displays the formatting

    Hi,
    I am trying to create an EFT template using the eText Fixed Position Based instructions. I copied an existing Fixed Position Based template and made the changes that were needed. When I hit the Preview link, it displays the payments in the formatted template, not in the output that I'm trying to create by using the template.
    Can anyone tell me what step I'm missing? I have created other types of templates and they preview fine.
    Thanks

    There is no difference between DELIMITER_BASED and FIXED_POSITION_BASED
    you can pick up the fixed and convert it into delimiter based,
    allowed columns are MaximumLength,Format,Data,Tag,Comments. delete the rest of the columns.
    And for DELIMITER_BASED templates,After every data field row,you have to insert a delimiter row and put appropriate field delimiters in separate rows between the fields.

  • How do I set the delimiter to Tab in a etext template?

    HI , I would like to set a tab delimiter for an etext rtf template. Does any one know what section do I enter the parameter to do this (format,data level, detail, does it matter)? Also what is the correct snytax and the value for the tab delimiter? Thanks in advance!
    Matt

    I'm just starting a sizeable eText setup and I agree it's not documented well. I found useful analyzing the XDO file, which is created off the RTF template and used to actually process the XML data. Gives more clues on how the RTF needs to be structured. Issues I'm running into is that the RTF->XDO conversion is what it is, so there may be a need for custom pre-post- update of the XDO and/or the final output. But still beats formatting by hand.

Maybe you are looking for