Calling Standard program in Z report

Hi,
Zreport is calling the MB5B Transaction program ( rm07mlbd ) using the submit statement.
Here i have to take the values of Total/Val. of Receipts & Total/Value of Issues and do the some extra calculation in ZREPORT.
But when i used the below statements, i am able to get the whole output of the MB5B transaction into internal table. But How to get the specified values only i.e. Total/Val. of Receipts & Total/Value of Issues.
  SUBMIT rm07mlbd AND RETURN WITH SELECTION-TABLE seltab
                                  EXPORTING LIST TO MEMORY.
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = itab_list
        EXCEPTIONS
          not_found  = 4
          OTHERS     = 8.
     CALL FUNCTION 'LIST_TO_ASCI'
        EXPORTING
          list_index         = -1
        TABLES
          listasci           = vlist
          listobject         = itab_list
        EXCEPTIONS
          empty_list         = 1
          list_index_invalid = 2
          OTHERS             = 3.
      CALL FUNCTION 'LIST_FREE_MEMORY'.
Thanks in Advance
Balu

It would be hard to extract the result from the spool-type data received, did you try to find an exit, BAdI or Enhancement point in the standard report where you could export the relevant internal table 
(e.g.. use an implicit enhancement point at start or end of form [LISTAUSGABE1|http://www.sdn.sap.com/irj/scn/advancedsearch?query=listausgabe1] in include [RM07MLBD_FORM_02|http://www.sdn.sap.com/irj/scn/advancedsearch?query=rm07mlbd_form_02] where you could export [G_T_BELEGE|http://www.sdn.sap.com/irj/scn/advancedsearch?query=g_t_belege], of course check first that you are called from an external report [sy-calld|http://help.sap.com/abapdocu_70/en/ABENSYSTEM_FIELDS.htm])
Regards,
Raymond

Similar Messages

  • Call Include program in a report class prg

    Hi Oo gurus..
    Hi want to call include program in my report class program
    how can i do that ?
    I also used include in a report program and its work fine, but when i tried to use in a class then its not work
    please post solution and example,
    Advance Thanks..
    Niraj

    Ok i solve it....
    Thanks

  • Calling standard program

    Dear Experts,
    I have writen a Z program which converts the format of the output file, i need to execute the standard program rfebck00  after execution is completed i need the final output values back in my Z program for further process..
    I tried with the submit and return ...but it is not working ,
    I'm getting the output but after I pressed the back button its going to my program but user is not willing to press back button  Is there any other way to do the above requirement...
    thanks in advance
    Hema

    Hi,
    Please try to use FM ABAP4_CALL_TRANSACTION to call transaction FCKR (report program RFEBCK00). Perhaps you can setup the table parameter USING_TAB for BDCDATA of back button.
    Regards,
    Ferry Lianto

  • Calling standard program with logical database

    Hi all,
    I am trying to call a standard report (RPTBAL00) from a custom program without displaying the selection screen.  I want to fill some of the select-options programmatically. 
    My code is somethig like this
          submit RPTBAL00
            with pernr-pernr = 'XXX'
            with pernr-pnpbegda = '20020101'
            with pernr-pnpenddaa = '99991231'
                          and return.
    but the report gets called with defaults.
    Does anyone know what I am doing wrong?

    Hi
    I seem your code is right, but I don't understand which elements are filled with default values.
    Anyway this is a little code to submit a report with logical database:
    Co.Ge.
      loop at so_umskz.
        move-corresponding so_umskz to selopt.
        append selopt  to frange-selopt_t.
      endloop.
      if sy-subrc = 0.
        frange-fieldname = 'UMSKZ'.
        append frange to range-frange_t.
      endif.
      refresh frange-selopt_t.
      loop at so_zlsch.
        move-corresponding so_zlsch to selopt.
        append selopt  to frange-selopt_t.
      endloop.
      if sy-subrc = 0.
        frange-fieldname = 'ZLSCH'.
        append frange to range-frange_t.
      endif.
      if not range-frange_t[] is initial.
        range-tablename = 'BSIK'.
        append range to trange.
        call function 'FREE_SELECTIONS_RANGE_2_EX'
          exporting
            field_ranges = trange
          importing
            expressions  = texpr.
      endif.
      submit rfitemap
              with ................
              with free selections texpr and return.
    Max

  • Reading contents of called standard program

    Hi Experts,
    Calling Program: Zreport
    Called Program: Standard report (Note: with no Start-of-selection event. So, no Spool!).
    I need to read the content of one of the intrnal table of the called program inside my Zreport. Kindly guide how can I achieve this?
    Thanks in advance.
    Udit

    >
    Keshav.T wrote:
    > Use this method retrieving internal table info. during runtime from callstack
    But this is possible only if the internal table is available in the ABAP stack.
    @OP: You can check this thread which is close to what you requirement is. How do I get a variable, or object from ABAP STACK.
    BR,
    Suhas

  • Standard program need modification Report Name : RSVTPROT

    Hi experts,
    Needed  clarifications for the report <b>RSVTPROT</b>
    the above report excutes the list of users
    <b>Customizing Table : V_T030H</b>  and futher for particular period and customzing objects marked.
    I needed to copy the existing  porgram into Z program with same functionality
    by adding the new option in selection screen for the company code
    to perform the same.
    there are no user exit prevailing.
    Can we perform the same.
    Kindly give ur suggestions.
    Regards
    Sunil

    Under general procedure, first try to study the need of that field in the business, may be the requirement can be changed if its not absolutly necessary.
    You can also try to realize them the fact that this report is updating database so the changes how they reflect are not sure.
    Otherwise, customize it.
    Regards,
    Amit

  • Suppress Information message during submit a standard program

    Hi experts,
    I am calling standard program RCATSCO from a report using following code:
    SUBMIT rcatstco WITH p_pernr  IN s_pernr
                      WITH p_date   IN lt_r_date
                      WITH p_belnr  IN s_belnr
                      WITH s_rkdauf IN s_rkdauf
                      WITH p_budat EQ sy-datum
                      WITH p_warn   EQ gc_x
                      EXPORTING LIST TO MEMORY
                      AND RETURN.
    When all data are already transferred to controlling this standard program displays a popup information message 'No data for transfer'. I need to suppress this popup and continue execution of the report. Please help.
    Thanks,
    Arnab

    One option is to do that check yourself and bypass submitting the program if there is no data to transfer. Another option is to submit the program via job. That way the the message will go to the job log. I see that you are using the option exporting list to memory, which means you want to read the spool after the program is executed. With the "via job" option, you may need to monitor the status of the job for completion and then read its spool.

  • Calling standard printer driver program RVADOR01 from ALV report

    I have ALV report (Sales order documents) and one of columns in report is icon type with print preview link (hotspot). When user press icon, I would like to call standard print program RVADOR01 (actually we have custom Z_RVADOR01 and custom smartform which are working fine when using Document -> Output in VA03) to display print preview. I don't know how to call (trigger) print driver routine and pass needed parameters to it (ex. SO number).
    Marko

    Actually I did that. But then you are at least three clicks away from print preview screen. For testing purpose I've created custom smartform and run it from my report. It is working like I want. Now, instead of my procedure I want to run standard printer driver program with needed parameters. I believe that all it needs is document number (vbeln) and all the rest is already there, program, smatform... I just don't know how to use it (ex. pass parameters).
    I know I maybe complicating too much but I am ABAP beginner and want to learn as much as possible. Thank you anyway!

  • How to call the Standard Program in our ZPROGRAM?

    Hi Frieds can you tell me the procedure how to call the Standard program
    in z----
    program and we have to get the data from standard one to our customer program.
    Thanks in advance,
    madan mohan.

    Hi,
    *Submit report but export resultant list to memory, rather than
    *it being displayed on screen
    SUBMIT zreport EXPORTING LIST TO MEMORY.
    Once report has finished and control has returned to calling
    program, use function modules LIST_FROM_MEMORY, WRITE_LIST and
    DISPLAY_LIST to retrieve and display report.
    *Example Code (Retrieving list from memory)
    DATA  BEGIN OF itab_list OCCURS 0.
            INCLUDE STRUCTURE abaplist.
    DATA  END OF itab_list.
    DATA: BEGIN OF vlist OCCURS 0,
            filler1(01)   TYPE c,
            field1(06)    TYPE c,
            filler(08)    TYPE c,
            field2(10)    TYPE c,
            filler3(01)   TYPE c,
            field3(10)    TYPE c,
            filler4(01)   TYPE c,
            field4(3)     TYPE c,
            filler5(02)   TYPE c,
            field5(15)    TYPE c,
            filler6(02)   TYPE c,
            field6(30)    TYPE c,
            filler7(43)   TYPE c,
            field7(10)    TYPE c,
          END OF vlist.
    SUBMIT zreport EXPORTING LIST TO MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = itab_list
      EXCEPTIONS
        not_found  = 4
        OTHERS     = 8.
    CALL FUNCTION 'LIST_TO_ASCI'
      EXPORTING
        list_index         = -1
      TABLES
        listasci           = vlist
        listobject         = itab_list
      EXCEPTIONS
        empty_list         = 1
        list_index_invalid = 2
        OTHERS             = 3.
    IF sy-subrc NE '0'.
      WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.
    ENDIF.
    Regards
    Sudheer

  • Calling Pricing Procedure independently using report/Program in ECC

    Hi
    We are working on SRM 7.0 classic scenario and need MM expertise to configure one RFx comparison scenario. We have a requirement of pricing comparison of various RFx response received from bidder (supplier company), pricing should be same as found under condition section of MM PO. Having complete details regarding Taxation, Sales tax details, excise details (replica of pricing section of PO).
    We are working on a solution where in we can pass the basic inputs to MM interface (Tax code, vendor number, material, etc,.) and fetch the pricing details and display in SRM for comparison of price.
    To achieve this we need to know whether we can call the pricing outside separately using a standard program/report and use it for our calculation and call to SRM using RFC.
    Please suggest.
    Regards
    Prashanth

    Hi,
    We have a requirement of having the pricing and taxation in SRM similar to ECC to have comparison done on the bid response.
    Can you please provide inputs on how did you handle the taxation & pricing part?
    We are on SRM 7 EHP1
    Regards,
    Amish

  • Call Standard Text by report replacing the variables with their values

    Hi,
    I have a requirement to call a standard text from a report.
    Following is the text present in standard text.
    &PTXT1-ENAME& will attend for interview
    on &MEMOACT-PLDAT& at &MEMOACT-PLTIM&.
    I am doing it by using READ_TEXT. But READ_TEXT reads the entire text as it is.
    Is there any way I could retrieve the standard texts with  &PTXT1-ENAME& replaced by the value of  PTXT1-ENAME in report. And similarly &MEMOACT-PLDAT& replcaed with its actual value.
    Any pointers in this regard would be helpful.
    Points will be awarded.
    Regards,
    Mayank Agarwal

    Hi,
    In the Text
    &PTXT1-ENAME& will attend for interview
    on &MEMOACT-PLDAT& at &MEMOACT-PLTIM&.
    do not use the * as a paragrapgh , use /: as the paragraph
    Regards
    Sudheer

  • Standard programs for reports..

    hi,
    how to find d standard report programs... for example i need a report for goods reciept or say purchase price variation report... do we have any  standard sap report prg fr it??? if yes how to find it???

    Go to SE38 and give f4 and give package name of the Business Process you are looking for.
    Go to SE11 -->TADIR give the package name of the Business Process
    Go to SE11--> TRDIR and look for SAP in Created by field name .
    All 3 will fetch you standard programs.
    Reward if Useful.
    Thanks,
    Anita

  • How to call standard report with in zprogram?

    Hi Sap experts,
    How to call standard report with in zprogram.
    For example if country is 'US' then call Zprogram(zprog_US).Inside zprogram call standard report(rhecm_change_proc_status).If country is 'CA' then call zprogram.Inside zprogram call standard report.For same othercountres like 'PR','GB','ES'.Actually HR_ECM_READ_FEATURE_CARGP will having the input as employee id and will return the CAREA(County like 'US','PR'......).Kindly help me what is the procedure?
    Regards,
    Sujan

    >
    sujan T wrote:
    > Thanks for your reply.
    >
    >    What is the logic to call the standard report from zprogram?Inside the zpogram how to call standard report?
    >
    > Regards,
    > Sujan
    no special logic is required
    If u want to use
    RPUAUDOO IN THE ZREPORT.
    Put the submit button where ever required
    ex: In zreport after certain process reacedu want to call then use
    submit rpuaudoo and return.
    Regards
    Sas

  • Standard program for calling shipping smartform

    hi
    can anybody tell me wats the standard program which calls the shipping smart form from transaction VT03N

    hI,
    For Print Program -->RVADSPAT
    For EDI processing-->RSNASTED
    Regards
    Sandipan

  • Calling the standard program in program and getting its output in int table

    Hi there,
    I have a requirement, where I need to call the standard program (of transaction CJI3) in my Y program. CJI3 transaction produces a ALV GRID output. I need to use that data for further processing. I am getting following problems:
    1. I tried to use SUBMIT ... EXPORTING TO MEMORY statement. I need to pass the company code for the selection, but the company code is in the dynamic selection. So not getting how to pass them.
    2. Just a doubt. Can we export the ALV GRID to the memory an retrieve it back using import?
    3. I did tried to use SUBMIT .....  statement using only the parameters which are on the selection screen. However the control went to CJI3 transaction and gave an error message 'Please select "from database" or "from archive" '. Did not understood that, any IDEA?
    Or is there any other way with which I can accomplish my requirement of getting the data in my program to manipulate, other than SUBMIT.
    Points will be rewarded.
    Thanks,
    Ganesh Khumse

    Hi,
    point 1:
    SUBMIT ... EXPORTING TO MEMORY will never work, because it displays the information in an ALV grid and that grid is waiting for user interaction for manipulating the information.
    point 2:
    no, you cannot export the content of an ALV grid to the memory
    point 3:
    must you get records in an internal table or must you feed the transaction, so that this one performs a task ??  for first option read below and for the other option you might work with BDC and Transaction Recorder.
    what you have to do is read the code of transaction CJI3 in order to understand what it does, where the information is read from and what is the internal table that passes the values to the ALV Grid. You might find a user exit in the code for manipulating that information or you might create an enhancement point if there´s no user exit.

Maybe you are looking for

  • Photoshop CS2 upgrade Panther to Tiger - Help please!

    Hi All, I am doing a favour for my Aunt tomorrow and upgrading her G5 from Panther to Tiger. She uses it mainly for Photoshop. Is there anything i need to be wary of? I looked at the adobe web site and it seems to work on both systems, but do i need

  • Problem with Inserting Date and Time in Oracle 8i

    I am using JDBC thin driver version 8.1.6. with oracle 8i and am unable to insert and update date & time in American format (mm/dd/yyyy hh24:mi:ss). example: UPDATE TABLE_NAME SET DATE_COLUMN='08/16/2000 12:45:00'; Can someone please help? null

  • Lithium plug-in crash

    FCP has been crashing when I open a project which has Motion Master Templates in it. The error says "The problem may have been caused by the Lithium plug-in." I don't know anything about a Lithium plug-in, and amazingly there's almost no information

  • My iPhone  Lose Plese HELP ME

    My iPhone was stolen and I would like to verify that it works or not. I gave the telecommunications company the serial number of the device to burn, and thank you.

  • Commitment in CO from an MM contract

    Hy, when you create  a PR or a PO the system register a commitment in the SAP CO module; I created in MM a Contract and in this case there is no commitment in SAP CO. 1) Can someone tell me if it is possible to have a commitment in SAP CO also for a