Provide and End Provide....
Hi All,
I would like to know the Provide and End Provide usage and the syntax for the same.
Thanks in Advance,
Praveen
Hi Ashis,
Thanks for your reply here is my program
REPORT ZIBP_UPDATE_TECH_QUALS3.
DATA: BEGIN OF I_TECHS OCCURS 0,
TECID TYPE BU_PARTNER.
INCLUDE STRUCTURE BAPIRET2.
DATA: END OF I_TECHS.
DATA: V_TECID TYPE BU_PARTNER.
TABLES : BUT001.
SELECT-OPTIONS: S_TECIDS FOR BUT001-PARTNER.
SELECT PARTNER FROM BUT000 INTO TABLE I_TECHS
WHERE TYPE = '1' AND
PARTNER IN S_TECIDS.
DATA: V_ESADDRESS LIKE BAPIBUS1006_ADDRESS.
LOOP AT I_TECHS.
*first get country of technician
*the get conditions for the product for that country
*then validate the course,certificates requirement against possessed by technician.
CLEAR: V_ESADDRESS.
CALL FUNCTION 'BUPA_ADDRESS_GET_DETAIL'
EXPORTING
IV_PARTNER = I_TECHS-TECID
IV_PARTNER_GUID =
IV_ADDRNUMBER =
IV_ADDRGUID =
IV_VALDT = SY-DATLO
IMPORTING
ES_ADDRESS = V_ESADDRESS .
IF V_ESADDRESS-COUNTRY = SPACE.
I_TECHS-NUMBER = 012.
I_TECHS-ID = 'ZLEN'.
I_TECHS-TYPE = 'E'.
MESSAGE E012(ZLEN) INTO I_TECHS-MESSAGE.
MODIFY I_TECHS.
ENDIF.
DATA: I_SRV_CONDS LIKE ZIBP_QUAL_CONDI OCCURS 0 WITH HEADER LINE.
Types: begin of I_TEC_COURSES.
include structure ZBUT0000HCZ0SY.
Types: end of I_TEC_COURSES.
DATA: I_TEC_COURSES LIKE ZBUT0000HCZ0SY OCCURS 0 WITH HEADER LINE.
DATA: I_TEC_CERTS LIKE ZBUT0000FAZ1S7 OCCURS 0 WITH HEADER LINE.
DATA: I_SRV_CONDS2 LIKE ZBUT0000F8FNVK OCCURS 0 WITH HEADER LINE.
SELECT * FROM ZIBP_QUAL_CONDI INTO TABLE I_SRV_CONDS
WHERE COUNTRY = V_ESADDRESS-COUNTRY. "AND PRODUCTID = PRODUCT.
SELECT * FROM ZBUT0000F8FNVK INTO TABLE I_SRV_CONDS2
WHERE ZZBRAND_GROUP = I_SRV_CONDS-PRODUCTID.
*get Training courses, certificates here
SELECT * FROM ZBUT0000HCZ0SY INTO TABLE I_TEC_COURSES
WHERE PARTNER = I_TECHS-TECID.
SELECT * FROM ZBUT0000FAZ1S7 INTO TABLE I_TEC_CERTS
WHERE PARTNER = I_TECHS-TECID.
DATA: SRVDT_NUMC(14) TYPE N.
SRVDT_NUMC(8) = SERVICEDT(8).
SRVDT_NUMC+8(6) = '000000'.
DATA: THIS_COND_FAILED, THIS_COURSE_PASSED.
DATA: CURRENT_PROD LIKE I_SRV_CONDS-PRODUCTID.
DATA: THIS_PRODUCT_DONE.
SORT I_SRV_CONDS BY PRODUCTID.
LOOP AT I_SRV_CONDS.
AT NEW PRODUCTID.
CURRENT_PROD = I_SRV_CONDS-PRODUCTID.
CLEAR: THIS_PRODUCT_DONE.
ENDAT.
CHECK THIS_PRODUCT_DONE = SPACE.
CLEAR: THIS_COND_FAILED.
DATA: TMSTMP_FROM LIKE I_TEC_COURSES-DATE_FROM,
TMSTMP_TO LIKE I_TEC_COURSES-DATE_FROM.
DATA: DAT TYPE D, "tim TYPE t,
TZ TYPE TTZZ-TZONE.
TZ = 'UTC'.
DAT = '00010101'. "tim = '013000'.
CONVERT DATE DAT INTO TIME STAMP TMSTMP_FROM TIME ZONE TZ.
DAT = '99991231'. "tim = '013000'.
CONVERT DATE DAT INTO TIME STAMP TMSTMP_TO TIME ZONE TZ.
DATA: WA1 LIKE I_TEC_COURSES.
DATA: WA2 LIKE I_TEC_COURSES.
DATA: WA3 LIKE I_TEC_COURSES.
DATA: WA4 LIKE I_TEC_COURSES.
DATA: WA5 LIKE I_TEC_COURSES.
DATA: WA6 LIKE I_TEC_COURSES.
DATA: WA7 LIKE I_TEC_CERTS.
DATA: WA8 LIKE I_TEC_CERTS.
DATA: WA9 LIKE I_TEC_CERTS.
DATA: FLAG1(1) TYPE C,
FLAG2(1) TYPE C,
FLAG3(1) TYPE C,
FLAG4(1) TYPE C,
FLAG5(1) TYPE C,
FLAG6(1) TYPE C,
FLAG7(1) TYPE C,
FLAG8(1) TYPE C,
FLAG9(1) TYPE C.
PROVIDE * FROM I_TEC_COURSES INTO WA1
VALID FLAG1
BOUNDS DATE_FROM AND DATE_TO
WHERE COURSEID = I_SRV_CONDS-COURSE1
BETWEEN TMSTMP_FROM AND TMSTMP_TO.
WRITE: / WA1-DATE_FROM, WA1-DATE_TO, WA1-COURSEID, FLAG1.
SKIP.
ENDPROVIDE.
ENDLOOP.
ENDLOOP.
Similar Messages
-
Difference Between Provide and RP-PROVIDE-FROM-LAST in ABAP-HR
what is the Difference Between Provide and RP-PROVIDE-FROM-LAST IN hR. IF I want to retrieve data in BETTWEEN BEGDA AND ENDDA. what these 2 ill return.
Both ill return the LAtest record. plz let me know what ill happen.
With Regards,
Venkata Suresh KPROVIDE is like a loop statement and it reads records between BEGDA and ENDDA. There is a lot to it, you can read doc...
RP-PROVIDE-.. _> This is like read table.
It is similar to : Sort itab descending. read itab index 1.
If you want data between BEGDA and ENDDA and you have 2 internal tables, you can use PROVIDE. Otherwise, you can use a normal LOOP statement. Provide is helpful if you want to get data from more than 1 table.
For eg: Infotype 0000 has 2 records from 1.1.2000 to 1.1.2006, and 2.1.2006 to 31.12.9999, and Infotype 0185 has 1 record from 1.1.2005 to 31.12.9999.
If you use a provide BETWEEN BEGDA and endda in this case, it will run through the loop 3 times with these dates :
1.1.2000 to 31.12.2004.
1.1.2005 to 1.1.2006
2.1.2006 to 31.12.9999
If a record is not there in one of the internal tables during the date, there is a PNNNN_VALID flag which is filled up (4.6c) and in mySAP onwards, you have explicit valid flags.
Hope it helps. Please reward points if helpful.
Regards.
Samant -
Hi,
why do we need to specify role base provider and membership provider files in central admin and securiy config files.
thanks,
gauravWe use 3 settings in Forms based auth:
1 Membership = This contains Users and groups information. (This table also has username and password)
2 ConnectionString = Connetion details to connect to database is stored here(servername, databasename, username, password, port )
3 Role = This table contains all the Roles (Admin, contibutor, etc of the data source) -
How to make par to export provider and channel with example
I want to make par for exporting my provider and channel
this is mypar.txt file
from: provider DefineItemProvider
from: channel+provider TemplateTableContainer/DefineItem
directory: templateBaseDir . DefineItemProvider
in this way i am able to import channel only no provider
so how to import both provider and channel in my organization and how to create text file for both provider as well as channeltry specifying the class you are exporting ..
class: class [types]
"class" indicates that a class file is to be packaged with the entry, and you may optionally specify the types of operations that the class file are associated with. If not specified, "provider" is assumed. types can be "channel", "provider", or "channel,provider", and "channel+provider"; also, when specifying both, you can use a space. -
I cannot receive email properly on either my IPad or my IPhone. I have had them for over a year and they have always worked fine. Until three days ago, when they both started acting up. On the IPad, when I open mail, it says it is downloading about 1,700 emails. At the very end, which takes quite a while to get to, I finally get the most recent ones. The IPad is sending emails just fine.
On my IPhone, when I open mail, it says it is downloading 100 emails, but it doesn't do that. And it gives me no new emails at all. The IPhone is sending email just fine.
I have already deleted the email accounts on both devices and reinstalled them. I've contacted the Internet service provider and verified all the right settings. The Outlook email on my desktop is working perfectly.WMV is a heavily-compressed format/CODEC, and the processing time will depend on several factors:
Your CPU, which is not that powerful in your case
Your I/O sub-system, which is likely a single HDD on your laptop
The source footage. What is your source footage?
Any Effects added to that footage. Do you have any Effects?
Each of those will have an impact on the time required.
The trial has only one main limitation - the watermark. Now, there are some components, that have to be activated, but are not with the trial, but they would be evident with Import of your source footage, if it's an issue.
Good luck,
Hunt -
Horrible experience and the movie kept stalling through iTunes on appletv. Gave up (after paying for it) and ended up renting it through cable provider. Anyone know how to get $ back from apple?!
Issues are usually network related
What is your internet speed? www.speedtest.net
6mbps is required for instant HD (you can switch to SD in the settings)
If on wifi try ethernet and www.istumbler.net to rule out interference
Make sure you're using your ISP's DNS -
whenevenr I call a person sometimes the phone gives me an option of callback and end when I press the callback button the whole screen goes blank and only the upper Taskbar where it shows network provider , time and battery percentage is shown
Standard troubleshooting...
Try a reset by pressing the home and sleep buttons until you see the Apple logo, ignoring the slider if, it comes up. Takes about 5-15 secs of button holding and you won't lose any data or settings.
Remove all apps from Recently Used list...
- From any Home Screen, double tap the home button to bring up the Recents List
- Tap and hold any icon in this list until they wiggle
- Press the red (-) to delete all apps from this list.
- Press the home button twice when done.
If still a problem restore with your backup.
If still a problem restore as new, i.e. without your backup. See how it runs with nothing synced to it.
If still a problem, it's likely a hardware issue. -
I've tried everything in this article and still can't send or receive email. I also contacted my provider and everything is working on their end. Does anyone have any suggestions?
Went to Apple Genius Bar. Info from them plus my provider resolved the issue
-
Since updating to iOS 6 my phone has not been receiving text messages from some people. Already contacted my service provider and apparently nothing's wrong on their end. Any suggestions?
Who's your service provider?
-
I bought my iPhone 4 from an Apple store a couple of years ago and understood it to be unlocked. Now I am changing provider and it appears to be locked. I have tried the new SIM card with other phones and it is okay. Originally I was with Vodafone and have recently moved to GiffGaff as I reached the end of my contract. The iPhone won't start up instead it says "Only compatible SIM cards from a supported carrier may be used to activate iPhone. Please insert the SIM card that came with your iPhone or visit a supported carrier's store to receive a replacement SIM card."Although my number has been ported across I place the old SIM back in the iPhone and it starts up. Can anyone offer any advice?
If you are in UK
Apple sell unlocked but they will also sell an iPhone with a contract
especially back in iPhone 4 days
If you purchased fron an Apple Retail store ( Apple owned) and paid
full price it should be unlocked as your Apple receipt should show
If not , it is locked but (if in UK ) Vodafone do offer unlocking .
Do a deep search of their site and you will find guidance not easy to find -
Oracle database connectivity using oledb provider and atl classes in c++
dear friend ,
i m connecting oracle database in c++. i m using ATL classes and oledb provider for oracle. however i m facing some defficulties in stored procedure.
Normally MYSQL and sql server database is resulting result set in stored procedure i.e. we can use " select * from tablename" query in c++ to returning result. but in oracle we can not use this approch as because it dosent support. so how can i execute below stored procedure in c++ code. i have to retuen result set in STP. i m using SYS_REFCURSER in oracle . but how do i execute it in c++ code.
create PROCEDURE stp_getRecord ( p_curser SYS_REFCURSER) as
begin
open p_curser for select * from table_name;
end;
please help me asap.I tried it, commented out the reader.read and have the following connection string
string connectionString = "provider=ORAOLEDB.ORACLE; data source=ORCL; password=****; user id=****; OLEDB.NET=True"
Unfortunately the result is the same.
Edited by: Dino2dy on Nov 24, 2011 12:53 AM -
Dear All,
I have written a program for using Logical Database PNP displaying employee data which are fetched from different infotypes. I have used PROVIDE END PROVIDE Statement. In the Report it is found that it is Printing PN-BEGDA and PN-ENDDA value for P0001-BEGDA and P0001-ENDDA when User selects following values in Selection Screen.
1) Today
2) Current Month
3) Current Year
4) Up to Today
5) From Today
if require I will send the code.
Thanks in Advance
Regards
MangeshHi Mangesha,
<li>PROVIDE-ENDPROVIDE is like LOOP-ENDLOOP but It creates partial periods.
Lets say we have two records for one employee in itab p0001.We give dates on selection-screen 01.06.2008 to 01.06.2009.
Lets say p0000 has two records
1).. 01.01.2008 to 31.12.2009 -first record
2).. 01.01.2009 to 31.12.2009 -second record
If use PROVIDE statement to loop the p0000 table, It is looped two times. But if you see P000-BEGDA and P0000-ENDDA inside PROVIDE-ENDPROVIDE, the records are like below.
p0000-begda -- p0000-endda
01.06.2008 -- 31.12.2009
01.01.2009 -- 01.06.2009.
<li>It can be used to join tables more tables
Thanks
Venkat.O -
I am running Snow Leopard and have run the Keychain repair a few times to no avail.
Is there a fix for this or do I have to find another email program?This is frequent, not just occasionally. All cancel does is stop the email from coming through until I provide the password.
I thought about it being on the provider's end but it never happened when I was using Entourage, I just don't particularly like that program.
I don't understand why this problem has gone on so long without Apple doing something to fix it but I will continue to look for alternatives to the Apple Mail program. If I find a good one I will let all know through avenue.
Thanks again to all who tried to help. -
i chage my internet provider and therefore email address. i deleted my old email address from my ipad and now i am not able to email from new email address nor will i cloud recongnize my new email address which is my apple id now. since i deleted my old email acct the cloud is not allowing me to chg this address in settting. the cloud still has my old email address listed.
See Here > Apple ID: Contacting Apple for help with Apple ID account security
Ask to speak with the Account Security Team... -
Custom Authentication Provider and User Manage like SQLAuthenticator, How?
Hi everyone,
I faced a problem with login function of my portal (Webcenter Application). The Problem is:
- Allow the users logging in by user that store in another system. I must communicate using low level of socket. This really is not a problem.
- If user logged in, for first time of logging in, i must store them in some identity store (Maybe tables database).
- View Users in Weblogic Console. To do that, i known that i must implemeted something that i dont what that are.
Here are my work:
- I Created a Custom Authentication Provider. And configuration in Admin Console. But i don't know what are that i should implementing to View user & group in Admin Console.
- I Cannot logging in: After i created simple application for testing, i cannot logging in even i tested with SQLAuthenticator Provider and original DefaultProvider. In Logging Console, I saw every I Printed In The Code of Login Module.
Here are my Code:
<?xml version="1.0" ?>
<MBeanType Name = "OrkitVASPortal" DisplayName = "OrkitVASPortal"
Package = "orkit"
Extends = "weblogic.management.security.authentication.Authenticator"
PersistPolicy = "OnUpdate">
<MBeanAttribute
Name = "ProviderClassName"
Type = "java.lang.String"
Writeable = "false"
Default = ""orkit.OrkitVASPortalProviderImpl""
/>
<MBeanAttribute
Name = "Description"
Type = "java.lang.String"
Writeable = "false"
Default = ""WebLogic Simple Sample Audit Provider""
/>
<MBeanAttribute
Name = "Version"
Type = "java.lang.String"
Writeable = "false"
Default = ""1.0""
/>
<MBeanAttribute
Name = "LogFileName"
Type = "java.lang.String"
Default = ""SimpleSampleAuditor.log""
/>
</MBeanType>
package orkit;
import java.util.HashMap;
import javax.security.auth.login.AppConfigurationEntry;
import javax.security.auth.login.AppConfigurationEntry.LoginModuleControlFlag;
import weblogic.management.security.ProviderMBean;
import weblogic.security.provider.PrincipalValidatorImpl;
import weblogic.security.spi.*;
public final class OrkitVASPortalProviderImpl implements AuthenticationProviderV2 {
private String description;
private LoginModuleControlFlag controlFlag;
public OrkitVASPortalProviderImpl() {
System.out.println("The Orkit VASPortal Provider Implemented!!!!!");
@Override
public IdentityAsserterV2 getIdentityAsserter() {
return null;
// Our mapping of users to passwords/groups, instead of being in LDAP or in a
// database, is represented by a HashMap of MyUserDetails objects..
public class MyUserDetails {
String pw;
String group;
// We use this to represent the user's groups and passwords
public MyUserDetails(String pw, String group) {
this.pw = pw;
this.group = group;
public String getPassword() {
return pw;
public String getGroup() {
return group;
// This is our database
private HashMap userGroupMapping = null;
public void initialize(ProviderMBean mbean, SecurityServices services) {
System.out.println("The Orkit VASPortal Provider is intializing......");
OrkitVASPortalMBean myMBean = (OrkitVASPortalMBean) mbean;
description = myMBean.getDescription() + "\n" + myMBean.getVersion();
System.err.println("#In realm:" + myMBean.getRealm().wls_getDisplayName());
// We would typically use the realm name to find the database
// we want to use for authentication. Here, we just create one.
userGroupMapping = new HashMap();
userGroupMapping.put("a", new MyUserDetails("passworda", "g1"));
userGroupMapping.put("b", new MyUserDetails("passwordb", "g2"));
userGroupMapping.put("system", new MyUserDetails("12341234",
"Administrators"));
String flag = myMBean.getControlFlag();
if (flag.equalsIgnoreCase("REQUIRED")) {
controlFlag = LoginModuleControlFlag.REQUIRED;
} else if (flag.equalsIgnoreCase("OPTIONAL")) {
controlFlag = LoginModuleControlFlag.OPTIONAL;
} else if (flag.equalsIgnoreCase("REQUISITE")) {
controlFlag = LoginModuleControlFlag.REQUISITE;
} else if (flag.equalsIgnoreCase("SUFFICIENT")) {
controlFlag = LoginModuleControlFlag.SUFFICIENT;
} else {
throw new IllegalArgumentException("Invalid control flag " + flag);
public AppConfigurationEntry getLoginModuleConfiguration() {
HashMap options = new HashMap();
options.put("usermap", userGroupMapping);
System.out.println("UserMap: " + options);
return new AppConfigurationEntry(
"orkit.OrkitVASPortalLoginModule",
controlFlag, options);
public String getDescription() {
return description;
public PrincipalValidator getPrincipalValidator() {
return new PrincipalValidatorImpl();
public AppConfigurationEntry getAssertionModuleConfiguration() {
return null;
// public IdentityAsserter getIdentityAsserter() {
// return null;
public void shutdown() {
* To change this template, choose Tools | Templates
* and open the template in the editor.
package orkit;
import orkit.OrkitVASPortalProviderImpl;
import java.io.IOException;
import java.util.*;
import javax.security.auth.Subject;
import javax.security.auth.callback.*;
import javax.security.auth.login.*;
import javax.security.auth.spi.LoginModule;
import weblogic.security.principal.WLSGroupImpl;
import weblogic.security.principal.WLSUserImpl;
* This login module will be called by our Authentication Provider. It assumes
* that the option, usermap, will be passed which contains the map of users to
* passwords and groups.
public class OrkitVASPortalLoginModule implements LoginModule {
private Subject subject;
private CallbackHandler callbackHandler;
private HashMap userMap;
// Authentication status
private boolean loginSucceeded;
private boolean principalsInSubject;
private Vector principalsBeforeCommit = new Vector();
public void initialize(Subject subject, CallbackHandler callbackHandler,
Map sharedState, Map options) {
this.subject = subject;
this.callbackHandler = callbackHandler;
// Fetch user/password map that should be set by the authenticator
userMap = (HashMap) options.get("usermap");
* Called once after initialize to try and log the person in
public boolean login() throws LoginException {
// First thing we do is create an array of callbacks so that
// we can get the data from the user
Callback[] callbacks;
callbacks = new Callback[2];
callbacks[0] = new NameCallback("username: ");
callbacks[1] = new PasswordCallback("password: ", false);
try {
callbackHandler.handle(callbacks);
} catch (IOException eio) {
throw new LoginException(eio.toString());
} catch (UnsupportedCallbackException eu) {
throw new LoginException(eu.toString());
String username = ((NameCallback) callbacks[0]).getName();
System.out.println("Username: " + username);
char[] pw = ((PasswordCallback) callbacks[1]).getPassword();
String password = new String(pw);
System.out.println("PASSWORD: " + password);
if (username.length() > 0) {
if (!userMap.containsKey(username)) {
throw new FailedLoginException("Authentication Failed: Could not find user:" + username);
}else{
System.out.println("Contstainded Username");
String realPassword = ((OrkitVASPortalProviderImpl.MyUserDetails) userMap.get(username)).getPassword();
if (realPassword == null || !realPassword.equals(password)) {
throw new FailedLoginException("Authentication Failed: Password incorrect for user" + username);
}else{
System.out.println("Everyitng OKIE");
} else {
// No Username, so anonymous access is being attempted
loginSucceeded = true;
// We collect some principals that we would like to add to the user
// once this is committed.
// First, we add his username itself
principalsBeforeCommit.add(new WLSUserImpl(username));
// Now we add his group
principalsBeforeCommit.add(new WLSGroupImpl(((OrkitVASPortalProviderImpl.MyUserDetails) userMap.get(username)).getGroup()));
return loginSucceeded;
public boolean commit() throws LoginException {
if (loginSucceeded) {
subject.getPrincipals().removeAll(principalsBeforeCommit);
principalsInSubject = true;
return true;
} else {
return false;
public boolean abort() throws LoginException {
if (principalsInSubject) {
subject.getPrincipals().removeAll(principalsBeforeCommit);
principalsInSubject = false;
return true;
public boolean logout() throws LoginException {
return true;
}and OrkitVASPortalMBean & OrkitVASPortalImpl class created by MBeanMaker tool.
Can someome help.
Thanks in advance!Hi ,
SQLAuthenticator is not yet supported with UCM 11g due to some JPS Provider limitations .
Currently there is an Enhancement request for this .
Thanks
Srinath
Maybe you are looking for
-
just downloaded aperture 3.4 update for the app store and now it wont open please help!!
-
HT5622 Can you use an apple id on more than one device?
I'm currently having difficulties posting messages to my iPad and iPhone. I used to be able to use one ID for both devices with iOS 6. Now with iOS 7 it seems to have difficulties using one ID across multiple devices. I hope this is not how it was
-
I have a java process running on HP-UX with a 1.4.2 JVM. This program is using some third-party code (quartz) to act as a batch scheduler similar to cron. When running in production, the process runs fine for several days and then starts maxing out t
-
How to get message answer in the code
Hi, I'm using jdeveloper 11.1.2.3.0 I have such a code on save button of my form: public void onSaveClick(ActionEvent actionEvent) { //first code if(...) { RichPopup.PopupHints hints = new RichPopup.PopupHints(); getOnSavePopup().show(hints);
-
I've used Adobe Reader successfully for years. Now, when I try to open a document with it, there is a message that says that I must accept the license agreement. However, I cannot find a window tha shows the license agreement to accept. I've reins