Skip to Content
0
Former Member
Feb 22, 2006 at 02:15 PM

BSP Help

12 Views

Hi,

I am new to BSP...

I have a issue to be done where

in the display I have the check boxes, and for the selected values,I have to delete corresponding values/fiels from the DB.

I think I have to pass the selected values to a new IT.....

But I have no clue how to pass the selected values to new IT.

I want some help regarding ,creating an IT and passing the selected values into the same and finally deleting the corresponding values from the DB.

I am attaching the present code in it.

If any other detail required, pls do let me know.

OnInputProcessing..

  • event handler for checking and processing user input and

  • for defining navigation

DATA: USER_TYPE(12) TYPE C.

  • These variables are used for setting the cookie.

DATA: USR TYPE STRING,

EDATE TYPE SY-DATUM,

ETIME TYPE SY-UZEIT.

USER_TYPE = REQUEST->GET_FORM_FIELD( NAME = 'id_name' ).

CASE EVENT_ID.

WHEN 'select'.

  • pass variables to next page

NAVIGATION->SET_PARAMETER( NAME = 'email' ).

NAVIGATION->SET_PARAMETER( NAME = 'contract_date' ).

NAVIGATION->SET_PARAMETER( NAME = 'system' ).

NAVIGATION->SET_PARAMETER( NAME = 'description' ).

NAVIGATION->SET_PARAMETER( NAME = 'reason' ).

NAVIGATION->SET_PARAMETER( NAME = 'id_name' VALUE = USER_TYPE ).

NAVIGATION->GOTO_PAGE( 'SUBMIT.HTM' ).

WHEN 'back'.

NAVIGATION->GOTO_PAGE( 'MAIN.HTM' ).

WHEN 'back'.

NAVIGATION->GOTO_PAGE( 'MAIN.HTM' ).

ENDCASE.

The Layout.

<%@page language="abap"%>

<!-- Presents user with a list of accounts that exist on target system

based-->

<!-- on the SEA that was entered. -->

<%

data: userids_wa type t_userids_wa,

user3_wa type t_user_wa,

zusr01_wa type t_zusr01_wa,

systems_wa type t_zaum_systems_wa.

%>

<html>

<head>

<title> SAP User Capability Validation/Modification Web App (UCWA) </title> </head>

<%@ include file = "header.htm" %>

<h2>SAP User Request Form</h2>

<body class="bspBody1">

<%

loop at it_userid into userids_wa.

endloop.

loop at it_systems into systems_wa.

endloop.

%>

<form name="role_confirmation" method="post"> <table>

<! List user accounts that belong to the SEA that was entered > <p> Here are the following accounts that belong to the email address that you provided. Please choose the role that you wish to remove:

</p>

<p>

<b> SAP ID: <%=userids_wa-uname%> </b>

</p>

<p>

<table width="75%" border = 1>

<tr>

<td>

</td>

</tr>

<%loop at it_user3 into user3_wa where sod_lvl > 0.%> <%at first.%> <tr> <td><b> SYSTEM</b></td> <td><b> ROLE NAME </b></td> <td><b> ENABLES </b></td> </tr> <%endat.%> <tr> <td> <input type="checkbox"

name="id_role" >

</td>

<td>

<%= user3_wa-agr_name%>

</td>

<td>

<%= user3_wa-func_id1%> , <%= user3_wa-func_id2%> </td>

</tr>

<%

endloop.

%>

</table>

</p>

<p>

<tr>

<td>

<input type="submit" name="OnInputProcessing(select)" value="Remove selected roles"> <input type="submit" name="OnInputProcessing(select)" value="No Changes, all roles required"> <input type="submit" name="OnInputProcessing(back)" value="Back to main page">

</td>

</tr>

</p>

</table>

</form>

<%

%>

</body>

<%@ include file = "footer.htm" %>

</html>

Thanks,

Ajaz