Using AppIntegrator in BSP's

Hi Everybody,
I tried to use the Application Integrator for passing user data from portal to BSP. It worked fine for for context like <User.UserID> or <User.LogonUid), but I tried to pass attributes like user country or department <User.Country>, <User.Department>. This didn't worked and I've always got an exception trying to launch the BSP iView.
So my question: is it possible to pass other user attributes from portal to bsp with the AppIntegrator, except the userID? In the instruction about how to use the AppIntegrator it is said that constructs like <User.[AttributeName]> can be passed. Maybe I just don't know the right values for Attribute Names.
Best Regards,
Mladen

Hi,
YOu can pass other attributes. Say for example if you are passing <b>Department</b>, declare this variable as page attibute & set the <b>AUTO checkbox checked in for that Attribute</b>. Then you need to concatenate the "Department" via url with value.
The URL will look like
http://sc-sap-ghd.scs.********.net:8000/sap(bD1lbiZjPTAwNQ==)/bc/bsp/sap/bsp_inbox/display.htm?Department=000000003100
Dont forget the check the AUTO.
<b>Note:</b> To pass more than 1 variable use "&"
Raja T
Message was edited by:
        Raja T
Message was edited by:
        Raja T

Similar Messages

  • Questions on using classes inside BSP pages

    Hi Group,
    I have a few questions on how to use classes,interfaces,parameters in classes,
    and etc., relating to OOPs concepts that can be implemented in BSPs.
    Pls send me some link wherein I can explore things and use it in BSPs.
    Thanks & Regards,
    Vishnu.

    Hi Raja,
    I am facing issues like this:
    1) When I use the code in my BSP as under:
    <%
    class ZCL_MODEL_03 definition load.
    data ref1 type ref to ZCL_MODEL_03.
    data cust_id type c value "1000".
    data c_id type c.
    create object ref1.
    c_id = cust_id.
    call method ref1->CHECK_CUSTOMER changing cid = cust_id.
    %>
    Cannot we define variables in the Scriptlet?? or we need to do only in the attributes sections only?? or in both??
    2)I am not able to use both exporting & importing things in my method call.
    eg.,call method ref1->GET_CUSTOMER
                      exporting cid = cust_id
                      importing c_id = eid.
    In the method definition, I am only using simply logic like, I was trying to send a value into the "cid" defined in the method and putting that value into "eid" which was defined exporting, but, still I could not get the value into "c_id" that I have defined in the BSP page.
    Note: in both the things(in BSP and class definition as well, I am using the same
            type for defining the attributes.
    3)When can we define a "Returning" option in the Class method's parameter    
       Definition? and how can I use it with an example?
    Thanks in advance.
    Regards,
    Vishnu.

  • How to use GUI_DOWNLOAD inside BSP Application event

    Hi All,
    I am facing one issue while using GUI_DOWNLOAD inside BSP Application. When the processing goes at GUI_DOWNLOAD it gives me unknown error where as the same code is working when used in report program. My requirement is to save password into excel file at my local machine. I am using FM MS_EXCEL_OLE_STANDARD_DAT to save password in excel file but this function module fail when it reach at GUI_DOWNLOAD . Can you please help me out.
    Thanks and Regards
    Pradeep Kr. Rai

    Dear Pradeep,
    Find the below link which explains a simple data download to excel from a table view.
    www.sapt echnical.com/Tutorials/BSP/Excel/Index.htm
    Try to avoid the way your using in the BSP application and it is abdicable to use the standard methods / class available like "cl_bsp_utility"
    Hope this will be helpful.
    Regards,
    Gokul.N
    Edited by: Gokul on Oct 8, 2009 9:57 AM

  • Using Appintegrator, sometimes does logon, others don't

    Hello:
    I created a WD app and used Appintegrator in order to simulate a SSO, since it uses authentication but it needed to be depoyed on the portal.
    I followed this great weblog:
    ESA as enabler of Data Quality Assurance
    Now something strange happends.... it does work and it does log on my WD app on everycomputer, except on mine. If I try to log on using my computer, the portal would show me two logon screens, as if I just deployed the WD app with no Appintegrator.....
    Do you have any idea of why this could be happening?
    Thanks!
    Alejandro

    Try to ask advice on a Windows oriented forum.
    * http://www.bleepingcomputer.com/forums/ - BleepingComputer.com - Computer Help Forums
    * http://windowssecrets.com/forums/ Windows Secrets Lounge

  • Error while Integrating SDN with portal using AppIntegrator

    Hi
    I am trying to Integrate SDN in Portal Using AppIntegrator.
    When I am select SDN iview then it is connecting to the SDN but it is not login into SDN (Error is User Id or Password is not correct.).
    The mapped User Id & password is working fine if I am login SDN directly.
    System Property is
    URI of web application: - /irj/servlet/prt/portal/prtroot/com.sap.sdn.logon.redirect
    Thanks in Advance

    Hi
    Try with URL iView. (contant admin >> portal contant)
    Cheers
    Jawahar Govindaraj
    PS:Reward pts

  • Using appintegrator with BW reports - Mapping problem

    Hi All,
    I've been using appintegrator with BW reports for a while.
    The portal was connected to BW by ticket and it worked without a problem.
    Since a new group of users was added to the portal and the UserID of those users in the portal & BW is not the same I want to change the logon method to user mapping.
    Now, I have a problem:
    when I try to run bex report I get a popup asking me for username/password (although the user mapping is configured correctly - transactions are running without a problem).
    Even if I click the 'cancel' button the report will run so I guess the user/password is passed to the bw.
    I use FQDN in the system definition in the portal and in the browser (both systems are on the same domain).
    I read note no. 593640, according to the note configuring the /sap/bw/mime service to anonymous login should solve the problem.
    Doesn't configuring the service this way will cause security issues? or is it just for eliminating the popup?
    Portal is EP6 SP16.
    Thanks,
    Omri

    Hi Dagfinn Parnas,
    The BW definition in EP is indeed user mapping.
    The mapping works for transactions without any problem.
    For bex reports I get the popup and even then, clicking the 'cancel' button shows the report. It's all explained in note 593640.
    Since I'm not a BW person I don't know what defining anonymous login for the MIME service means.
    This is a paragraph from the end of the note:
    'The /sap/bw/mime service is not authorization-relevant because only constant MIMEs such as JavaScript, images (.gif) or stylesheets can be queried. All data-relevant queries (tables or graphics) are made using /sap/bw/bex.'
    I guess it should work but I need to understand what anonymous login means in this case.
    Regards,
    Omri

  • How to find u0091Where used list of BSP Applicationu0092?

    Hi,
    In standard, one BSP application is calling another BSP application by hard coded in application.
    I want find a where used list of a BSP application.
    How to find ‘Where used list of BSP Application’?
    Regards,
    ...Naddy

    Hi Naddy,
    there is a way to find such hard coded things as long as they are really written as literal in the coding. So far i havn't used it on BSP but it's just a token search.
    You can use the code inspector for such things (TCode SCI). You define an object list. Therefore you have to use the static list (dynamic won't work) e.g. for all objects in a package. The ugly thing is that sap has built a filter in SCI that you cannot run it on their standard objects (no comment on that). So you get always 0 objects on sap packages. But you can debug into SCI and set a break point on statement 'SELECT'. One of the selects gets the objects from repository. In this statement sap hands select options to exclude SAP objects. If you change the values you can get these objects in the list.
    Then you run a search on these objects to find the string you look for.
    Ok that's not very comfortable but still faster than checking dozens of objects by hand.
    Best regards
    Roman

  • Structures used in PM - BSP

    Hi,
        There is a structure used in HAP_DOCUMENT BSP  'HAP_T_BODY_COLUMNS'. The field of this structure are getting loaded dynamically. One of the field is 'AVAILABILITY'
        In my scenario the 'AVAILABILITY' field is 'X' i want to change this to blank how do i do it. Kindly help.
    Regards,
    Bharath Mohan B.

    Hi,
    Try this code...
    data ls_hap_body_columns type HAP_S_BODY_COLUMNS.
    loop at HAP_T_BODY_COLUMNS into ls_hap_body_columns.
    endloop.
    clear ls_hap_body_columns-AVAILABILITY.
    then move this <b>ls_hap_body_columns</b> structure, as per your needs.
    I hope this will help you.
    Regards,
    Ramki.

  • Creating sales order using BAPI, through BSP using 2 pages. one for input

    Hi Friends,
    i have a Requirement that....
    i want to create a BSP pages, in first page i have to give input data (in input fields) which is required to create a sales order through BAPI function module (BAPI_SALESORDER_CREATEFROMDAT1).
    in the second page what ever the result given by BAPI FM, that result i want to display on the second page.
    so how i can i proceed with input fields in first page and result in second page. please through some input on this.
    thanks in advance.
    sree

    Hi Sree,
       If you are going to use MVC pattern to do the following steps.
    For example. company code selection...
    In Model class-INIT() method.
    DATA : S_COMP LIKE LINE OF <table>.
    READ TABLE <table> INTO S_COMP INDEX 1.
      IF SY-SUBRC <> 0.
        S_COMP-TEXT = <variable>.
        S_COMP-KEY = '1'.
        APPEND S_COMP TO <i_table>.
        CLEAR S_COMP.
        INSERT S_COMP INTO <i_table> INDEX 1.
      ENDIF.
    HTML View page.
    <htmlb:dropdownListBox id = "comp"
                      table   = "//model/<table>"
                  selection   = "//model/<variable>"
            nameOfKeyColumn   = "text"
            nameOfValueColumn = "text"
            onSelect          = "<Event name>" />
    Thanks,
    Suriya.

  • Using BAPI functions BSP file upload

    Hello,
    Can anyone clarify me  that ' can I upload a file form front end using BSP to the BP as backend to store e the image using the BAPI functions. All this is to get each BP photo in the Solution manager.
    or I have use  the datasets for the file upload. Please help me out.
    With best regards,
    Suneetha

    Hi,
    Uploading LOGO in SAP
    http://www.sap-img.com/ts001.htm
    Upload graphics on
    The program RSTXLDMC can be used to upload graphics (file extension .tif on PC files) into individual standard text.
    <b>ws_upload</b>
    Transfer files from the frontend to the application server.
    Rgds,
    Prakash

  • Using BAPI_DOCUMENT_CREATE2 from BSP Application

    I am trying to add a document in DMS from a BSP application. The bapi_create_document2 works except that it will not upload a file from the client PC. The exact same code with the exact same parameters supplied works from within an ABAP program. I assume that this is because the web server is the presentation server in the BSP application and does not have access to the files on the PC.
    I know that I can use the  <htmlb:fileUpload> tag to move a file from the PC to the data object type ref to CL_HTMLB_FILEUPLOAD. The contents would then be in data->content. I am wondering if there is then some way to add the original file from the object using this BAPI or another one.

    I can tell you what we did.  When you use BAPI_DOCUMENT_CREATE2 you can specify a SAPFTP or SAPHTTP destination.  These are RFC destinations where the sapftp or saphttp executable can be found.  We setup an SAP gateway installation on each of our global content and cache servers.  We then use the client IP address to determine the closest SAP Content server to the client.  We use JavaScript (and the filesystem object - note your server must be in the trusted zone in IE for this to work) to copy the file from the client machine to the nearest Content Server.  Then when we call the BAPI we specify the correct RFC Destination where the file is located and it is checked in correctly.
    Now if you don't use the Content and Cache Servers and only want to upload into the R/3 database repository, then I would just use the fileUpload and write the file to a local directory on the server.  Then point to the SAPFTP/SAPHTTP RFC that would have access on that server.

  • When to use MVC in BSP??

    Hi,
    I am new to BSP. I would like to know in which cases we will go for MVC architecture and when to use Page with flow logic.
    Also, plz let me know in what areas of BSP we shuld be strong if we need to handle a real time project.
    Very soon, I may be involved in BSP project.
    Plz understand my situation and guide me.
    Thanks,
    Ravindra.

    >I would like to know in which cases we will go for MVC architecture and when to use Page with flow logic.
    There is really no reason why you wouldn't stick entirely with MVC.  Other technologies, such as WebDynpro, only allow MVC designs.  MVC really is a way of designing applications as much as it is a technology.
    I would say that 90%+ of everything that I write is MVC.  I rarely use Pages with Flow Logic.  Usually I only use pages if I am quickly building a test app to try out an idea or test a new BSP extension element.  All of my production applications are MVC! 
    But even within an App that is MVC you still mix in some flow logic pages.  I might have a frame within my application that just displays some static information (or maybe just a redirect page). If these are really simple (no event handling) or static, I might create those as pages with flow logic just to save a little time.

  • How to use "document.getElementById()" using MVC and  bsp:call

    I follow the tutorial from saptechnical .com about F4 in BSP and it works.
    But my problem, is that is not working in my BSP I get javascript error "document.getElementById() is null" the popup appear I select the value but when I press the button to close the popup and pass the value nothing appears.
    I think that is because im Using MVC and Views that call a controller (like view inside views).
    I have in my main.htm this:
    <htmlb:form id     = "search"
                   method = "get" >
            <bsp:call url     = "search.do"
                      comp_id = "search" >
            </bsp:call>
    </htmlb:form>
    The code with the help values is in the search.htm(this the page associated with controller search.do)
    So Im thinking that my problem is because the form isnt in the SAME page than my inputField  and that is why im getting that error.  Can be this true ?
    And if it is,  how can I solve it?, I have several pieces of page with controllers and If I try to put the form tag in each "piece" I get an error that a button was left without a parent form tag, and I there isnt any button tag without form tag. So I think that another element tray, tabstrip or something require form tag also.
    I hope that I could explain my problem and someone can give me a hand.
    Can It be that this js statement
    document.getElementById("i_VKORG_low").value = fval;
    only works only if the form tag is in the same htm page, and cause I have teh form tag declared in the main.htm and the fieldtext i_VKORH_low in search.htm it doesnt works ?
    Thx
    EDIT: I cant post my javascript source code...dont know why I get an error from the forum that the post is not supported

    Hello,
    If I remember well, the MVC framework adds the comp_id of the bsp_call to all elements in the subcontroller.
    Try using:
    document.getElementById("search_i_VKORG_low");
    Regards,
    Tanguy

  • Iam geting exception when trying to creat sales order using bapi in BSP pro

    hi,
        I am using BAPI 'BAPI_SALESORDER_CREATEFROMDAT2'
    to creat a sales order in BSP program it giving the exception
    An exception with the type CX_SY_DYN_CALL_ILLEGAL_TYPE occurred, but was neither handled locally, nor declared in a RAISING clause
    Exception Class: CX_SY_DYN_CALL_ILLEGAL_TYPE
    Error Id: 
    Program: CL_O2AXZG4R3LD7CRXUAEKYMRHCDL8CP
    Include: CL_O2AXZG4R3LD7CRXUAEKYMRHCDL8CM007
    Line: 78 
    Long Text
    please help me in solving this  exception

    Hi,
    Are you getting dump?
    I agree with sudhakar. Usually this exception is raised when function is called without proper parameters.
    Please check types of all the parameters you are passing.

  • To logoff using code in BSP

    Hi,
       I have a requirement wherein based on some conditions coded in BSP, I want to do either of the following:
    1. Logoff from portal with a message, say "Wrong mapping".
    2. Call USER MAPPING in PERSONALISE option.
      Kindly suggest me the way to do both the things by writing the code in BSP.
    Regards,
    Santosh

    HI Santosh,
    Portal Applications,like ITS-based applications and BSP ,are rendered in their own IFRAME ,and do not have control over the PARENT window.Using the BSP logoff application page,you won't be able to logoff from the Portal,but the reverse is possible,like based on some events like Personalize Portal or LOGOFF from portal,we can follow up in our BSP application.
    The Enterprise Portal Client Framework (EPCF) provides an infrastructure for scripting used in iViews and by the Portal.
    Using EPCM.subscribeEvent( nameSpace, eventName, eventHandler ) ,we can subscribe to portal events and act acordingly
    while using EPCM.raiseEvent( nameSpace, eventName, dataObject [, sourceId]),we can raise an event.
    I have tried the first case,where if user presses the personalise option or logs off from portal,we can do something,like show an alert.
    But in the other way,when i tried to raise an event to logoff from portal,the event was generated,as i could perceive,as it was caught by the subscribe event to portal logoff,but it doesn't  actually "logoff" the portal.
    I guess it is for  Security reasons that we get access denied trying to access and use Scripts on Portal Objects directly.
    Using the SYSTEM application logoff would'nt work in any case as it would try to logoff from the WAS on which BSP is hosted whereas the session is maintained and stored by the Portal.
    HOpe this helps,
    Regards,
    Siddhartha
    Hope this helps,

Maybe you are looking for

  • Everytime my 30g gets close to being full..it says i need to restore..

    i have to set my ipod on manual because i dont have enough room on my computer for all of my music..so i have to put the music on my ipod and delete them from the computer. well. everytime my 30 gig is almost full (1gig of freespace or less)it eventu

  • Material type report

    Dear Gurus, Is there any standard report which will give stock report similar to MB5B but with material group wise. MB5B gives only with material. Thanks & regards, Kumar

  • Updating a row of a table using rowid

    Hi folks, I am trying to update some rows in a table using rowid of the corresponding rows.Sometimes this updates wrong rows. This is because ORACLE by itself makes some statistics on the particular table using "Analyze table..." statement and it cha

  • Sorting in dataTable

    If anyone had played with display arena .. plss plss let me know .. can we do sorting in dataTable .. i dont see any tags attributes around .. if its not at all possible in jsp , then only i can get in bean coding side ..

  • Uninstalling Palm installed on windows 7

    I have downloaded 6.2 but it will not install until I have uninstalled the version on the computer. The computer gives an error message and will not uninstall on Windows 7. Post relates to: Centro (Verizon)