Retrieving Sender Query Details in via BADI (SMOD_RSR00004)

Hi SDN Community,
thanks to a posting by Jim, i have got some of the information i require from the below code.
*     Jim Langerhuizen / July 6 2007
*     Replace Controlling Area 1000 with hard coded values Z001 and Z002 for Report
My question is how do i ABAP syntax to populate temporary table
l_s_table with the I_S_RKB1D_SENDER table.  (this is found when i double click on i_thx_receiver) in the last line of code below.
I wish to then recoginised the fields that contain.  do you know the syntax and fields:
- Sender Query name
- Structure element that is drilled down by the user in the query
Thank you  in advance
Simon
DATA:
l_s_thx_mapping type rsbbs_sx_map_by_exit,
l_s_range type RRRANGESID,
l_s_table type RSR_S_RKB1D.
DATA:
CompID type RSZCOMPID.
FIELD-SYMBOLS:
<l_sx_mapping> TYPE rsbbs_sx_mapping.
*     Map 0CO_AREA 1000 to Z001 and Z002
*     In the source query all profit centers are with controlling area 1000
*     while in the target query they are split over controlling area Z001 and Z002
read table i_thx_receiver with key fieldnm = '0CO_AREA'
assigning <l_sx_mapping>.

We have taken the approach of customer exit variables in the target query, and specifying variables to catch the required values via the RRI.

Similar Messages

  • Send query's result via SMS (BW3.0b)

    Hi
    we need to send query's results via sms.
    We're going to use reporting agent (we configured an exception in bex and created a follow up action).
    Now I can only send a SAP office message.
    In order to send a sms, could you help me to understand which are the necessary configuration?
    It is enough configure adequately users?? Is any configuration on the system needed?
    Is any additional component needed? we're working on a BW 3.0B release.
    Thanks in advance for your cooperation.
    Regards,
    Stefania Iandolo

    Hi dear,
    look here to have more info about BEx Mobile Intelligence:
    http://help.sap.com/saphelp_bw30b/helpdata/en/f1/50583cf7388362e10000000a114084/frameset.htm
    Hope it helps!
    Bye,
    Roberto

  • Retrieving the Destination details of a publication

    Hi there,
    I have a requirement to retrieve the Destination details from an existing publication and copying that (or setting the same) to a new publication.
    Can someone point out the code/APIs that I would need to use for this?
    I spent some time going through the methods & props of a publication and could not find anything.
    Thanks in advance for your help.

    Please ignore my previous request. Actually, what I require is, to set up a publication to burst a report into multiple reports. All this via code.
    For this I have set the Dynamic Recipient section with a crystal report template as source doc. I have also mapped the fields from the source doc to send the Publication. i.e. set the Recipient Identifier, Full name and Email.
    I have also set up the Personalization section and mapped it appropriately.
    Now I want the files to be generated in a destination folder and each file to be named uniquely based on the unique field which is used for bursting (as specified in the Personalization).
    So I set the destination for the publication as File System and in the Use Specific Name section, put the following-
    %SI_NAME%_%SI_USERFULLNAME%.%EXT%
    The publication gets saved appropriately with these details.
    However, in the file names, the %SI_USERFULLNAME% is replaced with the user that is running the code instead of the unique ID that is mapped in the publication.
    What am I doing wrong?
    Part of the code is as below-
    // Set destination folder
    string destinationQueryString = @"Select * from CI_SYSTEMOBJECTS Where
                                SI_PARENTID=29 And SI_NAME = 'CrystalEnterprise.DiskUnmanaged'";
    InfoObjects destinationObjects = infoStore.Query(destinationQueryString);
    schedulingInfo = newPublication.SchedulingInfo;
    //schedulingInfo.Destination.Clear();
    if (destinationObjects != null && destinationObjects.Count > 0)
        StringBuilder destinationPath = new StringBuilder();
        InfoObject destinationObject = destinationObjects[1];
        DestinationPlugin destinationPlugin = (DestinationPlugin)destinationObject;
        DiskUnmanaged diskUnmanaged = (DiskUnmanaged)destinationPlugin;
        DestinationOptions destinationOptions = diskUnmanaged.ScheduleOptions;
        DiskUnmanagedOptions diskUnmanagedOptions = new DiskUnmanagedOptions(destinationOptions);
        destinationPath.Append(@"F:\CeesReportingPOC\GeneratedReports\")
            .Append("%SI_NAME%_%SI_USERFULLNAME%_%SI_EMAIL_ADDRESS%.").Append(schedulerInfoEntity.ReportFormat);//.Append(schedulingInfo.)
        diskUnmanagedOptions.DestinationFiles.Add(destinationPath.ToString());
        schedulingInfo.Destination.SetFromPlugin((DestinationPlugin)destinationObject.PluginInterface);
    newPublication.Save();
    infoStore.Schedule(newPublicnInfoObjects);

  • Error while sending query result

    Hi all,
    I am working on a JDBC-XI-IDoc scenario. In my sending JDBC adapter configuration, i have given the Query SQL statement as <b>SELECT * FROM SAP_PROMOTION</b> and Update SQL statement as: <b><TEST></b>
    But when i go to adapter monitor, i am seeing an error as follws:
    <b>Error:  Sending query result failed with com.sap.aii.af.service.cpa.impl.exception.CPALookupException: Couldn't retrieve binding for the given channelId: Binding:CID=875514bc047b3557a5b53dfb5ef4babe; - retry
      last retry interval started 10:54:09 2006-05-25
      length 60,000 secs</b>
    Can anybody help me how to solve this problem.
    Regards,
    Divija

    Divija,
    Am not sure if this is the exact cause for your problem, but would anyways suggest that you take a look at it,
    <i>classes12.zip is not compatible with JDK 1.4.</i>
    From the note : <b>831162</b>
    Oracle JDBC Driver (classes12.zip / classes12.jar) Deadlocks
    <b>Q: I have deployed the Oracle classes12.zip / classes12.jar JDBC driver as per the instructions in the XI Configuration Guide.
    Unfortunately, I frequently notice hanging database connections. A thread dump taken according to the instructions in note 710154 shows one or more blocking JDBC Sender/Reciver threads and optionally that the JVM has detected a deadlock.
    A: The Oracle classes12.zip / classes12.jar driver is compatible with Java 1.2 and Java 1.3 only, but not with Java 1.4. Please upgrade to a current driver (ojdbc14.jar), which does support the Java 1.4 JVM you are using.
    Please make sure that you remove classes12.zip / classes12.jar from aii_af_jmsproviderlib.sda prior to adding the new driver as per the instructions in the answer to question #1 above as you will get a class name collision otherwise (all JARs from aii_af_jmsproviderlib.sda are loaded into the same class loader and the driver class name of both driver versions is the same).
    Before deploying the updated driver, ensure that the new version is still compatible with your Oracle database server release. For details, please refer to the release notes provided by Oracle.</b>
    Regards,
    Bhavesh

  • I just started using fire fox and I cant figure out how to add a new folder to my bookmarks. Can anybody explain how in detail (I'm bad with computers so I need real detail) Please and thank you. :)

    I just started using fire fox and I can't figure out how to add a new folder to my bookmarks.
    Can anybody explain how in detail (I'm bad with computers so I need real detail)
    Please and thank you. :)

    If you use extensions (Tools > Add-ons > Extensions) like <i>Adblock Plus</i> or <i>NoScript</i> or <i>Flash Block</i> that can block content then make sure that such extensions aren't blocking content.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    You can use one of these to start Firefox in <u>Safe mode</u>:
    *On Windows, hold down the Shift key while starting Firefox with a double-click on the Firefox desktop shortcut
    *On Mac, hold down the Options key while starting Firefox
    *Help > Restart with Add-ons Disabled
    If it works in Firefox Safe-mode then disable all extensions (Tools > Add-ons > Extensions) and then try to find which is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    See also:
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • No data to retrieve in Query 1 for particular User

    Error: No data to retrieve in Query 1 for particular User
    Hello,
    We have webi report in 3.1 version which is running fine in Infoview for particular user.
    But when same report is send into Inbox of other user and if user try to run it in infoview it is giving below error.
    "No data to retrieve in Query 1"
    All the security and  group member level settings for both the user are exactly same. What could be the reason for this behaviour.
    Thanks

    Can you please check user is part of which group in enterprise receipts group.
    Also please check dynamic receipts tab of publication where data can be filtered
    Thanks,
    Swapnil

  • Accessing Sender Agreement details in Module

    Hi,
    How can we access(read and then modify) the sender agreement details from SOAP header in from ModuleData in the Module interface?
    One way I can think of is to read the SOAP message and parse it. The problem lies with accessing the SOAP message in the process method.
    I would really appreciate your help.
    Thanks.
    SK

    /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
    via that blog you can see how dynamic conf. is done ... via the dynamic conf. you can access mapping runtime too...

  • How to retrieve ABAP query field metedata using SAP JCO?

    How can I retrieve all field details (such as field name, field description, output length field type) using SAP JCO for an ABAP Query?
    I have query name, user group, query area and infoset name with me.
    Thanks

    Hi,
    Please use the DDIF_FIELDINFO_GET (standard) Function Module to retireve the details which you have mentioned.
    Thanks,
    Arun

  • Sending Query to query template

    Hi,
    is it possible to send query from Html page to query template. for example, i create query template as IDBC server and in fixed query mode without giving any query. just blank. in page generator i mapped with iCommand. Now i want to send query from javascript by using getQueryObject. how to send it?
    -senthil

    Senthil,
    As John indicated, using the built-in query parameter [Param.x] allows you to be very dynamic in your approach, but document.APPLET.getQueryObject().setQuery('SELECT....'); would be the same thing if you just wanted to pass in the whole fixed query statement.
    I may be getting ahead of things, but I can't help but think you are heading down a bad development path by burying all of your queries in the client side script.  You can use iCommand applets as recordset objects, but they will always be client sided, not server sided like ado recordsets in asp.  I've seen far too many system integrator botched applications where the the body onload was used to trigger javascript that attempts to force queries into applets when they have not been initialized by the JRE.  By nature Query Templates themselves can be filled with [Param.x]'s but trying to develop large amounts of application content where the select statements are assembled in client side javascript can lead to all sorts of supportability issues for the customer.  Imagine a customer going to training, and understanding the basics of query templates, and then trying to reverse engineer your page with one query template called "SQLGeneric" and all of the logic buried in javascript.  He/she opens the template and all they find is a FixedQuery with [Param.1] - can you envision their confusion?  Then they look at the 1000 - 2000 lines of javascript that I've seen at times?
    Can you provide the business case as to why you would not create a simpler query template minded approach, or would want to construct the queries this way?
    Regards,
    Jeremy

  • TS3899 iPhone 5 email will not send however emails sent via Pages or yahoo are sending ok? Help

    iPhone 5 email will not send however emails sent via Pages or yahoo are sending ok? Help

    I inserted the code and i am still getting the same error. Here's what i'm getting.
    Developer Details:
    E-mail couldn't be sent. Error returned: authentication failure [SMTP: Invalid response code received from server (code: 535, response: 5.7.3 Authentication unsuccessful)]. (EMAIL_FAILED)
    tNG Execution Trace - VIEW
    * tNG_insert.executeTransaction
    o STARTER.Trigger_Default_Starter
    o tNG_insert.doTransaction
    + BEFORE.Trigger_Default_FormValidation
    + BEFORE.Trigger_Registration_CheckUniqueUsername
    + BEFORE.Trigger_Registration_CheckPassword
    + BEFORE.Trigger_Registration_PrepareActivation
    + tNG_insert.prepareSQL
    + tNG_insert.executeTransaction - execute sql
    + tNG_insert.postExecuteSql
    + AFTER.Trigger_Registration_AddDynamicFields
    Error--> + AFTER.Trigger_ActivationEmail*
    + ERROR.Trigger_Default_Insert_RollBack
    * tNG_insert.getRecordset
    * tNG_insert.getFakeRsArr
    * tNG_insert.getLocalRecordset
    * tNG_insert.getFakeRecordset
    * tNG_insert.getFakeRecordset
    Are there any other file I can alter for authentication? Or perhaps i need to insert the code sting I was given into another file?

  • I'm having a problem sending a word doc via email. I have Mac for Office 08, when I save the document as a .doc or .docx, and send it to someone, they receive it as a blank document. Yet, when I open it on my Mac, it has a "word" icon. How do I fix?

    I'm having a problem sending a word doc via email. I have Mac for Office 08, and I'm using Mavericks OS. When I save the document as a .doc or .docx, and send it to someone, (doesn't matter if its safari, chrome or firefox or on my yahoo or gmail accounts) they receive it as a blank document. Yet, when I open it on my Mac, it has a "word" icon and I can read it. How do I fix?

    I suggest you post on the Microsoft Mac forums since it's their software you're having issues with.
    http://answers.microsoft.com/en-us/mac

  • How to configure purchase requistion in third party sale pls send me detail

    dear expert
    how to configure purchase requistion in third party sale pls send me details. waiting your valuable reply
    vicky

    you can find the details in the below links
    Re: THird party sales complete scenario
    http://wiki.sdn.sap.com/wiki/display/ERPLO/PROCEDURETOCREATETHIRDPARTY+SALES
    http://www.sap-img.com/sap-sd/process-flow-for-3rd-party-sales.htm
    Regards

  • Sending a binary attachment via email, looking for a more clean way

    Hi experts.
    I finally managed to send a binary attachment via email. Why "finally"? Never done before!
    Also I got to manage the "not standard" .SAP file extension, because the attachment is a transaction link.
    So let me explain how i did it:
    take SO_NEW_DOCUMENT_ATT_SEND_API1, filling following input data:
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = st_docdata
          commit_work                = 'X'
        TABLES
          packing_list               = lt_packlist
          contents_hex               = lt_hex
          contents_txt               = lt_content
          receivers                  = lt_recv
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
    But how to fill lt_hex? Well I did not found a way to transfer text data into raw data structure (lt_hex is type SOLIX).
    So, here is the trick:
    fill another table, lt_bin type SOLISTI1, with attachment content (text data);
    dump lt_bin content to a file on application server, having care to specify TEXT MODE and UTF-8 encoding;
    now reopen the same file in BINARY MODE and transfer content to lt_hex.
    Why I did not use parameter
    content_bin
    ? Because SAP ECC 6 is unicode enabled (I think UTF-16) and file has got to be UTF-8 or ASCII. Also, packing_list for attachment must specify binary tranfer mode. And doing so each UTF-16 character (2 bytes) is split into 2 characters (1 char + 1 NUL byte). Attachment is now unusable.
    What is the question? Here it is: how to fill lt_hex data directly from text (UTF-16) data, avoiding conversion errors?
    Thank you in advance.

    Hi Chhayank,
    the problem is not the exported xls. If you have a look inside with Notepad or something like that, you will see that your leading zeros are exported correct.Excel-settings occurs this problem, it is all about how to open the document. If you use the import-assistant you will have no problems because there are options available how to handle the different columns.
    Another solution might be to get familiar with ABAP2XLS-Project. I got in my mind, that there is a method implemented, that will help you solving this problem. But that is not a five minute job
    ~Florian

  • Sending documents as attachments via email

    Hi,
    I have a selection screen with purchase order number as "select-options" and 2 radio buttons one for downloading and opening the SAP Script output to the local file and the other raido button would convert the SAP Script output into .pdf file and send that file as an attachment via e-mail to the receipent(only one).
    I'm through with the first operation. Now need to know about the e-mailing procedure and the function module(s) to be used and their import, export, etc. parameters.
    Thanks & Regards,
    Rajesh

    Hi Rajesh,
    You can use standard SAP program <b>RSTXPDFT4</b> to convert SAPSript spools request to PDF.
    Also please check this link for sample code to sending an attachment (PDF) via email:
    http://www.sapgenie.com/abap/code/abap31.htm
    Hope this will help.
    Regards,
    Ferry Lianto

  • Error occurred while sending query result: 'java.lang.NullPointerException'

    I am doing end to end scenario from SQL server to File
    JDBC --XI -- File
    I am getting the following Error while monitoring the sender CC in RWB
    "Error occurred while sending query result: 'java.lang.NullPointerException'
    Please Help !!

    Hi,
    To see the Adapter Error log, try:
    http://<XiServerHostName>:<J2EE-Port>/MessagingSystem
    Try viewing the Audit Log for each message (Newspaper Icon)
    Regards,
    Amitabha

Maybe you are looking for