LOV with page substitution

I would like to create a LOV that has a dynamic page variable in it and can be used across multiple pages (meaning that the page variable needs to change based on the page calling the LOV).
For example, on P1
select full_name fn1, full_name fn2
from users
where
role = 'ASM' and
( SALES_REGION = :P1_SALES_REGION or
:P1_SALES_REGION = 'ALL')
But this LOV is also used on Page 3
select full_name fn1, full_name fn2
from users
where
role = 'ASM' and
( SALES_REGION = :P3_SALES_REGION or
:P3_SALES_REGION = 'ALL')
Is there a way to write ONE LOV that can be called by multiple pages such that the page variable is dynamic or substituted? I trued the APP_PAGE_ID variable, but I'm unclear of what the syntax would be in the above where clause.

Jim - Try this as a named, dynamic LOV to start experimenting with:  return 'select :APP_PAGE_ID d,1 r from dual where
    :P'||&APP_PAGE_ID.||'_X <> ''ALL'''Scott

Similar Messages

  • In Acrobat pro 9, I can't find staple and fold options for booklets and no matter what options I choose in the print dialogue my booklet ends up with pages upside down and out of order?

    In Acrobat pro 9, I can't find staple and fold options for booklets and no matter what options I choose in the print dialogue my booklet ends up with pages upside down and out of order? I am working on a Macbook pro running OS X 10.9.4.  Our printers are fully capable for booklets with staples and folds. Would love some help. Thank you!

    To: ~graffiti
    (This email is not intended to go on public forum -- but I wanted to respond
    to you)
    Thanks for your reply....FYI...I was trying to download from www.adobe.com on
    the specific page that has downloads of your products.    As far as the
    alternate source is concerned I am not totally sure what the capabilities it has as
    I am recovering from a hospital stay and had to send my wife to retailer to
    pick this up because I am accessing email from home until I return to work and
    need something to work now.  I don't yet have the SW.  (I would have had her
    buy the actual Adobe Pro 9.0 -- but it is a wapping $499 and change).
    Regards,
    Staurt Rednor ("Stu") - [email protected]
    ===========================================================
    Subj:   New message: "No matter what I try can't download
    Adobe Pro 9.0 or free Adobe Reader"   
    Date:   4/5/2009 7:38:17 PM Eastern Daylight Time  
    From:   [email protected]   
    Reply-to:   [email protected] 
    To: [email protected]  
    Sent from the Internet (Details)   
    SGuitar43,
    A new message was posted in the thread "No matter what I try can't download
    Adobe Pro 9.0 or free Adobe Reader":
    http://forums.adobe.com/message/1867664#1867664
    Author  : ~graffiti
    Profile : http://forums.adobe.com/people/~graffiti
    Message:

  • Using LOV with Validation on the Numeric Fields results in Error

    Dear JHeadstart Team,
    During my work with lov I encountered another problem. I defined a lov and attached the lov to a numeric field and check the LOV for validation. Now when I use LOV using the LOV button it works fine but when I enter some numbers and then press tab the LOV was not shown correctly and resulted in the following errors and the worst thing is that you can not navigate to any other pages and all try to navigate to other pages results in errors too. When we put the same LOV on a string field (which is not desirable for us) it worked fine.
    It seems to me like a bug. Am I right? Is ther any solution or workaround for this problem?
    Thanks in advance,
    Navid
    16:31:29 DEBUG (LovItemBean) -Cleared value of item HrTrainingCourseSchedulesTitle
    16:31:29 DEBUG (LovItemBean) -Cleared value binding #{bindings.HrTrainingCourseSchedulesTitle.inputValue} of item HrTrainingCourseSchedulesTitle
    16:31:29 ERROR (ApplyRequestValuesPhase) -java.lang.ClassCastException: java.lang.Long
    javax.faces.el.EvaluationException: java.lang.ClassCastException: java.lang.Long
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
         at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1079)
         at oracle.adf.view.faces.component.UIXEditableValue.broadcast(UIXEditableValue.java:247)
         at oracle.adf.view.faces.component.UIXSelectInput.broadcast(UIXSelectInput.java:215)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:249)
         at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:307)
         at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at com.pooya.controller.jsf.PooyaAuthenticationFilter.doFilter(PooyaAuthenticationFilter.java:256)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassCastException: java.lang.Long
         at oracle.jheadstart.controller.jsf.bean.LovItemBean.validateWithLov(LovItemBean.java:101)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         ... 31 more

    Hi Navid,
    We ran into the same bug and have the next workaround for it:
    We extended the JHeadstart class 'LovItemBean' and we have overridden the method 'validateWithLov(...)' with:
      public void validateWithLov(ValueChangeEvent valueChangeEvent)
        Object newValue = valueChangeEvent.getNewValue();
        if(newValue != null && !(newValue instanceof String))
          newValue = newValue.toString();
          ValueChangeEvent newEvent = new ValueChangeEvent(valueChangeEvent.getComponent(), valueChangeEvent.getOldValue(), newValue);
          newEvent.setPhaseId(valueChangeEvent.getPhaseId());
          super.validateWithLov(newEvent);
        else
          super.validateWithLov(valueChangeEvent);
      }Next step is to use a custom template in your JHeaedstart Application Structure file for 'LOV_ITEM_BEAN'. In this custom template you should use your own class as 'managed-bean-class' instead of the default JHeadstart one.
    Now you can safely generate LOV with validation of number fields.
    Maybe something the JHeadstart can pcik up in the next release of JHeadstart :-)
    Hope this helps.
    Pascal

  • LOV with subselect shows return_value instead of display_value

    Hi,
    I have the following dynamic SQL based LOV with a union in it that does not display correctly in the application.
    SELECT role_name d, role_seq r
    FROM apex_app_roles ar
    WHERE security_level = 1
    AND :F2500_APP_USER in
    (SELECT au.user_id FROM
    apex_app_user au,
    apex_app_user_roles auar
    WHERE ar.role_seq = auar.role_seq
    AND auar.user_seq = au.user_seq)
    UNION
    SELECT role_name d, role_seq r
    FROM APEX_APP_ROLES ar
    WHERE security_level = 0
    ORDER BY 1
    The problem I have is the first part of the SQL is displaying the return_value instead of the display_value. If I comment out the following the proper value is displayed in the application.
    AND :F2500_APP_USER in
    (SELECT au.user_id FROM
    apex_app_user au,
    apex_app_user_roles auar
    WHERE ar.role_seq = auar.role_seq
    AND auar.user_seq = au.user_seq)
    We currently have version 4.0.1.00.03 installed.
    Is there an issue with this version and what I am trying to do or is there something wrong with what I'm doing? The SQL returns the proper results if I run it in the SQL workshop so I'm at a loss here and if anyone can help it would be greatly appreciated.
    Thanks,
    Bruce

    The value is correct. I can run the entire SQL in workshop using parameter substitutions and it returns all the values correctly. So running this
    SELECT role_name d, role_seq r
    FROM apex_app_roles ar
    WHERE security_level = 1
    AND :F2500_APP_USER in
    (SELECT au.user_id FROM
    apex_app_user au,
    apex_app_user_roles auar
    WHERE ar.role_seq = auar.role_seq
    AND auar.user_seq = au.user_seq)
    UNION
    SELECT role_name d, role_seq r
    FROM APEX_APP_ROLES ar
    WHERE security_level = 0
    ORDER BY 1
    returns all the rows and looks like this.
    D     R
    ACP_ADMIN     3
    READ_ONLY     2
    READ_WRITE_ALL     1
    SERVICE_DESK_ADMIN     4

  • LOV with custom popup in af:query

    Hi,
    We have a use case where we need to display an LOV field in Search Panel (af:query). But, the LOV in Search Panel should be displayed with a custom popup.
    Is it possible display a field in Search Panel as input LOV with custom popup ?

    Hi,
    Is it possible display a field in Search Panel as input LOV with custom popup ?
    Yes. You assign a LOV definition to the attribute that then you display in the af:query component. You can also have dependnet LOV implemented this way. However, you cannot have a custom (your own) list of value popup dialog used
    See page 8 and following in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/jan2011-otn-harvest-300940.pdf
    Frank
    Edited by: Frank Nimphius on Jun 29, 2011 11:36 AM

  • Just discovered I need a reference tool for research reports with pages...

    I love the great tutorial that tells you to insert a function that does not come standard with pages.  One would really think a bibliography tool or simple endnote feature would be pretty basic for a word processor.
    So.....EndNote is the featured program on the tutorial....though I don't believe it is made by Apple (?). 
    Q:  Are there other options for a program that will do research report-level citations in Pages?  Or do I have to now spend 2x what I paid for the entire iWorks suite for this simple luxury?

    HokieHi wrote:
    One would really think a bibliography tool or simple endnote feature would be pretty basic for a word processor.
    You can tell Apple here:
    http://www.apple.com/feedback/pages_ios.html
    (Though it's 7 years now they have not added that feature)

  • LIST MANAGER - Replace popup lov - with stationary scrollable box

    Sorry... I thought this was Oracle 10g XE form...could you direct me to right form.
    LIST MANAGER - Replace popup lov - with stationary scrollable box...
    The end result would be: 2 scrollable list boxes separated by the word ADD / REMOVE. One to select from and the other box to act as collection box
    The popup LOV is quick and fast ..but is a little time consuming
    Oracle 10g XE
    Message was edited by:
    user518110

    Hi user518110,
    1) please update your forum handler to a more friendlier name.
    2) I think your are looking for the Shuttle component in Oracle APEX, like on the following page http://apex.oracle.com/pls/otn/f?p=2672:2
    If you are using Oracle XE you are probably using Oracle APEX 2.1, you have to upgrade this version to Oracle APEX 3.0 which contains this new control. See http://www.oracle.com/technology/products/database/application_express/html/3.0.1_and_xe.html for details.
    Patrick
    My APEX Blog: http://www.inside-oracle-apex.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://apexplugin.sourceforge.net/ New!

  • Dynamic LOV with where conditions

    Hi all! I have a question regarding Dynamic LOVs. I have a List of values that can be used from three pages, the query is something like this:
    SELECT a.CODE CODE_DISPLAY,
    a.CODE CODE_RETURN
    FROM OREF_COUNTRIES a,
    OREF_REGIONS b
    WHERE a.REG_ID = b.ID AND
    b.CODE = :P336_LOV_REGION;
    The thing is I don't want to hardcode the name of the item ":P336_LOV_REGION" because this is the name of 1 item of one page, and I'd like to use this LOV from another two pages, so the name of the item won't be ":P336_LOV_REGION". How can I create a reusable dynamic LOV with a where condition depending on one item of the page?
    Thanks!!

    hi! anyone has any information about this?
    Daniela.

  • Strange Issue with Pop-up LOV with key value return

    Hi,
    I have a region, containing several LoV items. One of the items is of type PoP-up LoV with return key value.
    Now when i run this page, i get page cannot be found error. But, If i a change the item type to select list with submit ( and not pop up lov with return key), I am able to run the page. It does not give me page cannot be found error.
    Please suggest some pointers as to why I am running into this issue when item type is pop-up lov with return key value.
    Regards,
    Rave.
    Edited by: Rave on May 13, 2009 5:13 AM

    what version of apex are you using? Can you recreate the problem on apex.oracle.com?

  • JHS-00109 Using LOV form page

    Hi,
    In JHeadstart version 9.0.4.5, I implemented the LOV Form Page functionality for BC4J/Struts/UIX as described in jhs_tutorial_1, and it worked perfectly.
    After upgrading JHeadstart to 9.0.5.1.18, I receive the JHS-00109 (You cannot re-submit this page after using the back button, or by using the refresh button) error message when I try to submit the page which called the LOV.
    Please help!
    Greets,
    Guido Zeelen

    Guido,
    A word of warning:
    I understand that you switched the order of the lines
    sessionData.setAttribute(LAST_ISSUED_PAGE_TIMESTAMP, currentTime, oracle.jheadstart.controller.SessionData.SESSION_SCOPE);
    and
    if (pageTimeStamp!=null && !pageTimeStamp.equals(""))
    so that in your version LastIssuedPageTimeStamp is only updated if pageTimeStamp has a value.
    Be careful with that change, because the original order was deliberate: it was needed to fix bug 3584358 (CHECKPAGETIMESTAMP DOESN'T PREVENT SUBMIT IF BACK BUTTON USED AFTER BROWSE BUTTO). From the bug text:
    If you use the browse buttons (previous/next in form style layout) and then use the browser's back button to go to the previous displayed page, checkpagetimestamp does not work correctly anymore.
    An example from the Oil demo:
    1. Go to the Refineries select page, and edit the first one.
    2. Use the > button to go to the second refinery.
    3. Use the browser's back button to go back to the first refinery.
    4. Update something in the values of the first record, and press Save
    5. You get an error JBO-25013: Too many objects match the primary key oracle.jbo.Key[1 ]. and the browse section shows that it thinks this is row 2.
    So what happened is that the values of row 1 were used to update row 2.
    This bug can also result in other kinds of error messages because you try to do something for one row which is applied to another row instead.
    What should happen, is that if there is no pagetimestamp in the request, CheckPageTimeStamp still updates the lastissuedpagetimestamp to note that navigation to another page has taken place. The only exception to this rule should be if an LOV is called, which should be recognizable.
    A way to recognize an LOV (or more general, a page which should not cause an update of lastissuedpagetimestamp) is to submit a pagetimestamp field with the value "ignore".
    In case of UIX, lov pages do not go through CheckPageTimeStamp, but in case of JSP they do. We can get JSP LOV pages to put "ignore" in pagetimestamp by changing the JSP include buttonsFindForm.jsp. This include is also used in Find pages, but it does not matter (much) if find pages also submit "ignore", because showing a find page does not change dataobjectsets.
    In your case (custom made UIX LOV) it does go through CheckPageTimeStamp, so I think a better solution is to somehow make sure that a pageTimeStamp with value "ignore" is submitted. My advice is to go back to the JHeadstart version of CheckPageTimeStamp, add to your UIX LOV page (within the form that will be submitted) a line like this:
    <formValue name="pageTimeStamp" value="ignore"/>
    and debug what happens in CheckPageTimeStamp.
    If this fixes your problem, please let us know, because then we apparently have an omission in Tutiorial 1!
    kind regards,
    Sandra Muller
    JHeadstart Team

  • Issue With Page Break When Sorting is also applied on group

    Hi
    I am facing an issue with Page break only when I have sorting applied on the grouping that I have in the template.
    The following is the sample XML
    <ROWSET>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Accounts</ORGANIZATION>
    <FULL_NAME>test1,</FULL_NAME>
    <ELEMENT_NAME>TEST BONUS</ELEMENT_NAME>
    <CLASSIFICATION>Supplemental Earnings</CLASSIFICATION>
    <RUN_VALUE>250</RUN_VALUE>
    <MONTH_VALUE>500</MONTH_VALUE>
    <QUARTER_VALUE>500</QUARTER_VALUE>
    <YEAR_VALUE>500</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test2</FULL_NAME>
    <ELEMENT_NAME>VOLUNTARY AD AND D</ELEMENT_NAME>
    <CLASSIFICATION>Voluntary Deductions</CLASSIFICATION>
    <RUN_VALUE>5.19</RUN_VALUE>
    <MONTH_VALUE>10.38</MONTH_VALUE>
    <QUARTER_VALUE>10.38</QUARTER_VALUE>
    <YEAR_VALUE>10.38</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test3</FULL_NAME>
    <ELEMENT_NAME>HMO MEDICAL</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>19.67</RUN_VALUE>
    <MONTH_VALUE>39.34</MONTH_VALUE>
    <QUARTER_VALUE>39.34</QUARTER_VALUE>
    <YEAR_VALUE>39.34</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test4</FULL_NAME>
    <ELEMENT_NAME>PENSION NR DC</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>0</RUN_VALUE>
    <MONTH_VALUE>360</MONTH_VALUE>
    <QUARTER_VALUE>360</QUARTER_VALUE>
    <YEAR_VALUE>360</YEAR_VALUE>
    </ROW>
    </ROWSET>
    In the template I group the data based on CLASSIFICATION and then sort on the same column CLASSIFICATION. I have a page-break applied for every group.
    When I generate the PDF, I am not getting the page-breaks for every group. Instead some of them are displayed in the same page.
    But when I remove the sorting that I had in the template on the column CLASSIFICATION, I am getting the output in the desired way but not in a sorted order.
    kumar

    Hi All,
    I am using MS-WORD 2007 and BI Publisher desktop 10.1.3.3.3.
    When I use split-by-page-break, splitting is performed for every line .. but not for group of lines.
    Can anybody throw some light on this?
    FYI...
    I am using this code:
    ?if: position() mod 6= 0?
    ?split-by-page-break:?
    ?end if?
    (Of course with in tags)
    in G_LINES loop.
    Can anybody help me out :-(
    --Saritha                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Open Pages 3 documents with Pages 5?

    I'm thinking of updating from Pages 3.x to 5.x.
    Is it true one cannot open Pages 3 files with Pages 5?
    If so, what is the workaround?

    Yes, it's true. The new versions cannot open any iWork '08 or earlier documents or templates. You will get an error saying to open the files in iWork '09 then open them in the new version. I suggest that you buy a retail copy of iWork '09 from a third party such as Amazon or eBay & then update to the new iWork apps in the Mac App Store. You might check this link for the iWork '09 trial. I have no idea if it is still available.
    If you’ve already purchased the new iWork apps in Mavericks, you can also use this trick to get Pages 4.3. If you still have access to a Mac running Mountain Lion. It must be Mountain Lion or Lion. Snow Leopard won't work. If the iWork '09 apps are installed, compress them & delete the originals. Launch the Mac App Store & click on the 'install' buttons under the iWork apps. You will get a message that you can't install the new version on this Mac but it will offer to download the previous version for you. Voilá, you have the self-contained apps that you can copy to another Mac.
    If you don't want to use iWork '09 to convert the files to a format that the new versions can open you can export them as Microsoft Office documents - Word, Excel, PowerPoint - then open those in the new versions.

  • Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Same problem here (no graphics in header or footer) and the problem has been reported months ago. It is another bug/feature lost when Apple moves from 09 to the iCloud-compatible versions.  Complain to Apple, you may have better chance than me and they may finally listen to their users....

  • Problem with variable substitution.

    Hello,
    I asked this before but now I want to change the question focus.
    I have scenario from IDOC to XML file.
    The scenario is digital invoice for our company in Mexico and I end this scenario with java mapping that I import from SAP marketplace.
    Now I have request to add to the XML file name the content of the field "<ODN_NUMBER>" from the XML data.
    I try to use with variables substitution.
    My payload is:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ZINVOIC02>
    - <IDOC BEGIN="1">
    - <EDI_DC40 SEGMENT="1">
    <TABNAM>EDI_DC40</TABNAM>
    <MANDT>400</MANDT>
    <DOCNUM>0000000006599015</DOCNUM>
    <DOCREL>700</DOCREL>
    <STATUS>30</STATUS>
    <DIRECT>1</DIRECT>
    <OUTMOD>2</OUTMOD>
    <IDOCTYP>INVOIC02</IDOCTYP>
    <CIMTYP>ZINVOIC02</CIMTYP>
    <MESTYP>INVOIC</MESTYP>
    <STDMES>ZEDI</STDMES>
    <SNDPOR>SAPDEV</SNDPOR>
    <SNDPRT>LS</SNDPRT>
    <SNDPRN>DEV400ECC</SNDPRN>
    <RCVPOR>SAPDEV</RCVPOR>
    <RCVPRT>LS</RCVPRT>
    <RCVPFC>LS</RCVPFC>
    <RCVPRN>MX_INV</RCVPRN>
    <CREDAT>20100118</CREDAT>
    <CRETIM>075931</CRETIM>
    <SERIAL>20100118075931</SERIAL>
    </EDI_DC40>
    - <E1EDK01 SEGMENT="1">
    <CURCY>USD</CURCY>
    <HWAER>MXN</HWAER>
    <WKURS>10.55530</WKURS>
    <ZTERM>0090</ZTERM>
    <KUNDEUINR>ACH971209KRA</KUNDEUINR>
    <BSART>INVO</BSART>
    <BELNR>0100017295</BELNR>
    <BRGEW>0.045</BRGEW>
    <GEWEI>KGM</GEWEI>
    <FKART_RL>LR</FKART_RL>
    <RECIPNT_NO>0000012977</RECIPNT_NO>
    <FKTYP>L</FKTYP>
    - <Z1EDK01 SEGMENT="1">
    <XML_VERSION>2.0</XML_VERSION>
    <ODN_PREFIX>A</ODN_PREFIX>
    <ODN_NUMBER>1883</ODN_NUMBER>
    <DATE_TIME>2009-11-01T17:05:10</DATE_TIME>
    <DOC_SUB_TOTAL>4.22</DOC_SUB_TOTAL>
    <DOC_DISCOUNT>3.00</DOC_DISCOUNT>
    <DOC_TOTAL>1.40</DOC_TOTAL>
    </Z1EDK01>
    And the xml that I create is:
      <?xml version="1.0" encoding="utf-8" ?>
    - <Comprobante xmlns="http://www.sat.gob.mx/cfd/2" version="2.0" serie="A" folio="1883" fecha="2009-11-01T17:05:10" sello="NxZCWU8hMJMiEc2fSZafpS81Z9rUScbBotvJ8lcW76GGpmcD2lFyAV7DlNQKecYMnQJnwMVoHfGjzhpFJrjLuRcyqU3nOnH1mE1JMxY/MjLkal0Ybo2aRKCorQxx+F/Vy5ucvyeDDFAt2gx0PeHJhFS3tJ6ssc6nryz3iUr8c=" noAprobacion="49806" anoAprobacion="2009" formaDePago="Pago en una sola exhibiciףn" noCertificado="00001000000100891274" condicionesDePago="90 DAYS FROM BILL OF LADING" subTotal="4.22" descuento="3.00" motivoDescuento="Customer DiscountCustomer Discount" total="1.40" tipoDeComprobante="ingreso">
    - <Emisor rfc="NMS940324RY6" nombre="Netafim Mexico S.A. de C.">
      <DomicilioFiscal calle="Leibnitz" noExterior="20" noInterior="901" colonia="Anzures" localidad="Mexico city" municipio="Miguel Hidalgo" estado="Distrito Federal" pais="Mexico" codigoPostal="11590" />
      </Emisor>
    - <Receptor rfc="ACH971209KRA" nombre="AGRICOLA 5 HERMANOS SA DE CV">
      <Domicilio calle="JUAN DE LA BARRERA NO 1249 NORTE" localidad="COL. CHAPULTEPEC" municipio="CULIACAN" estado="Sinaloa" pais="Mexico" codigoPostal="80040" />
      </Receptor>
    -     <Conceptos>
    I try to use with this variable:
    payload:ZINVOIC02,1,IDOC,1,E1EDK01,1,Z1EDK01,1,ODN_NUMBER,1
    I received in RWB the error:
    Attempt to process file failed with com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: var_filename
    Thank you in advance for your help
    Elad

    But my target is looks very strange:
      <?xml version="1.0" encoding="utf-8" ?>
    - <Comprobante xmlns="http://www.sat.gob.mx/cfd/2" version="2.0" serie="A" folio="1883" fecha="2009-11-01T17:05:10" sello="NxZCWU8hMJMiEc2fSZafpS81Z9rUScbBotvJ8lcW76GGpmcD2lFyAV7DlNQKecYMnQJnwMVoHfGjzhpFJrjLuRcyqU3nOnH1mE1JMxY/MjLkal0Ybo2aRKCorQxx+F/Vy5ucvyeDDFAt2gx0PeHJhFS3tJ6ssc6nryz3iUr8c=" noAprobacion="49806" anoAprobacion="2009" formaDePago="Pago en una sola exhibiciףn" noCertificado="00001000000100891274" condicionesDePago="90 DAYS FROM BILL OF LADING" subTotal="4.22" descuento="3.00" motivoDescuento="Customer DiscountCustomer Discount" total="1.40" tipoDeComprobante="ingreso">
    - <Emisor rfc="NMS940324RY6" nombre="Netafim Mexico S.A. de C.">
      <DomicilioFiscal calle="Leibnitz" noExterior="20" noInterior="901" colonia="Anzures" localidad="Mexico city" municipio="Miguel Hidalgo" estado="Distrito Federal" pais="Mexico" codigoPostal="11590" />
      </Emisor>
    - <Receptor rfc="ACH971209KRA" nombre="AGRICOLA 5 HERMANOS SA DE CV">
      <Domicilio calle="JUAN DE LA BARRERA NO 1249 NORTE" localidad="COL. CHAPULTEPEC" municipio="CULIACAN" estado="Sinaloa" pais="Mexico" codigoPostal="80040" />
      </Receptor>
    I need to add folio field
    Elad

  • Dynamic target directory with variable substitution

    Hi everyone.
    I'm trying to save a file in a folder with receiver adapter.
    This folder is determined in runtime and passed to the adapter with variable substitution. My problem is that in RWB i get a error like this : 'Content of variable XXXXX is not safe'
    Does anybody have done a variable substituion for output directory receiver file adapter?
    Regards,
    Inigo.

    Hi,
    Check this links,
    /people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    Regards,
    Phani

Maybe you are looking for