API - BAPI , RFC Function module to validate user id and password
Hi,
Can anyone provide me with the function module to validate the username and password of the user of the back end R/3 System.
Best Regards
Sid
Use function module SUSR_CHECK_LOGON_DATA. You need to provide auth_method (P for password check), userid and password.
Be careful when you execute the function in test mode because it converts the input into upper case hence if you have lower case characters in your password it will return with invalid password. If you pass the lower case into the function in a program everything is fine.
Regards,
Michael
Similar Messages
-
Re: Function Module to Validate ESS Id and Password
Hi ,
Is there is any function module / BAPI to validate the ESS Id and Password .
Regards,
VijayHello Vijay,
there is a BAPI:
BAPI_EMPLOYEE_CHECKPASSWORD
Regards
Gregor -
Migrating BAPI & RFC function modules into web services
What is the advantage of migrating BAPI & RFC function modules into web services?
Hi.
That's a very good question. Why did you ask it, are you considering doing so?
I wouldn't think there would be any performance advantages using WebServices.
You could make your BAPI's available for other systems than Web Dynpro or SAP systems by turning them into WebServices.
That could be an issue when you want to use different integration engines perhaps.
A WebService might also be better for dealing with large number of requests I guess.
When dealing with XML you can also use the advantage of XSLT for validating your data.
The main advantages would still be the availability of your service for non-SAP systems.
/Mikael -
How to validate user name and password in webdynpro.
Dear All,
Actually i have created login name and password in view, webdynpro and want to validate the user name and password but i am not finding proper code to how to validate user name and password.
Pl do the needful help.
Regards.
Tazeer.
Moderator Message: There is a seperate forum for WebDynpro. Please ask your question there.
Edited by: kishan P on Oct 5, 2010 1:08 PMHello, I don´t get you question. User authentication is ready out of the box in webdypro...
Regards Otto -
BAPI or Function Module to get open orders and open quotation details
Hi,
I have requirement to get all the open orders(as in VA05) and all the open quotations( as in VA25) for a sold-to-party. Could you please let me know if there are any BAPIs or Function Modules for the same.
Thanks,
Surekha.Hi,
Check if the below helps:
1. BAPI_SALESORDER_GETLIST for VA05
2. BAPI_QUOTATION_GETDETAILBOS for VA25.
Regards,
Vivek -
RFC Function Module behaves differently in foreground and background
Hi,
I have RFC function module which works well when executed in debugg mode where as in normal mode it doesnt work as the time stamp is not changed and the record cannot be created with the same timestamp.
Can anybody suggest any solution on how to change the current timestamp when still in the same LUW.
Regards,
Roberts.Hi,
Use:
T1 = SY-UZEIT.
GET TIME.
T2 = SY-UZEIT.
T1 will be different from T2
Best regards,
Leandro Mengue -
Calling BAPI(RFC function module) in java? Part 2
Hi
Can any body tell me or give me source code for calling give BAPI...i need to give the inputs to that parameters..
data l_order_header_in like bapisdhd1.
data t_return like bapiret2 occurs 0 with header line.
data t_order_items_in like bapisditm occurs 0 with header line.
data t_order_schedules_in like bapischdl occurs 0 with header line.
data t_order_partners like bapiparnr occurs 0 with header line.
*data t_order_condition_ex like bapicond occurs 0 with header line.
*clear t_order_condition_ex.
*refresh t_order_condition_ex.
clear l_order_header_in.
l_order_header_in-doc_type = 'TA'.
l_order_header_in-sales_org = 'ZZ02'.
l_order_header_in-distr_chan = 'Z2'.
l_order_header_in-division = 'Z2'.
*l_order_header_in-purch_no = '12'.
clear t_order_items_in.
refresh t_order_items_in.
t_order_items_in-itm_number = '000001'.
t_order_items_in-material = 'HAMAM'. " 'LBYA1'.
t_order_items_in-target_qty = '0000000000001'.
t_order_items_in-comp_quant = '0000000000001'.
append t_order_items_in.
clear t_order_partners.
refresh t_order_partners.
t_order_partners-partn_role = 'AG'.
t_order_partners-partn_numb = '0000000006'.
append t_order_partners.
clear t_order_schedules_in.
refresh t_order_schedules_in.
t_order_schedules_in-itm_number = '000001'.
t_order_schedules_in-sched_line = '0001'.
t_order_schedules_in-req_qty = 1.
append t_order_schedules_in.
clear t_order_partners.
t_order_partners-partn_role = 'WE'.
t_order_partners-partn_numb = '0000000006'.
append t_order_partners.
break kumars.
call function 'BAPI_SALESORDER_CREATEFROMDAT2'
exporting
SALESDOCUMENTIN =
order_header_in = l_order_header_in
ORDER_HEADER_INX =
SENDER =
BINARY_RELATIONSHIPTYPE =
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
SALESDOCUMENT =
tables
return = t_return
order_items_in = t_order_items_in
ORDER_ITEMS_INX =
order_partners = t_order_partners
order_schedules_in = t_order_schedules_in
ORDER_SCHEDULES_INX =
ORDER_CONDITIONS_IN =
ORDER_CONDITIONS_INX =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
ORDER_CCARD =
ORDER_TEXT =
ORDER_KEYS =
EXTENSIONIN =
PARTNERADDRESSES =
break venkat.
call function 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
Awaiting for ur responses..
Thx
PRadeepTo call an RFC, you need to import that first. For that right click on the project into which you need to add the rfc.
Import >>import RFC modules from r/3>>Give the package name and a port name for the rfc.
set the server options as your r/3 server properties.
Then you can search the Function name >> it will be displayed in the result area>> select it and press finish.
The RFC will be imported to your project.
Then you need to create JCO for calling that rfc.
Here is a sample code which calls an RFC and setting jco..
import com.sap.mw.jco.JCO;
import com.sapportals.portal.prt.component.*;
public class rfc extends AbstractPortalComponent
private JCO.Client jcoClient;
Insert_pgm_PortType insFunc=new Insert_pgm_PortType();
Zinsert_Pgm_Input ip=new Zinsert_Pgm_Input();
Zinsert_Pgm_Output op=new Zinsert_Pgm_Output();
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
this.connect();
insFunc.messageSpecifier.setJcoClient(jcoClient);
//setting input params
ip.setAssociate_Id1("44");
ip.setCourse_Objt1(2);
ip.setQlty_Content1(5);
ip.setSeq_Content1(2);
ip.setTraining_Id1("22");
//calling RFC
try{
op=insFunc.zinsert_Pgm(ip);
}catch(Exception e){}
response.write(op.getMessage());
this.disconnect();
//creating JCO connection
private void connect() {
try {
jcoClient =
JCO.createClient("Client","userid","password","Language","servername","Systemid");
jcoClient.connect();
} catch (Exception e) {
System.out.println("Error connecting to SAP ::" + e.getMessage());
e.printStackTrace();
private void disconnect() {
try {
jcoClient.disconnect();
} catch (Exception e) {
System.out.println(
"Error dis-connecting to SAP ::" + e.getMessage());
e.printStackTrace();
Hope this Helps
gEorgE -
RFC Function module-With Only Request message
Hi
i need a RFC with only Request message and Response message is not required.
please help me, how to create a RFC function module with out Response message, and it should contain only Request message.
i have created RFC in this way:
RFC doesn't contain neither import nor export parameters. and i have defined one table in TABLE tab which refers to a ztable created already.
when i imported RFC into XI i came to know that RFC has both Request and Response messages, but i don't need Response message.
Thanks in advance..help would be appreciated
Regards,
RajeshThankx Michal,
I have written ZRFC this way:
insert ZMM_AUTO_GR from INPUT_TABLE .
if sy-subrc = 0.
commit work.
else.
rollback work.
im not using neither import nor export parameters..but using only tables parameters. but when imported in XI im getting same table structure in both request an response.
please suggest what changes required in above code to invoke my ZRFC in async way.
you will not get any response in XI- what chages required in my code to dnt get .reponse in XI.
appreciate your help.
Regards,
Rajesh. -
Are there BAPI or function modules for creating posting address ?
Are there BAPI or function modules for creating posting address and budget address? We are currently use BDC program and T code FMBSPO_MULT (Posting address) and T code FMBSBO_MULT(budget address), but it is a very slow processing because we have thousands of funds centers.
Your input will be appreciated!
Regards,
Fisher LiLi,
You will have, may be more answers in the technical forum :
https://www.sdn.sap.com/irj/sdn/collaboration
Regards
Valérie -
Is it possible to call custom designed RFC function module, apart from BAPI
Hi Friends,
1. Is it possible to call custom designed RFC function module, apart from BAPI.
2. Why we call it Adaptive RFC layer, Since every time the JCO layer updated with SAP, Why cant be dynamic.
Thanx for Ur time.
Cheers,
SamAlso check <a href="http://help.sap.com/saphelp_nw04/helpdata/en/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm">here</a> for more information on aRFC. Here you can find why it is called adaptive.
Regards,
Christophe -
RFC function module always creating BPs with the same user name (RFC user )
Hi All
I posted the below question in a different area before. But thought it would be more suitable here.
Moderators - Please let me know if am doing any mistake.
Question:
I have a RFC function module in CRM that creates Business Partners in ECC (XD01 tcode).
I am using a dialog RFC destination configured in SM59 in CRM.
But my RFC function module in CRM is always creating the Business Partners in ECC with the RFC user id (the user that we maintain for the RFC destination in SM59).
This is a problem for the users because they are not able to track the actual person responsible for creating these Business Partners.
Can somebody please let me know how to solve this problem?
Thanks
RajHi.
You may use the trust relationship between CRM and R/3 and in SM59 instead of set a specific username, you set the flag "current user".
With this flag, the system will access R/3 system with the user logged in CRM system. The Trust relationship must be created between CRM and R/3 in order to the system doesn't ask for a password to login in R/3.
If you need more details please reply.
Kind regards,
Susana Messias -
Error when call RFC Function module in R/3
Dear All,
We are trying to call RFC function module CBIF_GLM1_PROCESS_ORDER_READ (This is not a BAPI and also not released ) in R/3 from XI system.
we are facing the error "Error while lookup Exception during processing the payload. Error when calling an adapter by using the communication channel CC_PPPI_MES_RFC_Rcvr (Party: , Service: WCD_320, Object ID: 16563889b449328eac76caa6a3bc592e) XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: failed to parse BAPI response due to: com.sap.aii.adapter.rfc.util.bapi.BapiException: Parameter with name RETURN not found.'. Cause Exception: 'com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: failed to parse BAPI response due to: com.sap.aii.adapter.rfc.util.bapi.BapiException: Parameter with name RETURN not found.'."
This is the first time we are doing this configuration.
Could you please let me know what woulbe the reason.read the original message
We are trying to call RFC function module CBIF_GLM1_PROCESS_ORDER_READ (This is not a BAPI and also not released ) in R/3 from XI system.
I am talking about the above Receiver RFC channel which you guys are using to call R/3 from XI. That where you need to change the commit parameter -
BAPIs or Function Modules for Links between different Business Objects
Hi experts,
I am accessing an SAP CRM 5.0 system from outside via remote function calls.
I have the GUID of a business partner and would like to find other business objects
that are related to this business partner.
For example:
- Which activities are relevant for this business partner?
- Which orders were placed by this business partner?
- Which leads or opportunities are linked to this business partner?
- Which products did this business partner order?
Is it possible to get this information by calling BAPIs or other RFC function modules?
Regards,
KarstenAfter studying lots of documentation and trying to understand the BOL and GenIL concepts,
I finally found a function module which meets my demands. With function module
CRM_GENIL_GET_QUERY_RESULT you can execute a Search Object of the GenIL,
and it is remote-enabled.
By checking transaction GENIL_MODEL_BROWSER and choosing component set "ALL"
you get a list of all defined Search Objects. The Search Object that finds all orders of a
business partner is "BTQuery1O".
DATA gt_parameter_list TYPE crmt_name_value_pair_tab.
DATA gs_parameter_list TYPE crmt_name_value_pair.
DATA gt_data_hdr TYPE TABLE OF crmt_genil_rfc_data_hdr.
DATA gt_data_attr TYPE TABLE OF crmt_genil_rfc_data_attr.
DATA gt_data_rels TYPE TABLE OF crmt_genil_rfc_data_rel.
DATA gt_data_rel_obj TYPE TABLE OF crmt_genil_rfc_data_rel_obj.
gs_parameter_list-name = 'BP_NUMBER'.
gs_parameter_list-value = '4000000011'.
APPEND gs_parameter_list TO gt_parameter_list.
CALL FUNCTION 'CRM_GENIL_GET_QUERY_RESULT'
EXPORTING
iv_query_name = 'BTQuery1O'
it_parameter_list = gt_parameter_list
TABLES
et_data_hdr = gt_data_hdr
et_data_attr = gt_data_attr
et_data_rels = gt_data_rels
et_data_rel_obj = gt_data_rel_obj
EXCEPTIONS
error_occured = 1
OTHERS = 2.
Before you can use the function module, you have to call function module CRM_GENIL_INIT
to initialize the GenIL.
Regards,
Karsten -
Debugging RFC function module from ECC to CRM
Hi All,
My requirement is to debug an RFC function module present in CRM(7.0) system from ECC(6.0) system. A report program in ECC will call CRM custom FM. I found many posts in SDN with the same issue and tried to implement suggestions provided there. But I couldn't succeed. The approach I followed is:
I logged in to ECC report program and kept an external breakpoint just before the function module call.
I logged in to CRM system, opened the function module and kept an external breakpoint there.
In both the systems I provided the dialogue userid( id through which I log in to SAPGUI) in the system->settings->debugging option.
In CRM I activated the external break point in transaction SRDEBUG.
Now when I execute the report program in ECC, control stops at the breakpoint. If I press F5 at the function call, control is not going to the external break point set in the CRM FM. I am getting output of FM directly.
I tried with different settings like turning on the check box for IP matching and session breakpoint active immediate, switching to classic debugger etc. I also tried to provide the RFC user id instead of dialogue user but system throws exception saying only dialogue userids are allowed. I found that by inserting an infinite loop statement, control goes inside the RFC CRM FM but I prefer not to change the code.
Please let me know if I missed anything.
Thanks and Regards,
NarenHi,
Debug RFC calls
When an RFC function module is called it is usually not possible to debug the call, using the below techniques we can achieve the same. For this example we are calling an RFC enabled FM in ECC system from CRM system.
Scenario 1: Calling a custom RFC FM
STEP 1: Add an infinite loop in the remote custom Function Module (adding a u201CDO. ENDDO.u201D statement at the start of the FM would be enough).
STEP 2: Execute your program in the CRM system. The execution stops at the RFC call, because of the infinite loop.
STEP 3: Now login to the ECC system and go to transaction SM51 select the process which is executing the RFC and navigate to the menu: u201CProgram/Session->Program->Debuggingu201D this triggers the debugger session in a separate window.
Scenario 2: Calling a Standard RFC FM
When we are debugging a standard program we cannot add the infinite loop, hence we cannot go to SM51 and debug the work process. The RFC destination for the ECC system has a User specified, the RFC function module gets executed using this users credentials. Usually the basis team set up the RFC user as non Dialog user, this does not allow debugging. Contact your Basis team and get this changed to a dialog user enabling you to debug RFC function calls via the normal debugger.
Note: User name configured in the RFC destination (transaction SM59)
Note: User type for the RFC User (transaction SU01D)
Hope this will be helpful.. -
Unknown error calling a RFC Function Module in BODI
Hi all,
I am having an issue identifying the error that my batch job in BODI is giving with regards to a RFC function module call in my query. The value returned by the standard parameter 'AL_RFC_RETCODE' are square characters ( ).
At the completion of the job, the error message 'RFC CallReceive error <Function ZCT_INDSLS_SLS_TRN_INSERT: Invalid request.. Invalid request.>.' is being output.
Correct me if I'm wrong but the parameter 'AL_RFC_RETCODE' should return standard values as per the techical manual provided to undertand any errors that might occur during a RFC FM call.
Can anyone help me on this?
Best regards,
Andrew WongHi Senthil,
I think you answered your query in your question itself
The user ID and password need to be maintained in RFC destination in SM59.
Go to SM59 and then click on test connection..if it does not ask for ID and passwoed that means correct ID and password is maintained in SM59 otherwise maintain it.
Regards,
Atish
Maybe you are looking for
-
HELP! I Accidentally deleted the iTunes folder in the My Music folder
HELP! I Accidentally deleted the iTunes folder in the My Music folder so I lost the two files iTunes Library.itl iTunes Music Library.xml As I understand it, these files contain all the play counts, ratings, etc. and I've spent weeks getting this inf
-
Needed steps for installing oracle 10R2 on windows server 2003
Hi to All, Can anybody give me steps for how to install oracle 10R2 on windows 2003 server in production environment and what is the preinstallation task and postinstallation task. Thanks and Regards Mohd Khaja
-
BW needs 6 decimal places - The Group and Legal costs that are sent to BW from R/3 contain as many as 6 decimal places. As cost fields, the Group and Legal Costs are stored in BW as currencies and therefore have only 2 decimal places. The two objec
-
On version 10.5 and was trying to move my itunes music to a larger drive. I had issues and moved it all back to the original drive. Now I see all the music in itunes but when I "explore" the drive many subfolders for my individual albums are missing.
-
CredentialVault on WeblogicPortal10.3 : getting an error
Hi, I opened weblogic admin portal console and clicked Services Adminstration --> Configuration & Monitoring. It shows error page and can't access Services Administration. While creating the CredentialVault I am getting the error :- <Feb 15, 2010 11: