Not able to Submit CJI5 report in background using Variant

Hi Experts,
Is it possible to fill the multiple screens through FM rs_create_variant.
Reagrds,
Nava

Hi Ramesh,
I am trying to submit the CJI5 report in back ground through variant. The varaint was created using FM RS_CREATE_VARIANT. it's throughing an error .
IF I create variant directly via selectin screen then it's working fine.
FYI.
REPORT z_co99_cji5
       NO STANDARD PAGE HEADING
       MESSAGE-ID 00
       LINE-SIZE 290.
PROGRAM      : Z_CO99_CJI5                                           *
TITLE        : CJI5 In Background                                    *
AUTHOR.      : Raja Nesanoor                                         *
DATE WRITTEN : 27-Feb_2007                                           *
REVTRAC      : xxxxxx                                                *
PROGRAM FUNCTION:                                                    *
To DISPLAY CJI5 Report in background                                 *
PROGRAM TYPE : Executable  program                                   *
DEV. CLASS   : XXXXXX                                                *
LOGICAL DB   : NA                                                    *
AUHTORIZATION CHECKS                                                 *
Object           Authorization Fields             ABAP Fields        *
S_TCODE                                                              *
                    BUKRS                          v_BUKRS           *
CHANGE HISTORY                                                       *
Date         Id        Name      Indicator   Description             *
DATA : v_repid LIKE sy-repid VALUE 'ZRKPEP005' ,
v_variant LIKE varid-variant VALUE 'V_CJI5' .
DATA: BEGIN OF w_varid.
        INCLUDE STRUCTURE varid.
DATA: END OF w_varid.
DATA: BEGIN OF i_rsparams OCCURS 10.
        INCLUDE STRUCTURE rsparams.
DATA: END OF i_rsparams.
DATA: BEGIN OF i_rsparams1 OCCURS 10.
        INCLUDE STRUCTURE rsparams.
DATA: END OF i_rsparams1.
DATA: BEGIN OF i_varit OCCURS 2.
        INCLUDE STRUCTURE varit.
DATA: END OF i_varit.
DATA: BEGIN OF i_vscreens OCCURS 2.
        INCLUDE STRUCTURE rsdynnr.
DATA: END OF i_vscreens.
start-of-Selection
START-OF-SELECTION.
  SET PARAMETER ID 'CAC' FIELD 'GC10'.
  SET PARAMETER ID 'PDB' FIELD '000000000001'.
  PERFORM populate_var_table.
  PERFORM create_variant.
  PERFORM submit_cji5.
*& Form POPULATE_VAR_TABLE
text
--> p1 text
<-- p2 text
FORM populate_var_table .
  CLEAR w_varid .
  REFRESH i_varit .
  REFRESH i_rsparams .
  i_rsparams-selname = 'CN_NETNR'.
  i_rsparams-kind = 'S'.
  i_rsparams-sign = 'I'.
  i_rsparams-option = 'EQ'.
  i_rsparams-low = '90273536'.
  i_rsparams-high = space.
  APPEND i_rsparams.
  CLEAR : i_rsparams .
  i_rsparams-selname = 'CN_NETNR'.
  i_rsparams-kind = 'S'.
  i_rsparams-sign = 'I'.
  i_rsparams-option = 'EQ'.
  i_rsparams-low = '90274010'.
  i_rsparams-high = space.
  APPEND i_rsparams.
  CLEAR : i_rsparams .
  i_rsparams-selname = 'R_OBDAT'.
  i_rsparams-kind = 'S'.
  i_rsparams-sign = 'I'.
  i_rsparams-option = 'BT'.
  i_rsparams-low = space .
  i_rsparams-high = space.
  APPEND i_rsparams.
  CLEAR : i_rsparams .
  i_rsparams-selname = 'P_DISVAR'.
  i_rsparams-kind = 'P'.
  i_rsparams-sign = 'I'.
  i_rsparams-option = 'EQ'.
  i_rsparams-low = '1SAP' .
  APPEND i_rsparams.
  CLEAR : i_rsparams .
  i_rsparams-selname = 'P_USEDB'.
  i_rsparams-kind = 'P'.
  i_rsparams-sign = 'I'.
  i_rsparams-option = 'EQ'.
  i_rsparams-low = SPACE.
  APPEND i_rsparams.
  w_varid-mandt = sy-mandt.
  w_varid-report = v_repid.
  w_varid-variant = v_variant.
  w_varid-flag1 = space.
  w_varid-flag2 = space.
  w_varid-transport = space.
  w_varid-environmnt = 'A'. "Variant for batch and online
  w_varid-protected = space.
  w_varid-secu = space.
  w_varid-version = '0'.
  w_varid-ename = sy-uname.
  w_varid-edat = sy-datum.
  w_varid-etime = sy-uzeit.
  w_varid-aename = space.
  w_varid-aedat = space.
  w_varid-aetime = space.
  w_varid-mlangu = sy-langu.
  i_varit-mandt = sy-mandt.
  i_varit-langu = sy-langu.
  i_varit-report = w_varid-report.
  i_varit-variant = w_varid-variant.
  i_varit-vtext = 'CO99-OUTPUT'.
  APPEND i_varit.
ENDFORM. " POPULATE_VAR_TABLE
*& Form CREATE_VARIANT
text
--> p1 text
<-- p2 text
FORM create_variant .
data: h_rc like sy-subrc.
*Check variant exists.
  CALL FUNCTION 'RS_VARIANT_EXISTS'
       EXPORTING
            report              = v_repid
            variant             = v_variant
       IMPORTING
            R_C                 = h_rc
         EXCEPTIONS
            not_authorized      = 01
            no_report           = 02
            report_not_existent = 03
            report_not_supplied = 04.
  IF h_rc = 0.
    CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT'
         EXPORTING
              curr_report               = v_repid
              curr_variant              = v_variant
              vari_desc                 = w_varid
         TABLES
              vari_contents             = i_rsparams
              vari_text                 = i_varit
         EXCEPTIONS
              illegal_report_or_variant = 01
              illegal_variantname       = 02
              not_authorized            = 03
              not_executed              = 04
              report_not_existent       = 05
              report_not_supplied       = 06
              variant_doesnt_exist      = 07
              variant_locked            = 08
              selections_no_match       = 09.
    COMMIT WORK.
  ELSE.
    CALL FUNCTION 'RS_CREATE_VARIANT'
         EXPORTING
              curr_report               = v_repid
              curr_variant              = v_variant
              vari_desc                 = w_varid
         TABLES
              vari_contents             = i_rsparams
              vari_text                 = i_varit
         EXCEPTIONS
              illegal_report_or_variant = 1
              illegal_variantname       = 2
              not_authorized            = 3
              not_executed              = 4
              report_not_existent       = 5
              report_not_supplied       = 6
              variant_exists            = 7
              variant_locked            = 8
              OTHERS                    = 9.
    COMMIT WORK.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
  ENDIF.
ENDFORM. " CREATE_VARIANT
*& Form submit_cji5
text
--> p1 text
<-- p2 text
FORM submit_cji5 .
  CALL FUNCTION 'SUBST_START_REPORT_IN_BATCH'
       EXPORTING
            iv_jobname                    = 'TEST_JOB'
            iv_repname                    = v_repid
            iv_varname                    = v_variant
            iv_authcknam                  = sy-uname
            iv_language                   = sy-langu
            iv_varianttext                = 'CO99-OUTPUT'
       TABLES
            tt_reportparam                = i_rsparams
       EXCEPTIONS
            variant_exist_check_failed    = 1
            variant_update_failed         = 2
            variant_update_not_authorized = 3
            variant_update_no_report      = 4
            variant_update_no_variant     = 5
            variant_update_variant_locked = 6
            variant_insert_failed         = 7
            variant_insert_not_authorized = 8
            variant_insert_no_report      = 9
            variant_insert_variant_exists = 10
            variant_insert_variant_locked = 11
            variant_write_failed          = 12
            no_batch_service              = 13
            no_server_list                = 14
            batch_scheduling_failed       = 15
            OTHERS                        = 16.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDFORM.
Thanks
Nava

Similar Messages

  • Not able to edit the report created on different data source.....

    I have a query regarding Report in OBIEE - reports developed from BI Publisher are specific to data source on which they have been created ??
    i have a sample report that was created on different data source, i have the corresponding RPD also. I changed the data source according to my DB and when i try to update/edit the report,
    on Analytics for adding a new column, it is generating a seperate new Query from QueryBuilder for that additional cloumn rather than adding up the new query with the previous one(existing report query). Is it because of mismatch of data source on which report had been created and on which it is being update ?? if it is the case, where do i need to make changes related to JDBC connection or others ??
    when i try to create a new sample data set and try to update it, it adds up the extra edited things to original query and works perfectly fine. can ny 1 help me for the same ??

    Hi Denis,
    Normally,what we do is once we provide access to webi users group for each user from BO supervisor module, user(s) will able to refresh/edit the existing report from Full client BO.His colleagues have had no problem editing all his reports from their machines but he is not able to edit any report from his machine and BO is getting freeze.
    He also reinstalled BO and cleaned out everything on his Computer and re-built it but the issue is not yet resolved
    Can you please tell me how to resolve this issue
    Kind Regards,
    Srinivas

  • Not able to view any report in BI Publisher 11g

    Hello All
    I have installed BI Publisher 11g in Intel Solaris 10. I started of from the scratch, created a Data Model, then created a Report. but now I am not able to view the report. Upon clicking the report name or Open it logs me out.
    I am logged in as user, weblogic the default user created while installation.
    Please help
    Ash

    Hi Rony,
    You may have created the report initially with Web Layout only - therefore there will no paper layout.
    To 'get' the paper layout back, select your Report module name from the Builder and then select Tools-->Report Wizard. Select 'Create both web and Paper Layout' and then go through the various wizard steps.
    Best of Luck.
    Regards,
    John

  • Not able to edit the report from BO 5.1

    Hi,
    User has Business Objects 5.1 version on his machine  and he is able to login to Business Objects 5.1.2 and can also open the BO reports from the required path
    When he edit the report, the BO is gettng hung and following errors occured one by one when he clicks ok button
    error1: "you must close this universe(name of universe) before importing it"
    when he clicks OK button on this error, second error is received
    error2: "Some obsolete objects have been removed from the query. (QP0027)"
    When he clicks OK button on this error, third error is received
    error3:"A connection required to refresh this document is unavailable(DA0004)"
    I am not understanding why these three errors are receiving one by one.Please tell me how to resolve above errors and edit the report
    kind Regards,
    Srinivas

    Hi Denis,
    Normally,what we do is once we provide access to webi users group for each user from BO supervisor module, user(s) will able to refresh/edit the existing report from Full client BO.His colleagues have had no problem editing all his reports from their machines but he is not able to edit any report from his machine and BO is getting freeze.
    He also reinstalled BO and cleaned out everything on his Computer and re-built it but the issue is not yet resolved
    Can you please tell me how to resolve this issue
    Kind Regards,
    Srinivas

  • Not able to run a report on BiPublisher version 10.1.3.4

    I am using Bipublisher version 10.1.3.4. i am not able to run the Report. I am calling this report using
    webservice from java code.I have added entry "Guest" in Guest Folder name also i have
    checked the checkbox AllowGuest acess in Admin->ServerConfiguration tab.
    i have xdo file in location /Guest/Test/InvoiceBatchReport/InvoiceBatchReport.xdo
    I am getting exception at line following line
    ReportResponse reportResp = (ReportResponse) call.invoke( new Object[] {report, "Administrator", "Administrator"} );
    following is the exception detail
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: oracle.apps.xdo.webservice.exception.OperationFailedException: PublicReportService::generateReport failed: due to unable to read
    ReportDataFile [Guest/Test/InvoiceBatchReport/InvoiceBatchReport.xdo]
    faultActor:
    faultNode:
    faultDetail:
    {}oracle.apps.xdo.webservice.exception.OperationFailedException:null
    {http://xml.apache.org/axis/}hostname:GTMDevWS
    oracle.apps.xdo.webservice.exception.OperationFailedException: PublicReportService::generateReport failed: due to
    unable to read ReportDataFile
    [Guest/Test/InvoiceBatchReport/InvoiceBatchReport.xdo]
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
    at
    org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
    at
    org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContex
    t.java:1087)
    can any body provide me the solution ?

    I missed to attach the source code.following is mine source code.
    public static void runReport() throws Exception {
              final String bipEndpoint = "http://localhost:9706/xmlpserver/services/PublicReportService?wsdl";
              final String bipNamespace = "http://xmlns.oracle.com/oxp/service/PublicReportService";
              final String xdofile = "/Guest/Test/InvoiceBatchReport/InvoiceBatchReport.xdo";
    // set up the call object
    Service service = new Service();
    Call call = (Call) service.createCall();
    call.setTargetEndpointAddress(new URL(bipEndpoint));
    // TEST Run Report
    System.out.println("TESTING runReport Service BEGIN");
    // register the ReportRequest class
    QName reportReq = new QName(bipNamespace, "ReportRequest");
    call.registerTypeMapping(ReportRequest.class, reportReq, BeanSerializerFactory.class, BeanDeserializerFactory.class);
    // register the ParamNameValue class
    QName nmvals = new QName(bipNamespace, "ParamNameValue");
    call.registerTypeMapping(ParamNameValue.class, nmvals, BeanSerializerFactory.class, BeanDeserializerFactory.class);
    // register the BIPReportResponse class
    QName reportRespqn = new QName(bipNamespace, "ReportResponse");
    call.registerTypeMapping(ReportResponse.class, reportRespqn, BeanSerializerFactory.class, BeanDeserializerFactory.class);
    // Default return type based on what we expect
    call.setOperationName( new QName(bipNamespace, "runReport" ));
    call.addParameter( "ReportRequest", reportReq, ParameterMode.IN );
    call.addParameter("admin", XMLType.XSD_STRING, ParameterMode.IN);
              call.addParameter("yuvraj79", XMLType.XSD_STRING, ParameterMode.IN);
    call.setReturnClass(ReportResponse.class);
    ParamNameValue[] paramNmVals = new ParamNameValue[2];
    paramNmVals[0] = new ParamNameValue(false, "dept", null) ;
    paramNmVals[1] = new ParamNameValue(false, "emp", new String[] {"*"}) ;
    ReportRequest report = new ReportRequest("pdf", "en-US", "Simple",false, null, "/Guest/Test/InvoiceBatchReport/InvoiceBatchReport.xdo",null, xdofile, -1);
    // issue the reques
    ReportResponse reportResp = (ReportResponse) call.invoke( new Object[] {report, "Administrator", "Administrator"} );
    System.out.println("Return ReportResponse: ContentType = " + reportResp.getReportContentType());
    // Save the report
    byte[] binaryBytes = reportResp.getReportBytes();
    OutputStream out = new FileOutputStream("D:\\temp\\out.pdf");
    out.write(binaryBytes);
    out.close();
    System.out.println("Success for Run Report");
    }

  • Not able to Print the report

    <p>Hello All,</p><p>I am not able to print the report. When i click on the icon a blank form opens up. Is there something i need to do to see the form with some details.</p><p>Thanks</p><p>ram</p><p>&#160;</p>

    <p>Hi Ram,    </p><p>Can you give me some more details around your issue? How exactly are you building the viewer? Are you using the JSP Page Wizard that comes with Crystal Reports for Eclipse? If so, then can you tell me what application server you are deploying to?  All of these pieces may help narrow down the issue.  </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) <br /><br /> <a href="http://www.eclipseplugincentral.com/Web_Links-index-req-ratelink-lid-639.html">Rate this plugin @ Eclipse Plugin Central</a>          </p>

  • Not able to Preview Crystal Report from Portal

    Hi
    Not able to view the Report designed using Crystal Report.
    It can be viewed when access directly in BOBJ System.
    It show the following error
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)
    Timestamp: Thu, 4 Aug 2011 08:09:45 UTC
    Message: Access is denied.
    Line: 10
    Char: 1
    Code: 0
    URI: http://bobjdev.hclinsys.com:8080/OpenDocument/appService.do?service=error
    Please guide
    Thanks

    Hi Prashantroy
    This is IE Problem. Try installing IE 8 fresh and try ;
    Please refer this document http://answers.microsoft.com/en-us/ie/forum/ie8-windows_7/webpage-error-detailsuser-agent-mozilla40/9a1ad6a9-7085-4676-aa5c-ab5ce4fdb7d2
    [Freeze after exporting the report from asp.net app to eg Excel|Freeze after exporting the report from asp.net app to eg Excel;
    [Please look  at this forum|'Organizational Assignments' link in MSS>Team>General Information;
    I hope this is help full for you,
    Regards
    Vijay

  • HTTP 500 - Internal server error - not able to Export BI report to Excel

    Hi,
    We just upgraded to HFM 9.3.1.4. Unfortunately we are not able to Export BI report to Excel (in Workspace and in BI Studio). We receive the error message "HTTP 500 - Internal server error" (this worked fine in 411).
    We are able to preview in PDF and HTML, but not Export to Excel. We also just restarted the services for workspace and web analysis, but still the same issue.
    Anyone have any idea what is wrong?
    Thanks for your help!

    Hi Varun,
    We just restarted the financial reporting services, but still receive the same error message.
    Any other idea?
    Thank you for any help.

  • OBIEE 11g  - Not able to see existing reports which are created by specific owner but I could able to see Admin role user reports.

    OBIEE 11g  - Not able to see existing reports which are created by specific owner but I could able to see Admin role user reports.
    Appreciated if you could able to help as soon as possible as I don' have back up for these disappeared reports.
    Pleas let me know if any additional information needed.

    Hi
    Thank you for the reply.
    Here one thing I would need to mention that those are created by me on last week, but when I check those today, I could not able to see or even admin also not able to see those. For sure no migration and updations happend over the week end, really not able to debug whats the issue around. Unfortunately I haven't taken back up as well.
    Please could you help and let me know whats the root cause and how I could able to restore.
    Best regards,
    Kumar

  • End users not able to export a report to a spreadsheet

    Hi Gurus,
    My end users not able to export a report to a spreadsheet..
    version     : ECC 6.0
    Release    : 7.10
    support Package 14
    Currently the end user has 6 choices for creating spreadsheets if the selecte the "All Available Formats" option when generating a spreadsheet. Those options are:
    Excel (in MHTML format)
    Excel (in MHTML format for 2000/97)
    Excel (in Office 2003 XML format)
    SAP internal XML format
    SAP Standard (internal table)
    Excel (in Existing XXL format)
    When they are trying to use format " Excel (in Existing XXL format) " Below error is coming..
    save XXl list object in SAP Office
    Name for list object            ALVXXL01
    Title for SAPoffice              -
    as per sap Note 1080608 it's support only * Excel (in previous XXL format) format,
    My question is  * Excel (in Existing XXL format) and * Excel (in previous XXL format) are same.
    If yes why its not allowing to Excel (in Existing XXL format)... ? Am waiting for you valuable suggestions..
    Best Regards,
    RK

    Dear, all
    When they are trying to use format " Excel (in Existing XXL format) " Below error is coming..
    save XXl list object in SAP Office
    Name for list object ALVXXL01
    Title for SAPoffice
    Please sujest how to solw this problem
    Mayur Tandel

  • LAC : Applet not calling & Bidders not able to submit bids for Live Auction

    Hi,
    I am working on SRM 5.O Live Auction Cockpit(LAC) facing couple of issues while accessing it :-
    I have created Auction from Process Auction .Bidders are getting Auctions but unable to submit bids against that .
    Whereas same bidders are able to submit bidds for Bid Invitation .
    Have I missed any customisation ?Additionally following issues are there :-
    1. In Restrictive Bid /Auctions bidders are not getting mail with URL details .
    2. In LAC while clicking on Live Auction tab same screen is getting called .
    Can you let me know will it require to install LAC componant once again ?
    Thanks ,
    Sachin

    Hello,
    We are working on SRM 5.O Live Auction Cockpit(LAC) .Smoke test results are successfull but bidder user is facing issues
    while submitting bid .
    Bidder  user is not able to submit his next bid nor purchaser able to see bids submitted by bidder
    on LAC main screen .Whereas same bidder users are able to submit bidds for Bid Invitation
    Here on LAC main screen bidder is able to submit his bid and bid price filed becomes grey .
    It is observed that LAJCO error"AbstractJcoService.execute(JcoServiceRequest _input, Locale _locale): Unknown exception has occurrsed. Error message is as follows...null" is generating  . But in detailed messgae there is no clarity of issue in trace log.
    Can anyon give more focus on it as we are stuck.
    Regards,
    Santosh

  • I am not able to open a batch input job using SM37

    Hi Gurus,
                          I am not able to open a batch input job using SM37. I enter SM37 through a well authorized ID. May be there is a authorization issue or may be not. I check all the check boxes even then it is not possible. Please help me.

    Hi Amit Sharma,
    If I am not wrong, the problem would be because you have not closed the job after creating it.
    You must have used JOB_OPEN, JOB_SUBMIT but not JOB_CLOSE.
    Job_Close is the FM which submits the created job to the background processing system.
    Hope this resolves. If not, paste your code here so that we can have a look
    Thanks,
    Babu Kilari

  • Not able to connect N70 to pc(xp) using ca-53 cabl...

    Not able to connect N70 to pc(xp) using ca-53 cable
    hi i am having this trouble from a year... i am unable to connect my phone n70 using cable to my pc,.,. even after installing all drivers n pc suite n havin it reinstalled also n again doin d same process.. its not getting detected at all.. please help me out... pleaseeee..been tryin 4m a year..nevr checkd des forumss.. hopin som bdy ll help ,me out.. !!!. !!!!

    The DKU-2 cable is no longer supported and so cannot be guaranteed to be compatible with current PC Suites, you should be using either your current CA-53 or the CA-70.
    Have you had the chance to connect any other phone with the PC using this cable? This would test if thr cable itself might be faulty.
    Otherwise remove PC Suite, PC Connectivitiy Solution and Connectivity Cable Drivers from control panel, run the PC Suite Cleaner program that you can get from the PC Suite support pages on the web site, then reinstall everything.

  • I am not able to access the sharepoint:80 site using the local IP address.

     I am able to access the Central administration using the Local LAN IP address and the port number, but, I am not able to access the sharepoint:80 site using the same local IP address without the port for the central administration. I tried adding
    the local IP address in the Alternative Access Mapping to no avail. Any ideas, where I should look, is much appreciated.

    Hi,
    By my test, I set the Alternative Access Mapping for the SharePoint 80 port web application as below and it works fine:
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • Not able to convert word file to PDF using Adobe Acrobat 9 Standard

    Hi,
    I am not able to convert word file to PDF using Adobe Acrobat 9 Standard. When I try to convert, it starts the process and in between I am getting this prompt, as shown in figure below and the conversion process stops. The PDF is not created.
    Note: The filename 'Acr85.doc' in the above prompt keeps changing and is random.
    I tried clicking Yes, No and Cancel on the above prompt, but the conversion process just stops and PDF is not getting generated.
    I am able to create PDFs from web pages. No issues with that. Not working only with Word.
    Can someone help me with this.
    Thanks,
    Vinay Jaassiel Kankipati
    Technical Writer

    In MSWord please changes the settings as "Adobe PDF" menu => "Change Conversion Settings" goto Tab Bookmark and clicks the option Convert Word Bookmarks. Now you convert the Doc to PDF you can achieve the Bookmark.
    Hope this help you
    Sudhakar

Maybe you are looking for