Passing data to custom smartform from a custom program...

Hello Gurus,
Since, the function module gets generated dynamically at runtime when smartform is activated, I know that first I should use  "SSF_FUNCTION_MODULE_NAME" and pass custom smartform name to it to get the name of function module. Then I have to use call function '/XXXXXXXXX'.
Now, I am writing a custom code and I want the data from my select program in custom program to be passed to smartform ? How can I pass the data from my custom program to smartform ? Do I pass it before using function module "SSF_FUNCTION_MODULE_NAME" ? If yes, how ?
Regards,
Rajesh.

hi,
u have to declare ur structures in form interface and can retrive the data from custom program.
check this sample code.
declare structure in interface.
WA_MKPF TYPE MKPF.
write ur custom code lik this.
DATA: wahz TYPE zmemigo_form_header,
      wa_mkpf  TYPE mkpf.
DATA: t_itemz LIKE zmemigo_form_item OCCURS 0,
      t_mseg   TYPE mseg OCCURS 0,
      waitemz TYPE zmemigo_form_item,
      waitem TYPE mseg.
DATA : form_name TYPE tdsfname VALUE 'ZPS_STN'.
  DATA : fnc_module TYPE rs38l_fnam.
SELECT SINGLE mblnr INTO wa_mkpf-mblnr FROM mseg
            CLIENT SPECIFIED WHERE  mandt EQ sy-mandt
                               AND  mblnr EQ p_mblnr
                               AND  mjahr EQ p_mjahr
                               AND  bwart EQ '351'
                               AND  shkzg EQ 'H'.
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname                 = form_name
    VARIANT                  = ' '
    DIRECT_CALL              = ' '
    IMPORTING
     fm_name                  = fnc_module
    EXCEPTIONS
     no_form                  = 1
     no_function_module       = 2
     OTHERS                   = 3
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
           WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  CALL FUNCTION fnc_module
    EXPORTING
      wa_headz         = wahz
      wa_mkpf          = wa_mkpf
    TABLES
      it_itemz         = t_itemz
      it_mseg          = t_mseg
    EXCEPTIONS
      formatting_error = 1
      internal_error   = 2
      send_error       = 3
      user_canceled    = 4
      OTHERS           = 5.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

Similar Messages

  • Trigger custom workflow from a custom form

    Hi all,
    I have to trigger a custom workflow from a custom form.
    I am working on 11.5.10 using forms 6i.
    Please suggest how to trigger a custom workflow from a custom form and what are the pre requisites and additional settings to be done for this.

    Hi,
    Please follow the below mentioned steps in order to achieve the desired solution:
    1. Create the custom workflow and compile it in data base.
    2. Customize the form to trigger the custom workflow using 'WF_ENGINE.CREATEPROCESS' API.
    3. Pass parameters as 'ITEMTYPE', 'ITEMKEY', 'PROCESS NAME' AND 'USER KEY'. Though user kay is not mandatory, it helps to identify the workflow if searched using status monitor.
    4. After calling create process, set the required workflow attributes and call API 'WF_ENGINE.STARTPROCESS' to start the workflow.
    5. Make sure you commit the activity after successful call.
    Let me know if you need any additional information.
    Regards,
    pP.

  • HOW TO Trigger customized smartform from standard trasaction

    Hi,
    I have created new customized driver pgm and smartform for order ready notice,i want to triger the smartform from standard transaction vt02n.What's the procedure,pls let me know.

    hi,
    after configuring nace as specified by others, u'll have to select dat output type in ur invoice.
    goto->header>output type->
    den select dat output type.

  • How to refer Custom css from the custom file say xxcm_sc_custom.xss

    I want to refer all the custom css from other file xxcm_sc_custom.xss, which i created in my project directory and deployed in mds, The client wants all the css to be here, so how to refer this file from custom.xss file which is in java_top, i tried giving <import href="path of my file"> but there is no effect in pages, what are the exact steps for it...
    Thanks
    Babu

    Yes, thats what i tried first...can you tell me what am i doing wrong...
    This is the header part of my login page template which i am trying to edit...
    The default css that the page is using is theme_3_1.css. My css file and images are in the same directory as theme_3_1.css
    <html lang="&BROWSER_LANGUAGE." xmlns:htmldb="http://htmldb.oracle.com">
    <head>
    <title>#TITLE#</title>
    <!--[if IE]><link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_20/ie.css" type="text/css" /><![endif]-->
    #HEAD#
    <link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_20/mystylesheet.css" type="text/css">
    <link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_20/theme_3_1.css" type="text/css">
    </head>
    It is not pulling my images.
    I know my html is right, because, if i create a separate html file (away from apex) and use the above two css, again on the same directory..i am able to get the images displayed!!!!

  • Calling a Smartform from different driver programs

    Hi everyone,
    I have two driver programs and from both these programs i'm calling the same Smartform.
    I have a field in smartform. and i want it to be printed for one program but not printed when the
    smartform is called from the second program.
    Pls. can anyone help me out about how this can be achieved.
    Thanks in advance.
    Regards
    Tanu

    Create an import parameter (flag) in your smartform interface and when you call your smartform from one of these drivers pass assume 'X' value to this flag. And add a condition for the field you want to hide. like below. 
    if flag = 'X'
    show or don't show.
    endif.
    Edited by: Gungor Ozcelebi on Jul 3, 2009 5:08 PM

  • Create a table and upload data in MS ACCESS from SAP ABAP programming?

    Hi All,
    How to create a table in MS ACCESS database and Upload SAP database table data into MS ACCESS table using ABAP programming?
    Explain: My client requirement is " If he/she runs a ABAP Program, that will create a table and upload data into MS ACCESS Database table in background. "
    Could you please give the solution or code? I know the program RIACCESS and I went through the SAP Note 583698.
    Is this only solution for this?  Or Any other possibilities?
    Please give me solution.
    Thanks in advance.

    Hi,
    It is not possible to create tables in a non SAP schema from inside SAP.
    The SAP-Oracle license also does not allow you to create the table (see note 581312):
    the following actions, among other things, are therefore forbidden at database level:
    Creating database users
    Creating database segments
    Querying/changing/creating data in the database
    Using ODBC or other SAP external access methods
    Please refer following link,
    [Ckick Here|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    You can also do it by LSMW,
    If you are using Access 97, you can download directly into an access
    database from SAP. See program RIACCESS for details. You have to establish
    an RFC destination PS_ACCESS_1 and 2.
    There are then a couple of function modules. Go to SE37 and put in
    msaccess and hit PF4.
    The following is from the readme file: sapgui/ps/readme.sap
    For the MS-Access interface SAP delivers 4 files:
    WDPSASTR.EXE This is an RFC server program that is called by SAP R/3
    (PS module). This program creates a MS Access database. The structure
    information of the tables is transferred from R/3. In addition to
    these tables a table named DDIC is created. This table contains the
    structure information and should in no case be modified or deleted.
    WDPSATAB.EXE This is an RFC server program that is called by SAP R/3
    after WDPSASTR. This program filles the tables of the database with data.
    There must not be made any changes of the structure of
    the tables between the calls of WDPSASTR and WDPSATAB.
    WDPSAZET.EXE This is an RFC client program that triggers work/time
    confirmations in the PS module of SAP R/3 (like transaction CN27 Collectiv
    confirm).
    WDPSAMAT.EXE This is an RFC client program that triggers material
    confirmations in the PS module of SAP R/3 (like transaction MB1A - Goods
    Please also refer following links,
    [Click here|Upload data from MS Access tables, to SAP tables.;
    Before using the program "RIACCESS", you need to install the PS utilities, which are part of SAPGUI install CD.
    It is available in the "SAPGUIPS directory".
    Then do the followings :
    1. Select transaction code SALE -> Systems in network-> Define RFC Destination.
    2. You will need two RFC destinations (TCP/IP connections for the front-end workstation).
    Setup the two RFC destinations PS_ACCESS_1 and PS_ACCESS_2 and you'll have to get them to point to
    wdpsastr.exe and wdpsatab.exe respectively.
    3. Then execute RIACCESS and choose PS_ACCESS_1 to generate access tables.
    The system must also be able to access the RFC-DLL files (librfc2.dll, librfc3.dll, librfc4.dll, librfc5.dll, librfc6.dll, vrfc.dll).
    Please note that Access only supports tables with up to 255 fields.

  • ATrouble in passing parameter to PO Form from a Custom OAF Page

    Hi All,
    I have created a custom OAF page from where I am calling the standard purchase order screen, the URL which i am using is as below;
    form:Respapplshortname:Respkey:STANDARD:PO_POXPOEPO:po_header_id={@PoHeaderId}
    I have done the below Form Personalization for the same
    Create a when-new-form-instance personalization and create following actions
    1)
    Type: Builtin
    Builtin Type: DO_KEY
    Argument: ENTER_QUERY
    Create a WHEN NEW ITEM INSTANCE personalisation and create the following actions
    1)
    Type: Builtin
    Builtin Type: GO_ITEM
    Argument: PO_HEADERS.SEGMENT1
    2)
    Type: Property
    Object Type: Item
    Target Object: PO_HEADERS.SEGMENT1
    Property Name: VALUE
    Value :==:'PO_HEADER_ID'
    3)
    Type: Builtin
    Builtin Type: DO_KEY
    Argument: EXECUTE_QUERY
    Here in the below mentioned step
    Type: Property
    Object Type: Item
    Target Object: PO_HEADERS.SEGMENT1
    Property Name: VALUE
    Value =:253253
    If I hard code the value 253253(which is the header_id for PO_NUMBER 10031791) in the field 'value' then the PO_NUMBER form works as expected(PO Form opens up in queried mode and all the data of the PO_NUMBER is pre-populated)
    My query here is how do I pass a parameter from OAF page to PO_NUMBER form so that we are able to pass the value dynamically instead of hard coding the value(253253 as mentioned above).
    Please revert back as soon as possible in case anyone has inputs or better ways of achieving the above problem statement

    Did you ever figure out how to resolve this issue. We are facing the same issue and developer is not able to figure out.
    Thanks.

  • IPhone 5 Data and no help from Verizon Customer Serv!

    My boyfriend and I both have the iPhone 5, and an iPad on my account. We upgraded his on the iPad line since it was up for an upgrade. He got his.. and is blowing thru gb's but no big deal, he has unlimited. I had unlimited as well, got my iPhone 5 this week on Monday. I work 8-7 so I'm rarely on the internet or any data using apps on my phone. I started getting messages about using my data, but thought nothing of it, as Verizon sent these to me about a year ago and told me it was a mistake. So today I got a message that I am over my data and receiving over charges!!! So I call- BAM! We took you off your unlimited plan- nope we cannot put you back, it was grandfathered... hi um ya, I never said to take it off, nor did I agree to that... The rep says it was on social media and I should have known this.. I may be unlike the rest of the universe apparently, but I pay 0 attention to social media. Then she says the rep who upgraded my phone should have told me this.. well he did not, actually we discussed my plan (per me asking if their was a way to reduce the bill) and he suggested keeping my unlimited plan..and took my iPhone 5 order! So, since she offered me ZERO resolution or help, I asked for a supervisor.. who was as concerned about my issue as a sack of potatoes! She said you can return your iPhone 5 back to us(I would have to pay the shipping)and we can REQUSET that you have your original plan back, but we cannot guarantee that you will get it back. So I say.. You're telling me that a multi-million dollar company is taking something away, does not have to tell me it is happeneing, and opposed to wanting to keep consumers you would rather me send the device back and not re-new my service for 2 years? That does not seem like customer service, loyalty, or good business to me. She yells.. you can send it BACK and we can try to put your plan back! I had enough at that point- Filed a complaint with the FCC...
    Gave myself a few hours to calm down.. in the mean time letting my FB community know Verizon screwed me and to be careful. In which time about 6-9 friends text me telling me they upgraded to whatever device and are getting these charges!!!! SO YOU FAIL TO TELL EVERYONE HUH... WOW... So apparently I am not the only one who was not aware of this when placing the order, and oh yea missed it on social media because you have to listen/watch social media to balance your personal Verizon account... NOT
    So I try to call Verizon again to be logical and change my plan since I'd rather not argue with Verizon over a 1,000$ bill for my overages.. This rep tells me I should switch to the 8gb plan, which will actually save us about 30$ a month!! SOUNDS GREAT RIGHT...... Followed by me asking (since the bf has the NFL app and is on it all the time..) How much data does the other =line use? ..... Well he used 6.8gb......ok and I had 2gb... and I went over... lets count this out folks.. 6.8+2= OVER 8! Then that is not even including the data the iPad uses!!
    Basically... I am screwed! I can give back the iPhone 5.. that I have every right to have... and pay out the rear for data... or I can give it back to Verizon, and *HOPE* they give me my plan back! In my opinion.. this is a bunch of CRAP!

    I also did not know about this change before I ordered the iPhone 5. I ordered the phone on-line and it let me choose the same plan I was already on with unlimited data before I placed the order. Now they are basically saying, "too bad." Did you ever get this resolved?

  • Can't open one custom page from other custom page after import.

    Hi all!
    I've created 2 custom pages "EITPersonPG" and "EITPersonMainPG" and imported them to the mds repository using import.bat. I created a function for "EITPersonPG" and added it into menu. I can open my pages from menu directly but when I try open "EITPersonMainPG" from "EITPersonPG" I get this error:
    oracle.apps.fnd.framework.OAException: No data found for region (ibsborlas/oracle/apps/per/eit/webui/EITPersonMainPG).
    ## Detail 0 ##
    Exception:
    oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = ibsborlas/oracle/apps/per/eit/webui/EITPersonMainPG, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
    I executed "exec jdr_utils.printDocument('/ibsborlas/oracle/apps/per/eit/webui/EITPersonMainPG');" in Sql and it's OK.
    I created a function for "EITPersonMainPG" and added it into menu. I can open it.
    I can open "OA.jsp?page=ibsborlas/oracle/apps/per/eit/webui/EITPersonMainPG" from menu, but can't open it from "OA.jsp?page=ibsborlas/oracle/apps/per/eit/webui/EITPersonPG".
    What must I do so as to open "EITPersonMainPG" from "EITPersonPG"?
    Thanks in advance.
    Pavel.

    I've solved question about bouncing the apache server according to Doc ID: 471763.1 "R12 How To Bounce Apache And Clear HTML Cache In Vision Instance And Have Updated Java Code Class Active"
    Note :At R12 level bouncing apache command is different of the one to bounce oacore oc4j engine andothers. An example of situation is : how to make a modification to a JSPand have > > that modification recognized by the OC4J - JSP engine.
    So to clarify :
    1. In 11i the apache start and stop command , also
    bounce the JVM running on JSERV and clear caches by doings as below :To clear the jsp & modplsql caches run this commandrm -Rf $OA_HTML/_pages/*rm -Rf $COMMON_TOP/_pages/*rm -> Rf $IAS_ORACLE_HOME/Apache/modplsql/cache/*
    2. In R12 the command to stop and start apache only takes action on
    Apache web server and not on the OC4J container that executes the JVM.
    To bounce the OC4J container there is an specific script:
    *$INST_TOP/admin/scripts/adoacorectl.sh*
    Therefore when making a modification to a JAVA class in R12 for the
    web application, in order to have that change recognized, it is needed to bounce
    OC4J using adoacorectl.sh script.
    Bouncing oacore OC4J engine may also be needed if you make
    modifications to system properties. Example for JTT based
    applications: jtt system properties.Thank you Anoop!

  • Calling custom report from seeded spawned program

    Hi,
    I dont know how to call a custom report(ie.,My own report) when Dunning letter generate is kicked off rather than calling the original programs(ie., Dunning letter print from dunning letter generate etc).
    thanks in advance.

    Hello vishwam,
    as I remember, there is an option to keep the dunning conc request assigned but change to executable to your own.
    Keep in mind that this way is not fully supported, but it should work.
    Regards
    Volker

  • Question - Passing date to a function from a Query

    Hello,
    I have a function which looks like this
    CREATE OR REPLACE FUNCTION CAL_DATES_FNC
    (fp_fddate IN VARCHAR2,
    fp_task IN VARCHAR2
    RETURN VARCHAR2
    IS
    BEGIN
    IF TO_CHAR(TO_DATE(fp_fddate,'YYYYMMDD'),'DD-MON-YYYY') <= TO_CHAR(ADD_MONTHS(TO_DATE(fp_fddate,'YYYYMMDD'),60),'DD-MON-YYYY')
    THEN
    RETURN TO_CHAR(ADD_MONTHS(TO_DATE(fp_fddate,'YYYYMMDD') +21,6 * SUBSTR(fp_task,-2)) ,'DD-MON-YYYY');
    ELSIF TO_CHAR(TO_DATE(fp_fddate,'YYYYMMDD'),'DD-MON-YYYY') >= TO_CHAR(ADD_MONTHS(TO_DATE(fp_fddate,'YYYYMMDD'),72),'DD-MON-YYYY')
    THEN
    RETURN TO_CHAR(ADD_MONTHS(TO_DATE(fp_fddate,'YYYYMMDD') +21,12 * SUBSTR(fp_task,-2)) ,'DD-MON-YYYY');
    END IF;
    END;
    I am using this function in a query as given below to pass a date fp_fddate
    The problem I am having is that the function is executing only the first part of the IF construct it is not going into the second IF condition.
    Can some one please let me know where I could be going wrong.
    SELECT ABC.PT,
    ABC.INV,
    ABC.INVSITE,
    ABC.TASK TASK_NAME,MAX(XYZ.FPDATE) fpdate ,
    CAL_DATES_FNC(MAX(XYZ.FPDATE),ABC.CPTASK) "DATE1",
    TO_CHAR(TO_DATE(ABC.D_YR||ABC.D_MON||ABC.D_DAY,'YYYYMMDD'),'DD-MON-YYYY') "DATE2"
    FROM ABC,
    XYZ
    WHERE ABC.PT = XYZ.PT
    AND PATSTAT.PT = '61090'
    GROUP BY ABC.PT,ABC.INV,ABC.INVSITE,ABC.D_YR,ABC.D_MON,ABC.D_DAY,ABC.CPTASK
    Regards
    Fm

    Hi,
    IQ wrote:
    Thanks for your messages. I am sending the scripts for the tables and insert statements in this message. Hope this will help to recreate the scenario.Don't forget to post the output you want from that data, and an explanation of how you get that output from the given data.
    Some of my answers are as follows,
    1) I know that the function is not in a proper syntax and thats the reason I need to fix it to be able to perform well. All I want is to compare the dates for a 5 year period(60 months) and then return something . For a period greater than 6 years (72 months) it should return something else.What dates do you want to compare? I assume fp_fddate is one of them, but what about the other(s)?
    When does the 5-year period begin or end?
    When does the 6-year period begin or end?
    I understand the fucntion may return either of two values. Do you care what those two values are? If so, give examples.
    What if the date is in neither the 5-year nor the 6-year period? (A fucntion has to return something in all cases. It can return NULL, if that's what you want.)
    What if the argument can't be interpreted as a date?
    2) Regarding the string datatype for date columns I cannot change the database design as this is done by another team, I can however explain them the points mentioned here.
    Please find below the scripts When you say TEST_DATES, do you mean TEST_DATES1. or is there another table? Test before you post.
    CREATE TABLE TEST_DATES
    pt VARCHAR2(10 BYTE),
    inv VARCHAR2(10 BYTE),
    invsite VARCHAR2(10 BYTE),
    task_name VARCHAR2(20 BYTE),
    fpddate VARCHAR2(8 BYTE),
    DATE1 VARCHAR2(4000 BYTE),
    DATE2 VARCHAR2(17 BYTE)
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (61090,'XDUMMY1'     ,'R1111','UP01'     ,'19990714','04-FEB-2000',     '17-JAN-2000');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,     'XDUMMY1','R1111','UP02','19990714','04-AUG-2000','20-JUL-2000');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,     'XDUMMY1','R1111','UP03','19990714','04-FEB-2001','19-JAN-2001');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP04','19990714','04-AUG-2001','21-JUL-2001');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP05','19990714','04-FEB-2002','20-JAN-2002');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP06','19990714','04-AUG-2002','19-JUL-2002');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP07','19990714','04-FEB-2003','17-JAN-2003');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP08','19990714','04-AUG-2003','15-JUL-2003');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP09','19990714','04-FEB-2004','20-JAN-2004');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP10','19990714','04-AUG-2004','25-JUL-2004');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP11','19990714','04-FEB-2005','27-JAN-2005');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP12','19990714','04-AUG-2005','25-JUL-2005');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP13','19990714','04-FEB-2006','28-JAN-2006');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP14','19990714','04-AUG-2006','30-JUL-2006');
    insert into test_dates1(pt,inv,invsite,task_name,fpddate,date1,date2)
    values (
    61090,'XDUMMY1','R1111','UP15','19990714','04-FEB-2007','31-JAN-2007');
    /You said that sometimes the data contains values like 'NA'. Shouldn;t the sample data have an example or two of that?
    Once the data is populated in the table , use the following query
    select TASK_NAME,RCM_CAL_THEORETIC_DATES_FNC(MAX(fpddate),task_name) "DATE1"
    from test_dates1
    group by task_name When you say
    RCM_CAL_THEORETIC_DATES_FNC, do you mean the function you posted in your first message, which was called
    CAL_DATES_FNC, or is there another funciton?
    When I make those changes and run the query, I get 15 rows:
    TASK_NAME            DATE1
    UP06                 04-AUG-2002
    UP07                 04-FEB-2003
    UP14                 04-AUG-2006
    UP08                 04-AUG-2003
    UP10                 04-AUG-2004
    UP12                 04-AUG-2005
    UP15                 04-FEB-2007
    UP01                 04-FEB-2000
    UP02                 04-AUG-2000
    UP03                 04-FEB-2001
    UP05                 04-FEB-2002
    UP13                 04-FEB-2006
    UP04                 04-AUG-2001
    UP09                 04-FEB-2004
    UP11                 04-FEB-2005Is that correct?
    If so, what is the problem?
    If not, what results should I get?
    What is the function supposed to do?
    Edited by: Frank Kulash on Nov 9, 2010 4:45 PM

  • Passing data to SAP script from print program-VF03

    Hi All,
    I have a stand alone print program which ahs the invoice number in its selection screen which when entered displays the layout of invoice by using a sap script.
    Now since I have to get this layout displayed from VF03, I have added the program, sap script name and a subroutine which contains the code which was initially there under the start-of-selection event in the stand alone program, in NACE. I have replaced the selection screen parameter for invoice number in my program with nast-objky which contains the invoice entered in vf03.
    But when I am entering the invoice in vf03 and selecting print preview, the data is getting captured in the internal table defined in my program but the same is not getting reflected in the layout displayed. So I am always getting the blank values in the output though I did not modify the original sap script at all. Pls help.

    Keep a breakpoint in your print program and see if your program is being triggered indeed. Do not forget to start Update debugging, otherwise it will not stop in your print program.
    Regards,
    Ravi

  • Best way to pass data back and forth from multiple NativeProcess threads

    Hi all,
    We have an application that requires multiple concurrent accesses to mulitple instances of a java NativeProcess. The input and output is XML data. I can see how to shunt this back and forth with only a single listening thread on stdout, but with multiple threads the whole thing is going to get rather jumbled. At the moment we are looking at using temporary files to read and write data from each instance, but I wonder if there might be a better way ... any suggestions?
    Thanks.

    I may not be completely understanding your issue...however you should be able to check which NativeProcess instance is giving you stdin/stdout/stderror data by checking the target member of the ProgressEvent. If that is not helpful, could you please provide some additional information about what you are trying to do, and what trouble you are running in to?
    Thanks,
    Chris Thilgen
    AIR Engineering

  • Calling custom form from another custom form giving problem

    Hi
    my requirement is when i am populating value in one form field from LOV ,
    i wrote when-validate-item trgger
    this trigger calls in turn another form for approval
    so i use the following command in trigger
    DECLARE
    -- variable added by deepak on 16-05-2006 starts here
         --to make PROF_description enterable
         L_PROF_TERM_WARNING_AMNT NUMBER;
         L_PROF_TERM_AMNT NUMBER;
         L_PROF_DEPOSIT_PAID NUMBER;
         L_AUTORIZATION VARCHAR2(1);
         --variable added by deepak on 16-05-2006 ends here
         --code added by deepak on 16-05-2006 starts here
         BEGIN      
                        BEGIN
                             SELECT PROF_TERM_WARNING_AMNT ,PROF_TERM_AMNT ,PROF_DEPOSIT_PAID ,AUTORIZATION
                             INTO L_PROF_TERM_WARNING_AMNT,L_PROF_TERM_AMNT,L_PROF_DEPOSIT_PAID,L_AUTORIZATION
                             FROM XXPOS_CUSTOMER_PROFILES_GTB XCP
                             WHERE XCP.PROF_DESCRIPTION = :POSTPAID_DET.PROF_DESCRIPTION;
                        END;
                        BEGIN
                        IF L_AUTORIZATION ='Y' THEN
                             :GLOBAL.auth_user_id := NULL;
                             FND_FUNCTION.EXECUTE( FUNCTION_NAME=>'XXAUTHSC',
    OPEN_FLAG=>'Y',
    SESSION_FLAG=>'NO_SESSION',
    OTHER_PARAMS=>NULL,
    ACTIVATE_FLAG=>'ACTIVATE',
    BROWSER_TARGET=>NULL);
                        IF :GLOBAL.auth_user_id is not null THEN
                             :POSTPAID_DET.PROF_TERM_WARNING_AMNT := L_PROF_TERM_WARNING_AMNT ;
                        :POSTPAID_DET.PROF_TERM_AMNT := L_PROF_TERM_AMNT ;
                        :POSTPAID_DET.PROF_DEPOSIT_PAID := L_PROF_DEPOSIT_PAID ;
                        ELSE
                             RAISE Form_Trigger_Failure;
                        END IF;
                        ELSE
                        :POSTPAID_DET.PROF_TERM_WARNING_AMNT := L_PROF_TERM_WARNING_AMNT ;
                        :POSTPAID_DET.PROF_TERM_AMNT := L_PROF_TERM_AMNT ;
                        :POSTPAID_DET.PROF_DEPOSIT_PAID := L_PROF_DEPOSIT_PAID ;
                        END IF;
                        END;
              END;
    but while running it is giving error:
    it is not popup the desired second window and displaying following error
    Illegalrestricted procedure OPEN_FORM in when-validate-item trigger
    IF anyone has any idea on this, it will bw highly appreciated.
    regards
    deepak

    You can use a timer in your when-validate-item trigger. In the when-timer-expire trigger you can call the procedure open_form

  • Trouble migrating Crystal Reports Custom Functions from BOXI R2 to BOXI 3.1

    I can't seem to migrate the custom functions from the custom function repository in my R2 environment to the 3.1 with FP 1.3 environment.
    When I migrate Crystal Reports using the Import Wizard, they all come over and they retain their custom functions, however, they don't bring over or create a new custom function repository. 
    When I do run the import wizard I have selected the repository radio button, but it does not have any affect .
    How can I migrate all of these custom functions without having to manually open up reports and placing them back into the repository on the new server?
    Thanks,
    Randy

    Hi,
    so if they are published to Rel.2 this looks different.
    Just to clarify it a bit more...these Files are no Datasources for Reports and Universes and your Users dont consume them via InfoView?!
    Whats the purpose for these Files? If they have none, you can de- select them in the UMT and dont migrate them (or better said move them cause you wont actually migrate .csv files). But if nobody touches them, you can move them with the UMT during daily business...how long it will take i cant estimate it. But 65GB for .CSV files is a huge amount.
    But you are correct, to move them from Rel.2 to BI4 you have to use the UMT.
    If you have the ressources and time i would recommend the following (Thats what i usually do with my customers):
    1. Setup a Machine (could be a VM) with the same OS and BOE Version (included SPs and FPs) as your production Rel.2
    2. Schedule a half day or day Downtime to copy the content 1:1 from the production Rel.2 to the VM Rel.2 with the IW or CMS DB Copy. Or do this after Business Hours.
    - With this Size of your FileStore i would recommend the CMS DB copy way.
    - Now you have a 1:1 Testing Environment of your Production Environment
    3. Use the UMT to migrate from your VM Rel.2 to your BI4 installation
    - Here you can see how long it takes
    - You can check if the UMT is capable for this 65GB transfer
    - Can sort out other possible issues
    - Do some other Testing
    After you did that you have a perfect estimation on how long the Migration will take and what for issues you are facing. With this information you can decide if you need a downtime or can do it after Business Hours f.e.
    Regards
    -Seb.

Maybe you are looking for

  • Create folder - setting properties in default property screen

    Hello You can create a folder with following url: 'http://com.sap.cm/.?uicommand=new_folder' Setting Collection renderer to html renderer. This works fine. Now, I've got the requirement to modify the standard. I have an own property group which hangs

  • Nested Permissions Heirarchy in SharePoint 2010

    I have not found a clear answer to the following question - For any sub site, list, library, or other SharePoint object with non-inherited unique permissions, what happens if a specific user is individually listed with their own ID with , say, for ex

  • No login fields after Mavericks upgrade

    After upgrading to Mavericks from OSX 10.8 (through the app store), my computer rebooted but now does not give me an option to log in because there is no username or password field. The gray screen shows up upon booting with the Apple logo and the mo

  • Having trouble with different websites wanting different versions of flashplayer

    hulu.com wants one version of flash player and CBS wants another so i downloaded the achive 9 but it is not working on CBS. i do not know what to do i did see a page on adope about switching but cant find i tnow. [email address removed]

  • Disk Images Won't Mount: Broken Pipe

    iBook G4 933 MHz, 640 MB RAM, OS X 10.4.8. I have two Macs: the offender above, and an eMac G4 800 MHz, both running OS X 10.4.8. Lately, my iBook has refused to mount Disk Images (.dmg format), instead giving a "broken pipe" error. Below is the syst