Problem in executing report in background in CS workflow

Hi All,
I am using ECC 6.0 version.
          In my scenario , Once notification is closed , workflow should trigger. and along with this , one report should execute in background with input parameter as a Notification no. from workflow . Report  should pick up input parameter dynamically.As I know instead of function module we can choose report option in business object .
           My question is how that report will get input parameter as notification no.& How I do the binding for this (Between report & workflow)?
            Valuable suggestions are excepted.
Regards,
Sheetal

Hi Sheetal,
As I had mentioned earlier (you have already implemented), add the report to your BO as a method. Then click on method and then click 'Parameters'. Create the required parameters, which is 'Notification No.' and go to the system generated 'Program'. Here you will have to do a bit of macro coding. Obtain the No. (once you add as parameter, you will get it through binding) and pass to report.
You might also retrieve (only if required or only in certainb cases) values, for that observe how the attributes are retrieved on the basis of key field.
Best regards,
Abir.

Similar Messages

  • Error when executing report in background

    Hi experts,
    I developed a new report. In that report I am getting data from KRMI transaction. For getting data from KRMI I have all the program and transaction and function modules under KRMI transaction to Z program, transcation and function modules and by using Call Transaction on ZKRMI and using Import and export parameters I am fetching data from KRMI transaction.
    By doing this I dont have any problem while executing report online and when I am executing this report in back ground I am not getting in the above mentioned case.
    Can anyone advise me in solving the issue

    As already said....the import and export wont work in background...however what you can do is import and export in shared buffer
    Please refer this below thread for how to proceed on this...
    Re: Problem with export/import in back ground
    Check the below link for information on shared buffers
    http://help.sap.com/saphelp_webas630/helpdata/en/c4/3a6dbb505211d189550000e829fbbd/frameset.htm

  • Restrict 'Executing report in background' from selection screen

    I want user to not to select option for executing report in background from Selection Screen of the program.
    i.e. 'Execute Program in Background' option in 1st menu bar tab should either be disabled OR if user clicks on it then he should get error message on selection screen itself.
    Thanks,
    Falguni

    Hi Falguni,
    Write the code based on function code SJOB in the event AT SELECTION-SCREEN. Write the following code :
    AT SELECTION-SCREEN
    CASE SY-UCOMM.
    WHEN 'SJOB'.
    MESSAGE E000 WITH 'You cannot schedule background job'.
    ENDCASE.
    Thanks & Regards,
    Faheem.

  • Execute report in background

    hi
    we have one requirement for execute report in background
    we want to run the report ME5A for a large date range and at plant level.
    Due to this, transaction data selected is large and so reportis taking very long time when executed in foreground.
    so requirement is
    execute report in background (i know possible in SAP)
    download the report output on desktop automatically
    can you pl suggest how to do this without customisation
    regards
    sara

    Hi Sara,
    Go to ME5A then enter the required field then go to Programme and then select the option execute in background

  • Problem to spool when Executing reports in background

    Hi experts,
    I  executed  reports in backgroud , but when i checked in SM37 the generated spool not given proper layout format.
    This problem occurs when report having more columns.
    plz help me earliest.
    Regards,
    jyotsna

    Hi jyotsna,
    this happens with ALV output because the output format is determined at runtime.
    You can control the print format used: Just fromyour reports list in online mode, choose PRINT. A Popup should come up letting you specify the printer, number of copies, pages to be printed and so on.
    At the bottom of the popup you have the Properties button. This button opens the overview sceen for all the available print parameters. Double-Click the Format section, choose a format you want to use.The the Specifications button takes you to another screen. Here you can choose 'Valid for this report only' and Check the Background checkbox.The push the 'Copy settings' button. Then Enter to close all the popups. This should help. Additionally you can set a default layout variant for your list to be used.
    For this, in the ALV list, use Menu Settings-Layout-Layout Management. Here yu can set a default variant.
    Regards,
    Clemens

  • Executing Report in Background

    Dear All,
    I have a report with more than 400 characters in width. If it is executed in foreground the report is properly displayed but if the report is executed in background, the generated spool only displays upto 255 characters.
    Is there a way to execute the report in background and make sure that the spool is generated with required width?
    Regards,
    Anosh

    Hi Sharabh,
    I have tried printing it after unchecking the "spool request max 255 characters width" option. Still the generated report does not show the report upto 400 characters.
    Can you please suggest some other solution or maybe provide a way to define our own printing format?
    Regards,
    Anosh

  • Change in Normal list when i execute Report in Background.

    Hi all ,
    When we execute the Report in background a normal list will be displayed in the spool. In that Normal
    list is it possible to shift the columns that are displayed at the last to be displayed at the beginning.
    Regards ,
    Murthy

    Hi,
    Yes you can do that.
    You can determine the program is runing in background mode by using system variable SY-BATCH = 'X'.
    If SY-BATCH = 'X'.
    Then you can shift the column of internal table.
    Endif.

  • Menu bar problem when executing reports

    We have a problem when executing the reports either from se38 or through transaction.
    The standard menu bar is not appearing and in its place we are getting ?????????????  ?????????????????
    also the icons that are appearing in app tool bar are not showing anything.
    Whats the reason for this?

    hi,
    It is not for one single report iam talking about,any report that is executed from se38 or transaction .
    In selection screen of report we are getting ???????????????
    ?????????????? in menu bar instead of normal options like program edit goto utilities.................
    does any one know the reason for this?
    This issue we are facing today only.
    Edited by: Gautham chakraverthi on Oct 31, 2008 3:06 PM

  • How to execute report in Background from Dialog process?

    How, or what is the best way, to lauch an executable program (report) into the background from a dialog program (dynpro)?
    <b>Example:</b>  The SUBMIT...AND RETURN still executes the called program before it returns control to the calling program.  I just want the report to be kicked off and the dialog to continue as normal.  I do not want the report execution time to affect the dialog process.
    Thanks in advance for your time.

    Hi Nablan, I'm also trying to do parallel processing and created a function module that kicks of another report program.
    However, the process doesn't seem to work. The Main program runs from start to finish but the called program in the function module doesn't seem to run. When I used the option STARTING NEW TASK task name the code ran but in the foreground. I don't want to use this option as it runs in the foreground and SAP limits one to six sessions. Is there something I'm missing in the attributes of the function module I created. Currently the attributes are: Processing type Remote enable module and it's set to start immediately. I had used Normal function module initially but this did not work with the STARTING NEW TASK task name option.
    Below are the codes segements I used.
    In my main program I have the following code segement
    CALL FUNCTION 'Z_CA_PROG_CALL'
      IN BACKGROUND TASK
      EXPORTING
        zprogram            = 'ZCA_TEST1'
      EXCEPTIONS
        program_call_failed = 1
        invalid             = 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.
    COMMIT WORK.
    In the function module I have the following code.
    FUNCTION z_ca_prog_call.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(ZPROGRAM) LIKE  ZCA_INTERFPROG-ZPROGRAM
    *"  EXCEPTIONS
    *"      PROGRAM_CALL_FAILED
    *"      INVALID
      SUBMIT (zprogram).
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN 1.
            RAISE program_call_failed.
          WHEN OTHERS.
            RAISE invalid.
        ENDCASE.
      ENDIF.
    ENDFUNCTION.

  • EXCEL attachment as EMAIL to USER - When USER executes REPORT in BACKGROUND

    Hi Friends,
    I have 10 records in Internal Table. In BACK GROUND execution, I have to send this 10 records as EXCEL attachment through EMAIL to the USER who executed in background.
    How to do this? Thanks in advance.
    Regards,
    Viji.

    hi,
    the following excerpt converts to excel:
    REPORT ZEX_DATATOEXCEL .
    Parameters: P_file like RLGRAP-FILENAME.
    data : begin of int_head occurs 0,
    Filed1(20) type c,                     " Header Data
    end of int_head.
    data : begin of int_data occurs 0,
    Field1(20) type c,                     " Data
    Field2(20) type c,
    Field3(20) type c,
    Field4(20) type c,
    end of int_data.
    int_head-Filed1 = 'Sales Ord'.
    APPEND int_head.
    CLEAR  int_head.
    int_head-Filed1 = 'Sold-to-Party'.
    APPEND int_head.
    CLEAR  int_head.
    int_head-Filed1 = 'Purchase Ord'.
    APPEND int_head.
    CLEAR  int_head.
    int_head-Filed1 = 'Ship-to-Party'.
    APPEND int_head.
    CLEAR  int_head.
    int_data-field1 = '1JOHN'.
    int_data-field2 = '2TOM'.
    int_data-field3 = '3BRAD'.
    int_data-field4 = '4PETER'.
    Append int_data.
    Clear int_data.
    CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
    EXPORTING
    file_name = p_file " path offile where u need to download
    * CREATE_PIVOT = 0
    * DATA_SHEET_NAME = ' '
    * PIVOT_SHEET_NAME = ' '
    * PASSWORD = ' '
    * PASSWORD_OPTION = 0
    TABLES
    * PIVOT_FIELD_TAB =
    data_tab = int_data "internal table with data
    fieldnames = int_head "internal table with header
    EXCEPTIONS
    file_not_exist = 1
    filename_expected = 2
    communication_error = 3
    ole_object_method_error = 4
    ole_object_property_error = 5
    invalid_filename = 6
    invalid_pivot_fields = 7
    download_problem = 8
    OTHERS = 9
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    got it from
    http://abaplovers.blogspot.com/2008/05/abap-internal-table-to-excel-sheet.html.
    then you can export to spool and mail it.
    ags.

  • Problem in executing report using rwrun.sh with runtime/lexical parameters

    hi..
    My problem is as follows..
    I'm using SuSE8.0, with Oracle DS installed..
    I made a rep file to execute a report from command line using rwrun.sh.
    For the first time I got problems with single quotes and later I solved it by using \ as escape sequence and I can generate the report.
    I have 2 lexical parameters.
    1) atable --> for table names
    2) whereford --> for WHERE condition
    When I make the following command I execute it successfully and get the report .
    /opt/oracle/OraHome1/bin/rwrun.sh /opt/jakarta/webapps/ROOT/std-reports/DiagnoseProtokolle.rep userid=test/test@approxim batch=yes desname=/opt/jakarta/webapps/ROOT/kovi_361_Report.PDF destype=file desformat=PDF atable=\',SD_DIAGNOSESYSTEME\' whereford=\'\ \(\(\ SD_DIAGNOSESYSTEME.bezeichnung\ =\'AIRBAG\'\ \)\)\ AND\ \(\(\ SD_DIAGNOSESYSTEME.bezeichnung\ =\'ABS\'\ \)\)\ AND\' tracefile=/opt/jakarta/webapps/ROOT/trace/trace.log tracemode=TRACE_REPLACE
    ** In one line..
    If I don't use \ for escaping braces it doesn't work and also for spaces and single quotes.
    I use braces as I get sometimes mixed conditions..
    But when I make a condition like for eg: emp.emp_id = dept.emp_emp_id it is not executing..
    i mean primary key is referd to foreign key of another table.
    so in the same way the error prone command looks like this
    /opt/oracle/OraHome1/bin/rwrun.sh /opt/jakarta/webapps/ROOT/std-reports/DiagnoseProtokolle.rep userid=test/test@approxim batch=yes desname=/opt/jakarta/webapps/ROOT/kovi_361_Report.PDF destype=file desformat=PDF atable=\',MESSWERTE,SD_DIAGNOSESYSTEME\' whereford=\'\ \(\(\ MESSWERTE.mess_id\ =\ SD_DIAGNOSESYSTEME.mess_mess_id\ AND\ SD_DIAGNOSESYSTEME.bezeichnung\ =\'AIRBAG\'\ \)\)\ AND\ \(\(\ SD_DIAGNOSESYSTEME.bezeichnung\ =\'ABS\'\ \)\)\ AND\' tracefile=/opt/jakarta/webapps/ROOT/trace/trace.log tracemode=TRACE_REPLACE
    when I had a look at the trace.log file I see that particular condition is transformed in to
    MESSWERTE.mess_id = 'SD_DIAGNOSESYSTEME.mess_mess_id'
    but this is completely awkward.
    Then I made a batch file and tested it on windows and i put the whole condition in double quotes and it worked always fine..
    It seems the problem is with the shell ..or ??
    In my rwrun.sh th elast line looks like this..
    $ORACLE_HOME/bin/rwrun $*
    I also tried to chaneg this to
    $ORACLE_HOME/bin/rwrun "$@" and also $ORACLE_HOME/bin/rwrun "$*"
    but no progress..
    If some one could help me it would be gratefull for me..
    Thanx in advance..
    regards
    Kovi

    Here's the relevant portion from the Bash manual:
    Enclosing characters in double quotes preserves the literal value of all characters within the quotes, with the exception of $, `, and \. The characters $ and ` retain their special meaning within double quotes. The backslash retains its special meaning only when followed by one of the following characters: $, `, ", \, or <newline>. A double quote may be quoted within double quotes by preceding it with a backslash.
    So basically stop escaping the single-quotes with a backslash, and instead enclose the entire argument value in double-quotes. Add the single-quotes only if you want them literally, don't escape the parentheses, etc. Let's know if it works for you.
    -Manish

  • Problem when execute report Conversion Tool XI 3.0 on a client

    Hi everyone,
    When I use Report Conversion Tool on a client (not on Webi Server Windows 2003) I have an error (a red cross appears) before the conversion.
    I believe that RCT can not open the document to migrate.
    All it's OK when I use RCT since the Webi Server.
    Any help will be appreciated.
    Thanks

    Hi,
    Thank you for your prompt response.
    I have install all the client tool (even SDK, Query Web Service) except Assitant migration source de données, Gestionnaires Vues d'entreprise et Gestionnaire de traduction.
    I think I have a problem of rights on my Windows 2003 Server because in the log of conversion (C:Documents and SettingsUtilisateurLocal SettingsTempconversionUSER146731693logsD30860242.xml)
    the following lines are written :
    Note that I do the conversion with the Administrator login.

  • Problem in executing BAPI_DOCUMENT_CREATE2 in background

    Hello SAP Gurus,
    My requirement is to upload documents from application server(AL11) / presentation server (PC) to DMS.
    For the above requirement I'am using BAPI "BAPI_DOCUMENT_CREATE2".
    When i execute the program in foreground i have no issues , but when executing in background getting error :
    "Error in checkin & storing file "...
    Regards,
    Madan Shetty.

    Hi Madan,
    Also Add the the BAPI_DOCUMENT_CREATE2 parameter PF_HTTP_DEST with value SAPHTTPA. Make sure that one is also on sm59. Plus check the server where files are has been created as SAP app server on AL11
    Hope this helps.
    Regards,
    Deepak Kori

  • Problem in executing report for sending mail with form as attachment

    Hi
    i created a form in SFP and creted a report for sending it as an attachment via email.When it execute the report an error messgae is displyed saying: Unable to load form for language vector E.
    Please suggest.

    Hi,
    Do you use CL_BCS class to send your forms ?
    Did you pass the forms as binary file to the mail ?
    I can give you sample code where all exception are process and you can see the exact error .
    Best regards.

  • Report layout problem when executing in Background

    Hi,
    I am executing one custom report in background with layout 'Z_65_400' . After execution, the report is generating spool number .
    But when I trying to see the output from the spool, here layout is coming differntly and with name 'X_65_255'.
    These are the latest packs in my system .
    SAP_BASIS     620     0064     SAPKB62064     SAP Basis Component
    SAP_ABA     620     0064     SAPKA62064     Cross-Application Component
    SAP_APPL     470     0030     SAPKH47030     Logistics and Accounting
    Could you please give the solution ASAP.
    Thanks and Regards
    NTR

    Hi
       Check you setting in SPAD Where is assign to the printer make Sure .
    Regards
    Nilesh

Maybe you are looking for

  • Login issue in OIM 11g R2 from a custom application

    Hi All, We are facing  the below error while trying to login to OIM 11gR2 from a client application. javax.security.auth.login.LoginException: javax.security.auth.login.LoginException: java.lang.SecurityException: java.lang.ClassCastException: weblog

  • Premiere Pro CS4 won't render my sequences

    Everytime I send a sequence to Media Encoder, it just sits there. And sits and sits, etc. At the bottom it just says "Loading "Gleaner_Shoot.prproj". I'm using a 2008 Mac with 8 cores with 16 gigs of ram. My footage came from the Canon HV20. I have c

  • Laptop vs. Desktop??

    I currently have a 15in Macbook Pro ( that I've had for over 4 yrs, so it has older software on it.) A couple weeks ago it broke, so I am looking into getting a new computer. My question is whether I should get the newer 15in Macbook pro or get the i

  • Chart In WAD 7.0

    Dear Gurus... I have some problem with chart in WAD. I dont know whether this is a bug in WAD 7.0 or I dont know how to do it :P. The problem is like this. I have query where row item is gross revenue and coloumn is [fiscal year/period] where I place

  • Is it possible to upgrade the bluetooth module in a 2011 macbook pro to 4.0?

    I have a 2011 macbook pro and I heard that handoff only works on bluetooth 4.0. I have no interest in using a dongle, so I wondered if i could jut replace the bluetooth module in my computer. Thanks