Calling the T code from the reprt

Hi,
I am displaying the list of materials.if the user clicks on the particular material. The material number shd copy in MM03 Tcode intial screen and the user can see full details of the material.
<<removed_by_moderator>>
Regards,
Rasheed.
Edited by: Vijay Babu Dudla on Jan 28, 2009 1:03 AM

Hi,
If u are using alv to display the materials, then the below piece of code will help u.
In FM, use user command.
**Calling the function module for ALV Grid
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
   i_callback_program                = sy-repid
   is_layout                         =  it_layout
   i_callback_user_command           = 'USERCOMMAND'
   it_fieldcat                       =  it_fieldcat[]
   i_save                            = 'A'
   is_variant                        = v_variant
  tables
    t_outtab                          = it_final
exceptions
   program_error                     = 1
   others                            = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
         with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
In form usercommand,
**For navigating the screen.
form usercommand using ucomm type sy-ucomm
                    selfield type slis_selfield.
  case ucomm.
    when '&IC1'.
     if selfield-fieldname = 'MATNR'.
      set parameter id 'MAT'  field selfield-value.
      call transaction 'MM03' and skip first screen.
    endif.
  endcase.
endform.
Hope this helps u.
Thanks.

Similar Messages

  • Call to JAVA code from VB

    i plan to write the interface(Presentation of the software, plz don't mistake it for java interface) in VB and all logic in JAVA...........Can you help me out. Is this possible? I mean can i make calls to JAVA code from VB ......?? Some references plz
    Thanks & Regards,
    Gurmeet S. Budhraja

    You can link the 2 projects VB and J# not Java, 'cause I don't think it's possible to like Microsoft to Sun

  • Calling simple Java Code from 11g BPM

    Hi,
    I know this has been round the houses but I cant find a satisfactory solution for my scenario. I would like to call some simple java code from BPM (11.1.1.6). I guess I need to expose it as a service but it seems overkill to be via soap so any advice you can give would be much appreciated. Creating a jar that I can call somehow would be perfect.
    This is my scenario:
    - I am creating a Security POC for BPM
    - The BPM Process is exposed as a web service and authenticated using SAML
    - I am testing by calling the WS from OSB
    - I want to be able to get the WLS Principal and display the username and the roles for the launching user, from within the BPM process
    - This is possible using some simple weblogic client api code shown below
    - So all I want to do is call this code from BPM somehow
    - Anyone point me in the right direction ?
    cheers
    Tony
    subject = Security.getCurrentSubject();
    for(Principal p: subject.getPrincipals()) {
    if(p instanceof WLSGroupImpl) {
    groupList.add(p.getName());
    } else if (p instanceof WLSUser) {
    principal = p.getName();
    }

    The problem to communiate java classes and forms solved !
    i have add my .jar file to $OA_JAVA/oracle/apps/fnd/jar and now i can communicate between forms and java.
    I can create an object, i can get simple message from class, but when i try to create
    ServiceFactory factory = ServiceFactory.newInstance();
    ive got ORA-105100...
    can anybody help ?

  • Calling Java Android code from XSLT

    I am trying to get an XSLT stylesheet to work that invokes Java code at certain points during execution (used to parse RDFa). You can find a very simple example of such code below:
    <?xml version="1.0" encoding="UTF-8"?>
    <stylesheet
    xmlns:xsl ="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns ="http://www.w3.org/1999/XSL/Transform"
    xmlns:xalan="http://xml.apache.org/xalan"
    xmlns:java="http://xml.apache.org/xalan/java"
    exclude-result-prefixes="java" >
    <xsl:template match="/">
    <value-of select="java:android.xslt_test.XSLTTest.testing()"/>
    </xsl:template>
    </stylesheet>
    Although this XSLT calls the specified method for a Java desktop application, it doesn't do anything in an Android application (no methods are called and the transformer simply returns the original document). After I configured the Transformer instance with a custom ErrorListener subclass instance (via aTransformer.setErrorListener()), I get a NullPointerException (packaged as a TransformerException) when the above XSLT code is parsed. This error does not occur for "normal" XSLT sheets (these are parsed correctly on Android).
    Any ideas on why this doesn't work? Do I need to use another prefix / namespace for Android applications? I've spent quite some time looking online for a solution, but couldn't find any..
    Thanks,
    William

    The question really comes down to "can I call a server-side object from the client side?"
    The answer is "not directly". You can call a client-side JavaBean from JavaScript (e.g. when you use <jsp:plugin/> to embed a JavaBean in the HTML, you can call that from the JavaScript on the client-side.) You can call a server-side JavaBean using server-side code only.
    You can probably set up a framework to cause a function on the client to submit to a servlet which changes the bean on the server, but you can't just call it directly.

  • Calling one t -code from other

    Hi all,
    I have to 2 module pool programs with t-code zpgm1 and zpgm2.
    In zpgm2 i have 2 screens (9001 INITIAL SCREEN AND 9002 SCRREN) AND IN
    ZPGM1 I HAVE ONLY 1 SCREEN 2001 . IN 2001 SCREEN I HAVE A PUSH BUTTON WHEN I CLICK THAT I HAVE TO GO TO ZPGM2 9002 SCREEN.
    I HAVE USED CALL TRANSACTION 'ZPGM2' but it takes me to zpgm2 but 9001 screen.
    Is there a way to achieve this
    Thanks
    Kajol

    Hi KPN,
    In ZPGM2 as i said i have 2 screen 9001 and 9002 . I have a button on 9001 when i press it will take me to 9002 screen.
    When i am call the same 9002 screen from 2001 screen of zpgm1 t-code can you tell what all i have to pass.
    As of now i haven't passed anything and it takes me to 9001 screen
    Thanks
    Kajol

  • Calling a java code from shell script.

    Hi all,
    I want to access a method of java class from a unix shell script.basiacally I want to know how to access a java code from a shell scriptt.If anybody has any info on this , kindly revert back to me.
    Rgds,
    Satya

    Hi,
    Suppose I hv a main() method.
    Then how to access that class from Shell Script.
    Can u send me the piece os compiling and running process for it.
    Rgds,
    Satya

  • Calling a Perl code from pl sql

    Hi,
    I have to carry out a process -wherein - i need to execute 2 plsql procedures and a perl function in between the two. The first pl sql procedure creates a file - which needs to be worked on by the perl file and processed and the resulting file is used by the second and last pl sql procedure. Is there any way to pull this off?
    thanks

    I would seriously question the architecture here... That being said, depending on the Oracle version,
    1) A shell script/ external process could
    - invoke SQL*Plus, run the first procedure
    - Call the Perl script
    - invoke SQL*Plus, run the second procedure
    2) The Perl script could do the same thing (i.e. connect to the database, run the first procedure, process the file, run the second procedure)
    3) A SQL*Plus script could connect to the database, run the first procedure, use the HOST command to invoke the Perl script, and then call the second procedure.
    4) A Java stored procedure could call out to the operating system to invoke the Perl script and a PL/SQL procedure could then invoke procedure 1, this new Java stored procedure, and then procedure 2.
    5) (10g and later) You can call procedure 1, then create a one-time DBMS_SCHEDULER job that calls the perl script, then call procedure 2.
    Justin

  • How to call external Java code from Animate project?

    I am creating a trainer using Animate that needs to interface with an aircraft model written in Java.  Is there a way to call external Java functions from Animate?
    Thanks!

    you can import external java files by yepnope
    yepnope({nope:[
                                  'your java script file address.js',
                             ],complete: init});
    function init() {
    codes that work with your js file can be write in here
    Zaxist

  • How to call C/C++ - Code from Java?

    I would like to know if it is possible to call C or C++ - Code from Java and how to do.

    In short, yes you can do this.
    Have a look at http://java.sun.com/docs/books/tutorial/native1.1/concepts/index.html
    to see how...
    Good luck!

  • Error ITS_TEMPLATE_NOT_FOUND when calling a function code from the web

    Hi Experts,
    I have craeted a simple module pool program and a service for the same in SICF. The module pool has only one screen where I am giving the input to the two fieds
    1. year  2. category. when I click on FIND button the result will appear on the same screen. The result will be the winner and the nominees for that year. The program is running perfect when I execute the transaction in R/3.
    The coding in the PAI of the module pool is as follows:
    *& Module Pool       ZYMOVIE1
    INCLUDE ZYMOVIE1TOP                             .    " global Data
    INCLUDE ZYMOVIE1O01                             .  " PBO-Modules
    INCLUDE ZYMOVIE1I01                             .  " PAI-Modules
    INCLUDE ZYMOVIE1F01                             .  " FORM-Routines
    tables : ymovie.
    DATA:     OKCODE like sy-ucomm.
    tables: ztext.
    *&      Module  GET_RECORD  INPUT
          text
    MODULE GET_RECORD INPUT.
    case okcode.
    when 'FIND'.
    SELECT SINGLE * FROM YMOVIE
                   WHERE YYEAR      = YMOVIE-YYEAR
                         AND CATEGORY     = YMOVIE-CATEGORY.
    endcase.
    ENDMODULE.                 " GET_RECORD  INPUT
    I have created a Internet service ZYMOVIE1 ans created a template for screen 9000
    The HTML code is as follows:
    `include(~service="bbpglobal", ~name="bbpfunctions.html")`
    <html>
      <head>
    <title>`~windowtitle`</title>
      </head>
      <body>
    `~messageline`
    <form name="formFind" action=&#8221;`wgateUrl()`&#8221; method="POST">
       year : <input type = "text" name = "`YMOVIE-YYEAR`"/>
       category : <input type = "text" name = "`YMOVIE-CATEGORY`"/>
    <INPUT TYPE="hidden" name="~okcode" value="FIND">
    <INPUT TYPE="submit" name="btnSubmit" value="FIND">
    <input type = "text" name = "YMOVIE-WINNER" value= "`YMOVIE-WINNER`" size = "`YMOVIE-WINNER.maxsize`"/>
    <input type = "text" name = "YMOVIE-NOMINEE1" value= "`YMOVIE-NOMINEE1`" size = "`YMOVIE-NOMINEE1.maxsize`"/>
    <input type = "text" name = "YMOVIE-NOMINEE2" value= "`YMOVIE-NOMINEE2`" size = "`YMOVIE-NOMINEE2.maxsize`"/>
    <input type = "text" name = "YMOVIE-NOMINEE3" value= "`YMOVIE-NOMINEE3`" size = "`YMOVIE-NOMINEE3.maxsize`"/>
    </form>
      </body>
    </html>
    when i click on the FIND button in the web I am getting a dump "ITS_TEMPLATE_NOT_FOUND".
    Please suggest me where I am doing wrong. Also is there any way i can add attachemtns in SDN. It is very difficult to write everything here and how to use the "code" button when i create a new thread in SDN?/
    thanks
    sankar

    hi
    yes i got some entries in SM50 with w at the left
    A  Error Code ITS_TEMPLATE_NOT_FOUND.
    W      *** ERROR => diag: Template for modulepool ZYMOVIE1, dynpro number 9000, service zymovie1 is not found and GenerateDynpro fla
    W      *** ERROR => plugin: XKrnHandleResponse failed rc= -25 [itspxkrn.cpp 764]
    W      *** ERROR => plugin: ItspXKrn_HandleResponse failed. 0x2b96feff78 rc: 0 [itspxkrn.cpp 391]
    W    *** ERROR => ipl_ConvertOut failed rc = 1, send icf error page [itsplxx.c    1551]
    let me know if you need any other information
    thanks
    sankar

  • Calling external C code from the database

    Hi,
    We have an external routine written in C which we want to reuse. I have run this using external procedure call but as expected extproc processing is very slow. The routine cannot be rewritten, it is a "black box" component. We have considered wrapping the call to C in a Java procedure using JNI and installing the java inside the database to run inside the oracle jvm. Does anyone know if this will work or has any experience of using JNI inside the database? Is this supported by Oracle? Does anyone have any ideas/advice for tuning extproc calls or other alternatives to suggest for calling C from inside the database.
    Thanks

    Thanks for the advice. I did notice the support comment in the documentation - pretty much kills that idea then! Bulk processing might be difficult. The external procedure works on two values, one taken from the environment and one from a value embedded in each row of a table...the function is called once for each row and returns a value which i then use within a context and drives visibility, or not, of the row through Virtual Private Database configuration. So when an operator runs "Select * from a_table" the VPD adds in "and/where this_row_is_visible". Both the row value and operator environment value are updateable in real time so I cannot "process" the data first. Sounds like I need to set expectations here!
    Thanks

  • How to call PL/SQL code from ODI

    Hello friends,
    Can you please let me the steps for calling a pl/sql code in ODI?
    Regards
    Ulhas

    This should give you an idea - http://odiexperts.com/?p=666

  • Problem with calling we02 transaction code from web dynpro

    Hello everyone,
    I want to skip the initial screen of we02 tcode for this i have created the URL, provided the idoc number and
    used the function code DYNP_CODE=ONLI for execute button.
    DATA : FINAL_URL TYPE STRING.
    CONCATENATE 'host' '.port' '/sap/bc/gui/sap/its/webgui?~transaction=we02 DOCNUM-LOW='
                ls_itab-docnum ';CREDAT-low=' ' ' ';DYNP_OKCODE=ONLI'
                 into FINAL_URL.
    I am trying to pass the idoc number internally and click on execute button...so that the end user can see the idoc display directly, rather than clicking the execute button manually. But, unfortunately the function code for execute buttong (ONLI) is not working. In WE02 tcode, provided input values are appeaing correctly but not triggering the execute button.
    Please help!
    Thanks in advance...

    Hi Rohit.,
    Did u tried my previous reply.,  Use., & ~OKCODE=ONLI .,
    http://host:8000/sap/bc/gui/sap/its/webgui?sap-system-login-basic_auth=X&sap-client=800&sap-language=EN&transaction=we02&okcode=ONLI
    tis will work.,
    Thanks & Regards
    Kiran

  • Calling PL SQL code from shell

    Hello everyone,
    I have a shell script, which connects to the database and runs .sql file.
    after executing of .sql file, i need to store the results in log table.
    How can i achieve this one? could you please give your suggestions.
    Here is my code.
    #!/bin/sh
    set -vx
    #SCHEMA_NAME=$1
    LOG="/db01/apps/applvis/VIS/apps/apps_st/appl/xxhex/12.0.0/sql/test1.log_rundate_`date +%Y%m%d`.`date +%H%M%S`"
    echo ' '>>$LOG
    echo 'start sqlplus .sql '>>$LOG
    date >>$LOG
    code="declare
    v_sqlcode number;
    v_sqlerrm varchar2(200);
    begin
    @/db01/apps/applvis/VIS/apps/apps_st/appl/xxhex/12.0.0/sql/test1.sql
    exception
    when others then
    v_sqlcode:=sqlcode;
    v_sqlerrm:=sqlerrm;
    insert into error_msg values(v_sqlcode,v_sqlerrm,'FAILED');
    end;";
    RETVAL=`sqlplus -s apps/apps@VIS <<EOF >>$LOG
    set serveroutput on
    $code
    exit;
    EOF`
    echo $RETVAL
    EXIT_CODE=$?
    if [ $EXIT_CODE = 0 ]
    then
    echo "Program successfull" >> $LOG
    echo '<<< End of program ' >> $LOG
    date >>$LOG
    else
    echo "ERROR Program did not successfully execute " >> $LOG
    echo "EXIT CODE = $EXIT_CODE"
    date >>$LOG
    report_footer
    exit 1
    fi
    echo ' ' >>$LOG
    echo 'end sqlplus .sql ' >>$LOG
    echo ' ' >>$LOG
    Thanks,
    Rami Reddy.

    echo $RETVAL
    EXIT_CODE=$?
    if [ $EXIT_CODE = 0 ]$? is the return status of the last command. In your example, EXIT_CODE will always be 0, unless the echo command fails, which is never going to happen.
    RETVAL=`sqlplus -s apps/apps@VIS <<EOF >>$LOGThe $RETVAL variable simply contains the output or string returned by your sqlplus command. What you need to do is to check for content of the $RETVAL variable. What content is considered successful and what failure?
    In your case however, $RETVAL is always empty, because you redirect all output to $LOG. If you want to write the complete output of your sqlplus command to a log file, use the following after your sqlplus procedure. For example:
    exit;
    EOF
    `
    echo "$RETVAL" >> $LOG
    if [ `echo "$RETVAL" | grep FAILED` ]; then ....

  • Calling PL/SQL code from Select statement

    Hi
    I have a PL/SQL function to calculate a value.
    create or replace procedure "SR_GROSS_MARGIN"
    (netsales IN NUMBER,
    margin IN NUMBER,
    GM OUT NUMBER)
    is
    BEGIN
        IF NETSALES = 0 THEN
           GM := 0;
        ELSIF
           NETSALES < 0 THEN
           GM := 0;
        ELSE
           GM := NETSALES / MARGIN;
        END IF;
    END;How do I call this from a SELECT statement?
    Regards
    Adam

    here you go:
    create or replace function SR_GROSS_MARGIN
    (netsales IN NUMBER,
    margin IN NUMBER)
    return number
    is
    gm number;
    BEGIN
        IF NETSALES = 0 THEN
           GM := 0;
        ELSIF
           NETSALES < 0 THEN
           GM := 0;
        ELSE
           GM := NETSALES / MARGIN;
        END IF;
    return gm;
    END;then you can:
    select gm(2500,20) from dual;

  • Calling SAP t-code from mobile

    Hi ,
    Can we call sap transaction from mobile? If so how can we call ? your help is very much appereciated.
    Regards,
    Pavani

    Hi Pavani,
    Well a good answer to your query would be guixt mobile suite which actually makes it possible to use transactions in mobile.
    Check this out:
    http://www.guixt.com/solutions/mobile.php
    Regards,
    Veera

Maybe you are looking for

  • Phone Numbers are not visible in PC

    I own N95 three years and until recently I could edit the contacts in the phone via PC Suite. But since last month I do not see phone numbers in PC suite. I can see data in fields Names, addresses, companies etc. but fields "phone number" and "teleph

  • Toast 11 Pro not working

    I'm running first gen Mac Pro with 10.7.5.  I have been having difficulty running Toast 11 pro for some time now, probably started happening after an update.  So now when I start up Toast it just doesn't load.  If I put the cursor over the icon the c

  • Adobe cs5 master collection vs creative 5 suite vs creative 5 suite production premium

    what are the differences? thanks in advance.

  • Ssh does not start at boot

    Hi All As my title explains, ssh does not start when I reboot. I can start it like: ./usr/lib/ssh/sshd So my question is: how can I change this behaviour and let ssh start at boot ? Thanks a lot in advance Luca

  • Simple server issues - novice

    I purchased a Mac Mini (1.1) on ebay with OS X server to use primarily as a file server in a home environment, primarily for music, video and iPhoto files. The server is also running Squeezebox in the background. Probably overkill for my needs, but c