How to call our smartform in standard report

Hi friends,
How to call Zee smartform from standard report without affecting stadard flow.
Thanks,
Yogesh

Hi,
  do it this way.
in the ALV function call
give in
exporting
I_CALLBACK_USER_COMMAND = 'user_command '
write a subroutine
FORM user_command USING whatcomm TYPE sy-ucomm whatrow TYPE
slis_selfield.
case whatcomm.
when 'print'.
call 2 function modules here
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING FORMNAME = P_FORM "Your form name
variant = ' '
direct_call = ' '
IMPORTING FM_NAME = FM_NAME
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.
EXIT.
ENDIF.
calling the generated function module
CALL FUNCTION FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = CPARAM
OUTPUT_OPTIONS = OUTOP
USER_SETTINGS = SPACE
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
IMPORTING
JOB_OUTPUT_INFO = TAB_OTF_DATA
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
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.
endcase.
endform.
This is an example in the function gereated call give you own importing and exporting parameters.
Regards
Kiran Sure

Similar Messages

  • Customizing root folder for our custom and standard reports

    Hi Experts,
    We are planning to have customizing root folder for our custom and standard reports,
    I have couple of questions to do this customization.
    1)     How do we setup root folder as default instead XA or SSA for all the users?
    2)     What are the implications on Spend adviser reports, we will not customize spend adviser, planning to use standard SPD?
    3)     Do we have any developments required or setup at visual Admin level?
    Someone can guide me what would be the pros and cons along with above concerns? Your reply will be highly appreciated.
    Regards,
    Mahesh

    Madhav,
    Do i have further inputs on this?
    Regards,
    Mahesh

  • How to call a package from the Report in Oracle Application Express

    How to call a package from the Report in Oracle Application Express

    Hello,
    What do you mean? Something like SELECT mypackage.function( par1, par2) from dual?
    Or do you want to execute a procedure when something happens on the page, like clicking a button?
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • How to call a Shell Script from Report 6i

    Hi All,
    Can anybody tell, how to call a Shell Script from Report 6i.
    Thanks in Advance,
    Bala

    try the SRW.USER_EXIT (user_exit_string CHAR);

  • How to call this procedure in my report to print my procedure output

    Hi,
    i have a table named letter,it contains 2 columns named as letter_id and letter_content.
    select * from letter;
    letter_id letter_content
    103 Dear MFR
    103 This is in regards to the attached DM List
    103 Please Credit us after reviewing it.
    103 Thanks
    103 Regards
    103 xxxx
    108 Dear customer
    108 This is to inform that ur DM List is as follows
    108 Credit us according to the Dm after reviewing it.
    108 Thanks
    108 Regards
    108 xxxx
    now my requirement is,i need send a parameter as letter_id to a procedure or function in pl/sql in oracle,the output should be as follows:
    if we will pass parameter(letter_id) = 103 then it displays as follows:
    Dear MFR
    This is in regards to the attached DM List.Please Credit us after reviewing it.
    Thanks
    Regards,
    XXXXX.
    if we will pass parameter(letter_id) = 108 then it should displays as follows:
    Dear customer,
    This is to inform that ur DM List is as follows. Credit us according to the Dm after reviewing it.
    Thanks
    Regards,
    XXXXX.
    the procedure for my requirement is like below.now my problem is how to call this procedure in my report.so that if i will send a parameter as letter_id then it should get my report stated above.
    CREATE OR REPLACE PROCEDURE letter_text ( p_letter_id letter.letter_id%TYPE , p_letter_contents_out OUT SYS_REFCURSOR )
    IS
    BEGIN
    OPEN p_letter_contents_out
    FOR
    SELECT letter_content
    FROM letter
    WHERE letter_id = p_letter_id
    ORDER BY line_seq;
    END letter_text;
    which you might call with something like
    SQL> var results refcursor
    SQL> exec letter_text(103, :results)
    PL/SQL procedure successfully completed.
    SQL> print :results;
    CONTENT
    Dear MFR
    this is in regards to the attached DM List
    Please credit us after reviewing it
    thanks
    Regards
    EXP
    6 rows selected.
    so, the same out put i need to get it in a report.
    Thanks

    Thanks for ur suggestions.
    i have 2 select statements.1st query is the main query for the report.so i used it at the time of report created with datablock.
    now my 2nd query is
    select letter_content
    from ( select content_seq,
         content || case content_seq
    when 2 then
    ' ' || lead(content) over (partition by letter_id order by content_seq)
    end as letter_content
    from exp_letter_contents
         where letter_id = 103)
    where content_seq <> 3;
    i had taken 2parameters 1 for the main query and 2nd is for the above query(parameter is letter_id).
    now i have to write the above select statement in the report.
    so i had taken a field object in the report and then i had written this code in before report trigger.
    function letter_contentFormatTrigger return boolean is
    begin
    select letter_content
    from ( select content_seq,
                        content ||
                        case content_seq when 2 then
                             ' ' || lead(content) over (partition by letter_id order by content_seq)
                        end as letter_content
              from exp_letter_contents
              where letter_id = 103)
    where content_seq <> 3;
    return (letter_content);
    end;
    when i tried to compile it.i got an error as follows :
    error 103 at line6,column 5
    encountered the symbol "CASE" when expecting one of the following:
    (- + mod null <an identifier>
    <a double-quoted delimited-identifier><a bind variable> avg...etc
    so,where can i write this select statement.
    i am using oracle reports6i
    Message was edited by:
    user579585

  • Reg:HOw to add new charactersitics in standard report

    hi all
    HOw to add new charactersitics in standard report
    regards
    JK Rao

    You need to copy the std report and make necessary changes in the copied report. SAP does not allow changes to std report. The technical details of the report can be seen by selecting from the menu Extras - technical information. Select the library and Report name. Copy the same using t code GRR1. Carry out necessary changes and SAVE. Before execution, you will have to specify the report group in which report needs to be attached. You can choose and existing group or specify a new one.
    Regards
    Rakesh Pawaskar

  • In PM or QM modules how to link the smartforms to standard transections.

    Hi ABAP gurus,
         i am facing the problem how to link the smartforms to Standard transections, like
         QGA3 in this T-code i am give the Inspection lot no only, then this Lot number go to the smartforms
        it will pick the total data relavent to lot no, my problem is how to link between the T-Code to smartforms, 
    thanks.
    raj.

    hi,
    you have to configure in NACE. first identify the application type in NACE.
    thanks,
    anupama.

  • How to call a Workflow from a Report in SE38?

    How to call a Workflow from a Report in SE38?
    Please can Anyone Send me a Source code (with Explanation)which I can use for calling Workflow >> WS99900253?
    Regards,
    Shashank.

    you can use FM
    SAP_WAPI_CREATE_EVENT
    SWE_EVENT_CREATE
    OR
    SAP_WAPI_START_WORKFLOW
    Regarding usge of this FMS search the forums you will get ample examples.
    Thanks
    Arghadip

  • How to call a Smartform in Report to print Production Order

    Hi all,
    Can any one tell me how to develop a smartforms when the user selects the print button in ALV report.
    i.e, The requirement is when  the user presses the print button in ALV report, at that time it has call the smartform and it has to print the Report.
    Can any one shed some light on this.
    Regards
    Yathish

    Hi Yathish
    do it this way.
    in the ALV function call
    give in
    exporting
      I_CALLBACK_USER_COMMAND           = 'user_command '
    write a subroutine
    FORM user_command USING whatcomm TYPE sy-ucomm whatrow TYPE
    slis_selfield.
    case whatcomm.
       when 'print'.
          call 2 function modules here
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
           EXPORTING  FORMNAME           = P_FORM    "Your form name
                    variant            = ' '
                    direct_call        = ' '
           IMPORTING  FM_NAME            = FM_NAME
           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.
        EXIT.
      ENDIF.
    calling the generated function module
    CALL FUNCTION FM_NAME
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
    CONTROL_PARAMETERS   = CPARAM
       OUTPUT_OPTIONS       =  OUTOP
      USER_SETTINGS        = SPACE
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
    IMPORTING
      JOB_OUTPUT_INFO      = TAB_OTF_DATA
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_OPTIONS         =
    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.
    endcase.
    endform.
    This is an example in the function gereated call give you own importing and exporting parameters.
    Kindly reward points if helpful.
    Regards
    Zarina

  • How to add new fields to standard reports

    hi friends,
                 im into ABAP and working across all modules..the basic thing is users and functional people are not satisfied with the standard reports..they need some logic change or to add some more fieldsinb the standard reports.For logic change we have to copy the standard to zprogram and can do or create a new program itself..but in many cases they ask for extra fields.how to achive it ..
    for example my requirement now is adding vendor name field to the report FAGGL03 ....i found a badi and have make changes to it ...now the vendor name will be coming in sgtxt over writing the text ...but they need text also...now what shall i do???
    append structure vendor name field in faglposx table ....???how to find out the final internal table from where the output is coming ????
    ?when we check the standard rewport codes...there are lot of include statements perform statements etc  ...how to find out the final structure or internal table which has the output values..???

    hi
    it would be better if u giv full name of the report
    if ur displaying the data in alv then search for the
    word REUSE_ALV_LIST_DISPLAY REUSE_ALV_GRID_DISPLAY from which u can get the final table name
    then check the data that is comming into
    try using implicit enhancement or any other exit in the declaration and declare a new structure with the field and append it to the field catalog
    if ur displaying the data using write statement
    then create a zprogram and add a write statement
    fi ur unable to find here the final table then after displayign the report start the debugging and double click on any row to find out more easily
    shiva

  • How can i get data from standard report 'PP_ORDER_PROGRESS'?

    When I have a sales order,i want get Production Orders & Plan Order related to this SO.
    The same as result of standard report 'PP_ORDER_PROGRESS'~~
    How can I get the same data like report 'PP_ORDER_PROGRESS'~~
    TKS very very much~~

    Lorry,
    I hope you are looking for an option similar to CO46 transaction.
    You can use transaction COOIS, activate "Production orders" and "Planned orders" check box and in header level selection input your Sales order number to get a report you wanted.
    Regards,
    Prasobh

  • How to call a procedure designed in Report Builder?

    Hi everyone,
    The Problem?
    I set up a procedure and would like to call this procedure in reports builder 6.0. I need to know how to call a procedure in reports builder.
    Thanks
    Tom Gilmore

    You can call
    procedures from a formula column's PL/SQL code.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Thomas Gilmore ([email protected]):
    Hi everyone,
    The Problem?
    I set up a procedure and would like to call this procedure in reports builder 6.0. I need to know how to call a procedure in reports builder.
    Thanks
    Tom Gilmore<HR></BLOCKQUOTE>
    null

  • How to call a process in a report?

    Hi Friends,
    Is there any standard Function Module or something like callprocess   to call a process in the tcode     hrasr_test _process ?
    With Regaeds,
    SHARMILA BRINDHA.M

    HI Friend,
    Thank You for your reply.But my requirement is completely different.No need to call Function module.
    I was in need to call a process in my report from the  tcode hrasr_test_porocess.
    With Regards,
    SHARMILA BRINDHA.M

  • How to call the Database views in  Reports?

    Hai experts,
                        i created one Database view in data dictionary for that how to call the that in my program?
                        are we write the select quries on views.
                         plz help me.
    thanks in adv.

    thanks for ur reply.
    how to maintain data in maintance  view . is it possible write the select query on that . I know it most be relate with forgien key.
    plz help.
    thanks in adv.

  • 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.

Maybe you are looking for