COMMIT for Custom RFC
Hi,
We have some custom RFCs which use BAPI(no implicit commits) calls and some standard function modules(they have implicit commits). We do not want to have COMMIT in the ZRFC codes.
So will XI be able to handle the COMMIT/ROLLBACK based on the RETURN-TYPE ? I heard from SP14, XI can assign COMMIT/ROLLBACK to custom RFCs similiar like BAPIs.
Is there any config needs to achieve this ?
Hi ram,
In the receiver adapter you can specify the commit control for individual BAPI calls
Check this link~
http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/frameset.htm
Hope this helps,
Regards,
Moorthy
Similar Messages
-
VC 7.0 does not recognize Metadata for custom RFC
In SAP R/3 I have created a RFC that has no IMPORT or EXPORT parameters, only TABLES defined as "DATA_OUT". The RFC code finds and generates the values to fill "DATA_OUT".
Tested the RFC in our R/3 System, works fine. Then went to Visual Composer. Data Services does list the new RFC. I click and drag into my iView. The data service appears in my iView. For a split second I see what may be the "retrieving Metadata" popup, but it disappears too quickly, cannot tell what it was. At no time does a "Define Data Service" popup appear that would allow me to select Input or Output choices.
Now the Data Service icon appears in the iView but lists an Input port. It does not show an Output port at all. I expected only an Output port.
SAP Portal Admin can go into System Administration, Portal System Landscape and create an iView using the same SAP RFC. It recognizes the Output metadata. He can run a test of the data service and this RFC provides correct output as expected.
I do not understand why VC is behaving differently than the Portal. Any ideas ?
Regards
MPerssonMPersson,
May be worth to check one thing: you might have this RFC in a previous version without Output. For some how VC composer did not get your last version.
Regards,
Gilson -
Hi,
Juz want to try a simple rfc for example to add 2 numbers.
res = a + b.
I know import paramters will be a ,b. Export parameter res. In the source code
res = a + b.
Save and activate.
Am i missing any step >? Urgently needed for custom rfc developement.
Any blogs available to try examples..
Thanks in advance.
<b>Cheers,
*RAJ*</b>Hi,
Yes it is better to creat the structure with required field.
ZSTRCOMPTRACKSUMMARY (is a structure)
(Structure is required if ur using only few field of a single table or fields from diffrent tables)
Use that structure in table parameters of your RFC
CTDETAILS (Table parameters) like ZSTRCOMPTRACKSUMMARY (is structure)
Through the program pass the values to table parametrs (table parameters work as import and export parameters)
then from that parameters update ur Ztable
Pls go through the code.
FUNCTION ZGET_COMPTRACK_SUMMARY_REPORT.
""Local Interface:
*" IMPORTING
*" VALUE(USERID) TYPE ZUSERID
*" VALUE(FROMDATE) TYPE ZFROMDATE
*" VALUE(TODATE) TYPE ZTODATE
*" TABLES
*" CTDETAILS STRUCTURE ZSTRCOMPTRACKSUMMARY
DATA : BEGIN OF IT_COMPTRACKHEADER OCCURS 0,
COMPTRACKDATE TYPE ZCOMPTRACKDATE,
COMTRACKID TYPE ZCOMTRACKID,
USERID TYPE ZUSERID,
SMUID TYPE ZSMUID,
BRANDID TYPE ZBRANDID,
END OF IT_COMPTRACKHEADER.
DATA: IT_COMPTRACKDETAIL LIKE ZCOMPTRACKDETAIL OCCURS 0 WITH HEADER LINE.
Get COMTRACK Header details for the given user id and DCRDATE period
SELECT * FROM ZCOMPTRACKHEADER INTO CORRESPONDING FIELDS OF TABLE IT_COMPTRACKHEADER
WHERE COMPTRACKDATE BETWEEN FROMDATE AND TODATE.
IF IT_COMPTRACKHEADER[] IS NOT INITIAL.
SELECT * FROM ZCOMPTRACKDETAIL INTO TABLE IT_COMPTRACKDETAIL
FOR ALL ENTRIES IN IT_COMPTRACKHEADER
WHERE COMTRACKID = IT_COMPTRACKHEADER-COMTRACKID.
SORT IT_COMPTRACKDETAIL BY COMTRACKID.
LOOP AT IT_COMPTRACKDETAIL.
READ TABLE IT_COMPTRACKHEADER WITH KEY COMTRACKID = IT_COMPTRACKDETAIL-COMTRACKID.
SELECT SINGLE BRANDFULLNAME FROM ZBRANDMASTER INTO CTDETAILS-BRAND WHERE BRANDID = IT_COMPTRACKHEADER-BRANDID.
SELECT SINGLE COMPCATSHORTNAME FROM ZCOMPCATMASTER INTO CTDETAILS-CATEGORY
WHERE COMPCATEGORYID = IT_COMPTRACKDETAIL-COMPCATEGORYID.
Get SMU Name from the ID *
SELECT SINGLE STEXT FROM HRP1000 INTO CTDETAILS-ORGUNIT
WHERE OBJID = IT_COMPTRACKHEADER-SMUID
AND OTYPE EQ 'O'
AND PLVAR EQ '01'
AND BEGDA LE SY-DATUM
AND ENDDA GE SY-DATUM.
Append details to the CTDETAILS structure
CTDETAILS-COMPTRACKDATE = IT_COMPTRACKHEADER-COMPTRACKDATE.
CTDETAILS-COMTRACKID = IT_COMPTRACKHEADER-COMTRACKID.
CTDETAILS-USERID = IT_COMPTRACKHEADER-USERID.
CTDETAILS-REMARKS = IT_COMPTRACKDETAIL-REMARKS.
APPEND CTDETAILS.
CLEAR CTDETAILS.
ENDLOOP.
SORT CTDETAILS BY BRAND CATEGORY.
ENDIF.
ENDFUNCTION.
Reward if usefull.
Anees Ahmed
9886358645 -
Bapi for customer scheduling agreement
hi ,
please tell a bapi for customer scheduling agreement(va31).
Thanks,
sridharHi Reddy ,
what happend ? u told that u got the BAPI ?
i already seen that FM ,Do one thing ? search for COMMIT WORK in VA31 program , i think u will get some idea.
regards
Prabhu
Message was edited by: Prabhu Peram -
Error when accessing a custom RFC from the ISA framework
Hi,
I am trying to add new functionality to Ecommerce 5.0 by providing my own custom actions and calling a custom RFC. I followed the procedure given in "Development and Extension Guide u2013 SAP E-Commerce 5.0" i.e., "Extension Demo 6: Copy-Template for Customer Extensions"...
I am passing 2 parameters company code and customer number to the RFC via JCO.Function.getImportParameterList().setValue(String) one of which is a value "BP01"..I am getting back an error saying
Guest#0##n/a##8a55139c594311df8f0a000000000000#SAPEngine_Application_Thread[impl:3]_17##0#0#Error##Plain###Field BP01 not a member of INPUT#
I checked with the SAP guys at my work, the function module works well with those parameters from the GUI.. NOt sure what the problem could be..
Any kind of input could be of help
Thanks
SThanks for your help guys, Your answers were accurate for Ecommerce 6.0 and higher, I just learn t that E Commerce 5.0 uses Sapjco 2.X and there is a slight difference in the way we set the import parameter list..
In SAPJCO 2.x, we need to set
<b>myFunction.getImportParameterList.setValue<u>("Value", "FieldName")</u>;</b>
where as in new SAPJCO3.x, we need to change the order i.e.,
<b>myFunction.getImportParameterList.setValue<u>("FieldName", "Value")</u>;</b>
I am glad that my problem got solved
Cheers.. -
Commit Handling In RFC adapter
hi...
Can any one explain what is the commit Handling in RFC Adapter scenario
venkatHi ,
From documentation
<i>"Commit Control for Individual BAPI Calls
If you want to use this communication channel to call BAPIs as remote-enabled function modules that change data in the database, set the indicator.
If executed successfully, the transaction is written to the database by calling the function module BAPI_TRANSACTION_COMMIT explicitly. If an error occurs, the transaction is rolled back by BAPI_TRANSACTION_ROLLBACK.
The result is determined by the value of the field TYPE in parameter RETURN. If successful, the tables are empty and the values , S, I, and W are displayed. All other values are regarded as errors.
To change this setting, set the indicator BAPI Advanced Mode.
In the Successful RETURN-TYPE Values table, enter the values that should lead to a successful execution."</i>
We have a " Commit Control for Individual BAPI Calls" option in RFC reciever adapter to commit the BAPI.
Sekhar -
Workflow Return for correction RFC history not appearing
Hi -
I have built a custom new workflow in Oracle Learning Management.
I am using the workflow attribute WF_NOTE to capture the comments of the approvers.
When the approval moves from one approver to another, it successfully captures any comments made by the previous approvers and displays it to the next approver.
However, when any of the approvers click on return for correction ( RFC ) button and the notification moves to the creator, the approval history is blank and does not have the comments made by the approver about why he is returning for correction.
Any insight?
ThanksIn actual it should update only that SIT record which is currently under consideration and not allow other records to modify.Ayaz
this is a very valid question .. and same thing happens with EIT as well. This happens because when you create or update EITs, SITs you can do more than one at a time at the time of creation/ updation. So when approver go to update action or send it back for return for correction you create/ update multiple EITs and SITs as all of that go in single transaction.
Let us know if you find any solution for this one. -
How to Import the RFC (Custom RFC made ) which is available in SAP systems
I have to use a custom RFC which is made by an abap developer in my XI scenario. I dont see any "Imported objects" tab under my scenario in IR . I can only see "Imported objects" under SAP basis 6.40 . When i right click the link "Import of SAP object " is disabled .
Am i looking at the right place . can any one help me on thisHi Amit,
Just follow this sequence :
integration repository --> software component double click --> select radio button which says import of RFC and IDOC interfaces from SAP systems Permitted. --> provide the connection data for import from SAP System --> then under imported objects, you have RFC --> right click and say import of sap objects --> then give your server details and import the RFC you want.
I hope this makes things clear to you.
Regards,
abhy -
Commit work in RFC function module
hi all.
What will happend if i give commit in the RFC function module .
why we need to use BAPI_Commit after updating through BAPI function module.
regards,
MadhaviFirst read some documentation like [SAP LUW|http://help.sap.com/saphelp_bw/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/frameset.htm], [Transactional RFC (tRFC)|http://help.sap.com/saphelp_nwpi71/helpdata/en/22/042578488911d189490000e829fbbd/frameset.htm] or [Transaction Model for Developing BAPIs|http://help.sap.com/saphelp_46c/helpdata/en/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm]
Regards,
Raymond -
Middleware technologies used for data exchange in Cloud for Customer system
Hi Techies,
I would like to know what are the different middleware technologies like ALE,EDI and IDOC, Web Services or any other technology plays role in data exchange between SAP ERP and SAP Cloud for Customer system.
My project includes implementation of SAP Cloud for Sales, I've read many documents and seen various videos for ERP Configuration and Cloud Configuration, I see that there is a standard report that we want to execute and specify the type of data to be exchanged between Cloud for Customer and SAP ERP via SAP NW PI system.
When executing the report we select the IDOC Type and run the report, so once after execution all data is copied to SAP Cloud for Customer system.
What about configuration of IDOCS ? Do we need to maintain port, partner profiles, logical system etc ? as usual we do when working on Interface between SAP to SAP systems ?
Or is it maintained when we make all the communication settings between SAP ERP <-> SAP NW PI <-> SAP Cloud for Customer system ?
Can anyone help to understand this better ?
Thanks,
Gowri ShankarHi Gowri,
The standard report does exactly that.
It generates, the ports, partner profiles, RFC destinations and other objects required for communication configuration in SAP to connect to C4C.
If you are not using HCI, you can directly connect to C4C, otherwise you will have to manually edit the RFC destination and provide the HCI worker node URL.
Note that this report is part of an Add On which is applicable only after a specific SAP ECC version.
If you are on lower version, you will have to create them manually.
regards,
Anirudh Vyas. -
Help for Calling RFC in B2C application.
hi,
We had written one RFC and all java classes related to that.
we are able to call RFC in b2c application.we are calling RFC on loading of JSP.
now my requirement is to call same RFC in other JSP but muliple times(in a for loop).But how can i do that?
one thing is sure we cannot calll this RFC on loading of new jsp page.we have to call inside jsp page(in a loop).
there is any way?
please help me out.
thanks in advance.
jayesh talrejaTwo things I would like to say here:
1) Calling RFCs directly from JSP is not supported so we need to use interfaces and backend classes.
2) Calling an rfc is java code and in jsp we write java code along with html to make it dynamic...so dynamic
call is also possible.
ie. suppose we want to call our rfc for fetching some data from the backend based on the data entered at item level once the user clicks on update button on order creation page.So we can write the code like below
<%-- messages --%>
<%@ include file="/b2b/itemErrMsg.inc.jsp"%>
<% } %>
<%-- ui.showItemDetailButton() --%>
<% } %>
<%-- ui.isBOMSubItemToBeSuppressed() --%>
<%--Start of addition by Arshid --%>
<!-- From here our custom rfc call is starting-->
<%
String arg1[]= {"crm~isa~isacore~resources_en"};
if((JspUtil.removeNull(item.getProduct()).length()) !=0 && !(JspUtil.removeNull(item.getNetValue()).equals(WebUtil.translate(pageContext,"yourcompany.order.minimumValue",arg1))) )
String baseUOM = "";
int enteredQuan= 0;
double minOrderQuan = 0.00;
double roundingValue = 0.00;
BusinessObjectManager isaBOM = (BusinessObjectManager)userSessionData.getBOM(BusinessObjectManager.ISACORE_BOM);
User user = (User)isaBOM.getUser();
Shop shop = (Shop)isaBOM.getShop();
String distrChannel = shop.getDistributionChannel();
String sod = shop.getSalesOrganisation();
Z_CustomBusinessObjectManager customBOM = (Z_CustomBusinessObjectManager)userSessionData.getBOM(Z_CustomBusinessObjectManager.CUSTOM_BOM);
//Z_prodInfoValue is a bo that will hold the data returned from rfc call
Z_prodInfoValue z_prodinfo = customBOM.getZ_prodInfobo().getProdInfo(Zeropadding.productInfoNoPadding(item.getProduct()), sod, distrChannel);
<!-- Call ends here and this piece of code is called for every item on clicking on update buton -->
Although this is not a good code design as instead of making multiple calls to the backend we can get the above thing done in a single call also.I wrote this code just to give an example .
This clearky proves we can have dynamic calls to the backend through jsps also.
But Jayesh, your question is not very clear to me.
If its about for loop, where you want to call the backend for multiple times with different set of values than i would rather suggest you to create lists of these different datasets and send these in a single call to the backend and fetch the data similarily in tables in a single call.
Regards,
Arshi -
DataGrid tooltip doesn't work for customized itemRenderer
I have a DataGrid with one column is a customized renderer,
when I try to use the dataTripFunc, it is not showing tooltips,
same function works for the other non-customized column, here is
the code:
<mx:DataGrid id="myDataGrid" dataProvider="{dataContent}"
width="100%" height="100%">
<mx:columns>
<mx:DataGridColumn dataField="name" headerText=""/>
<mx:DataGridColumn dataField="DateTime"
headerText="DateTime" showDataTips="true"
dataTipFunction="cellDataTipFunc"/>
<mx:DataGridColumn dataField="ImgBar" headerText="ImgBar"
itemRenderer="ImgBarCell" minWidth="40" showDataTips="true"
dataTipFunction="cellDataTipFunc"/>
</mx:columns>
</mx:DataGrid>
public function cellDataTipFunc(item:Object):String {
return "hello world";
Where the itemRenderer -- "ImgBarCell" is a customized HBox
component with a label and image on it.
The tooltip -- "helloworld" shows up for column "DateTime",
but not for customized ImgBar.
Does this one have anything to do with event generation for
customized itemRenderer? Or a bug in flex2?Hi
The TREX server (service) must started and be contactable by RFC - this can be checked by carrying out the actions listed above. (Refer OSS Note - 866547 Error when accessing TREX server for more details )
<b>Please have a look at the following SAP OSS Note, which will help -></b>
Note 851106 - Search in catalog from SRM leads to "Service not reachable"
<u>Other related OSS Notes</u>
Note 973594 Cross Catalog Search - Configuration
Note 894717 Items from Cross Catalogs Result does not appears in step 2
Note 803731 Cross-category search returns no result
Note 847137 OCI, cross-catalog search: detail display
Note 996885 Cross Catalog Search - Timeout while accessing MDM Catalog
1023487 cross-catalog-serach in portal opens up a duplicate window
1020025 Item detail display in Cross Catalog Search
1027352 Item detail display in Cross Catalog Search
Note 866547 - Error when accessing TREX server
Note 988427 - Update to TREX 6.1 Rev 27
Note 994623 - Hierarchy Buffer and BIA
Note 1030056 - Improvement in the Search within Results feature of CSE
Note 798988 CCM/CSE: Sorting sometimes returns no results
Note 778688 TREX_INDEX_MANAGER unit test update_view(): incorrect search
Note 808754 Display sequence of the characteristics is not changeable
Note 794325 - Error in OCI transfer in the BAdI /CCM/OCI_SCALEPRI
Note 745235 Search ability changes to cross-catalog characteristics
Note 724097 - Search of the comp. in case of structured characteristics
Note 743643 Search ability change in cross-catalog characteristics
Note 847551 Displaying date, time, and timestamp in the CSE
Note 750756 Program for the deletion/clean up of TREX indexes
Do update me as well.
Regards
- Atul -
Problem in Web adi for custom integrator.
Hi All,
I never used Web ADI. i read some document and feel that it is easy... but facing problem while developing.
The basic requirement as follows -
1. There is a custom database, say XXA.
2. A staging table (xxa_table) for upload data from csv files to base table.
3. Data upload using concurrent program from xxa_table to base table is working fine; but now I need to upload csv file from user desktop and load the csv data into staging table (xxa_table).
After applying below scripts I got some permission access error.
Please guide me to setup for upload csv data in to staging table using web adi.
So I run below scripts -
DECLARE
P_INTEGRATOR_CODE VARCHAR2(30);
P_INTERFACE_CODE VARCHAR2(30);
P_LAYOUT_CODE VARCHAR2(30);
P_APPLICATION_ID NUMBER(15);
P_OBJECT_CODE VARCHAR2(20);
P_INTEGRATOR_USER_NAME VARCHAR2(240);
P_LANGUAGE VARCHAR2(4);
P_SOURCE_LANGUAGE VARCHAR2(4);
P_USER_ID NUMBER(15);
P_INTERFACE_TABLE_NAME VARCHAR2(50);
P_INTERFACE_USER_NAME VARCHAR2(240);
P_FORCE BOOLEAN;
P_ALL_COLUMNS BOOLEAN :=FALSE;
BEGIN
-- Define Constants
-- Application ID of the product that will own this Integrator
P_APPLICATION_ID := 510;
P_LANGUAGE := 'US';
P_SOURCE_LANGUAGE := 'US';
-- Applications Database User ID that owns this Integrator
P_USER_ID := 410;
P_OBJECT_CODE := PLAN_607';
---ADI details
P_INTEGRATOR_USER_NAME := 'Plan_7';
P_INTERFACE_TABLE_NAME := 'xxa_table'; -- Name of the Database staging table.
P_INTERFACE_USER_NAME := 'XXA_7 PLAN'; -- Name of the table that will be displayed in
P_FORCE := FALSE;
P_ALL_COLUMNS := FALSE;
BNE_INTEGRATOR_UTILS.CREATE_INTEGRATOR (P_APPLICATION_ID,
P_OBJECT_CODE,
P_INTEGRATOR_USER_NAME,
P_LANGUAGE,
P_SOURCE_LANGUAGE,
P_USER_ID,
P_INTEGRATOR_CODE);
BNE_INTEGRATOR_UTILS.CREATE_INTERFACE_FOR_TABLE (P_APPLICATION_ID,
P_OBJECT_CODE,
P_INTEGRATOR_CODE,
P_INTERFACE_TABLE_NAME,
P_INTERFACE_USER_NAME, P_LANGUAGE,
P_SOURCE_LANGUAGE, P_USER_ID,
P_INTERFACE_CODE);
BNE_INTEGRATOR_UTILS.CREATE_DEFAULT_LAYOUT(P_APPLICATION_ID,
P_OBJECT_CODE,
P_INTEGRATOR_CODE,
P_INTERFACE_CODE,
P_USER_ID,
P_FORCE,
P_ALL_COLUMNS,
P_LAYOUT_CODE);
COMMIT;
END;
--------------------Duplicate thread (please post only once):
Problem in Web adi for custom integrator
Re: Problem in Web adi for custom integrator -
Custom RFC model in ESS General Data
Hi,
I want to create a custom RFC model in generaldata component and personaldata component.
This is my requirement.
I want fax number in Generaldata view and I want to hide date of birth in personaldata view.
I dont see fax number in model used for Generaldata and also country in model used for Personaldata.
I am trying to use custom RFCs to get the work done, but I am not sure if I can import the same or if it is going to do the work.
Even if that is possible, I want to know what impact it has for support package upgrades.
Thanks and regards,
ChinnuHi yzme,
You can use any of the JCO connection sets to create new Model.
If all of these JCO connection are configured in your Message Server
1> WD_RFC_METADATA_DEST
WD_MODELDATA_DEST
2> SAP_R3_SelfServiceGenerics
SAP_R3_SelfServiceGenerics_MetaData
3> SAP_R3_HumanResources
SAP_R3_HumanResources_MetaData
Regards,
Mithu -
hai
We have installed solution manager and CBTA for test automation. For SUT , We have created Technical RFC for development client and quality client
as TST_BID_CLNT220 and TST_BID_CLNT_909 respectively. Similarly SMBID_CLNT_220 and SMBIQ_CLNT_909 are the business RFC destination to connect SUT.
Now I have created test System data container which have both target system (Quality and development) . I have also created Test profile
for both . In the Test Profile I have mentioned Techinical RFC name , Test profile name, business user and password.
I have record va01 tcode in development client. The same script is used for quality also .
I am able to execute the script in development . But when I execute for quality it is giving following error
Error CL_TAO_GUI_SESSION_SM->Create: Mandatory Attribute missing for Technical RFC destination TST_BIQ_CLNT909
Can any one help me . Pls tell me whether I followed the steps correctly
Regards
JayaHi,
It will be very difficult to solve without being on the customer site and having all information.
Right now, the error code is network error...
Kind regards,
Yann
Maybe you are looking for
-
Default music player equaliser
Hi all, I'm new to these forums so please forgive me if this topic has already been raised. I have the 5230, a great phone and a major upgrade to anything that I've had in the past. I'm quite an audiophile so am stressing the limits of the built in m
-
Planned Orders -Order level & Order path fields
Dear all, In Planned Orders , in the components tab , the following fields are assigned/populated with some values by the system. Order level Order path Assy Order Level Assy Order path Please clarify , on what basis or what is the logic behind this
-
When there is a Smart Shape with both a stroke and a fill, plus a drop shadow, the drop shadow looks like it only applies to the stroke. I have several such objects with fairly thick 3 or 4 pt stroke. The drop shadow should be behind both the stroke
-
Regular expression in B2B Document editor
Hi All, i intent to parse a file coming into B2B with record entry starting as ' 88'. And i want to use this value 88 to differentiate it from other records. I have set a rule (^[ \t]+88) on the field to pick this entry and set the value of the tag f
-
Printer Doesn't Appear in Airport Utility for Time Capsule Setup
Hello group. I've been researching solutions, applying them and contacting Apple for help and so far - I'm still in a pickle. Here's the skinny: 1) Have AT&T Uverse with AT&T wireless modem. This runs cable/TV, phone, fax and Internet. 2) Setup MacBo