Simple custom rfc
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
Similar Messages
-
Can we use custom RFC in creating models in Visual composer??
Dear Experts,
Can we use custom RFC in creating models in Visual composer??
If yes, kindly provide some documents or links which would guide me how to achieve it.
Warm Regards
Upendra AgrawalHi,
Yes,you can do it.
Configure the rfc and use like others Standard BAPI procedure.
[https://www.sdn.sap.com/irj/scn/wiki?path=/display/vc/connectivity]
Regards,
Govindu -
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.. -
How to call Custom RFC enabled Function Module in R/3 From XI
Hi Experts,
I want to call custom RFC enabled Function Module by sending some input parameters from XI.
How to do this
Thnx
RAMSHi RAMS,
1. Under the SWCV Go to the Imported Objects.
2. Right click on the RFC and click on the Import of SAP object.
3. Give the logon server name, system number the user name and pasword.
4. Select the RFC u want to import.
5. Execute the import and the RFC is imported under the SWCV.
Now u can use this Imported RFC in the scenarios of that SWCV.
Regards
Santhosh
Remember to set the thread to solved when you have received a solution -
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 -
WOW! what do you have to do to get a simple customer support answer?
Error 213:19
Thank you for the response, Pat.
I'm not very good with computer chatting. the replys' didn't really
help. II have resolved the issue on my own. I needed to change to
administrator privileges, even though I was logged in as one. Once
again, thank you for the response. Jason
Pat Willener http://forums.adobe.com/people/pwillener created the
discussion
"Re: WOW! what do you have to do to get a simple customer support answer?"
To view the discussion, visit:
http://forums.adobe.com/message/5789766#5789766 -
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 -
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 -
[Hierarchy] ... but with custom RFC
Hi,
I would like to know if it is possible to have both advantages of Query (for the support of hierarchies) and custom RFC (for flexibility).
What makes VC able to recognize query data ?
If I have the same output structure as with the FM 'RS_VC_QUERY_DATA_FLAT', will VC be able to display the indent, the '+'/'-', ... ?
That would make possible to build data table that would not rely uniquely on queries.
Thanks in advance.
Best regards,
GuillaumeThis little "hierarchy-functionality" only kicks in, when the dataservice is of type BI AND has hierarchies on this field enabled.
So, unfortunately no chance with an RFC.
The only (very awkward) way to do that is to use a remote cube on this RFC and using a BI query then. But then you'd basically still need to load the master data into BI and make it have a hierarchy. -
Connection with Customized RFC
Hi,
i am trying to connect with the SAP RFC that is not the inbuild one but its a customized RFC in SAP.
Is there any different way of connecting through customized RFCs or its a normal way?
Is anybody have done similar work.Hi Naren,
how are you doing ?
>>Thanks a lot for the mail. Amit,
you are most welcome
>>where to set this FM properties (Is it in .net or SAP).
at this point i'd recommend that you do some reading starting with :
http://help.sap.com/saphelp_nw2004s/helpdata/en/51/d5470940fd564b888f4beb9523fa6c/frameset.htm
this should help clarify many things
the setting lies in the SAP system. it is definied on the RFC [remote function call]
when you have logged on the the SAP system [your backend] open transaction : se37, select your rfc, select edit, select properties, select remote enabled.
save and then activate the rfc
>> What FM stands for ?
FM = function module
a RFC is a FM which is remote enabled
remote function call
only after any FM is remote enabled, will it be visible in the visual studio server explorer, and only after that can a proxy be generated
>> i just have the RFCs name on which i have to establise the connection to fetch
>> the data. i able to connect to this RFC but its not returning me any data.
if you are able to connect to this RFC , then it would mean that the FM is already remote enabled
>>there is no error in the code but its not returning me the data.
at this point you have successfully established a connection, what remains for you is to study the input parameters and ensure that you correctly populate the input structures. also keep in mind that the results are user & client specific, so ensure using transaction se37 that your inputs are fine and you receive the expected results
[hit F8 for a single test of a RFC]
my asnwer is similar to Daniel's in your other thread
Not able to fetch the data using RFC
my request to you is to read more documentation on how to create NCo proxies
please read Rima's answers here
.Net Connector 2.0 Samples
and if you chose to do a search for 'samples' in this forum, you will come across other valuable resources which will give you a gr8 start for most regular working tasks.
happy reading )
with respect,
amit
Message was edited by:
amit chawathe -
Bpel simple custom task form jsp not run
Hi i am try to run a bpel simple custom task form deploy in oas 10.1.3 , but i recive this error
This put down in spanish is like "recive invalid element in getContext"
at ...
Error de elemento no válido en el servicio de verificación. Se ha recibido el elemento no válido en getContext
Compruebe la excepción subyacente y corrija el error. Póngase en contacto con los Servicios de Soporte Oracle si no se puede corregir
el error.
at oracle.bpel.services.workflow.verification.impl.VerificationService.getContext(VerificationService.java:516)
at oracle.bpel.services.workflow.query.impl.TaskQueryService.getWorkflowContext(TaskQueryService.java:150)
at CompCli.jspService(_CompCli.java:93)
Do you have any idea ??I guess you mean accessing the task details and the payload from the java API.
Refer the below blog it will provide you the details
http://www.albinsblog.com/2012/05/update-human-task-payload-via-java-api.html
Regards
Albin I
Edited by: Albin on Sep 19, 2012 11:24 PM -
Can anyone help get me started on making a simple custom web gallery template?
I have tried using the documentation and a freeware template as an example, but I am getting confused, and I think the template is over-complicating things.
I have a web-template that requires the following to get images to automatically work in a gallery:
Full size images in a specific folder
Thumbnails or each full size image in another specific folder
Simple HTML code for each image which allows for image title and description information
The script takes care of the rest. So what I want to do is have Lightroom genereate the images in their specific folders, and the HTML code on the fly for each gallery I wish to publish to my website. I'm posotive this can be done, but I'm having trouble customizing the code. I've tried looking for tutorials and help, but the documentation on this is limited, and I'm not a programmer. I do however have enough experience with basic web design to be able to work with existing templates with relative ease but this is seemingly difficult as I'm not sure what each file in the plugin structure is actually doing. Any suggestions on how I can make a simple gallery output like this? Or a link for a good, solid, easy, step-by-step tutorial?
Many thanks in advance!
-ZachChipster1960 wrote:
I have a Samsung Convoy flip phone. I am trying to transfer my pictures of my dog and nephews to Verizon online so I can show them off on Facebook to friends.
You don't need the intermediate step of uploading to Verizon; you can upload directly to Facebook from your phone. You need to go to your Facebook account, and set up your mobile number; then you will get a personalized email address and you can send a text message with the picture and any caption you want to that email address and it will show up as a mobile upload on your timeline.
You *used* to be able to text a status update or a pic to 32665 (FBOOK) but that didn't always work. -
Simple Custom Identity Service running on windows OK, but not on linux, y?
In <Oracle® BPEL Process Manager Developer's Guide 10g Release 2 (10.1.2)
B14448-03>,
Part III, 16<Oracle BPEL Process Manager Workflow
Services, Identity Service, Creating a Custom Identity Service Plug-in>
My pc, OS:windows 2003+BPEL PM Server10.1.2
Server, OS:linux+ias+OC4J_BPEL, i can't make sure the version, may be:10.1.2
In the Developer's Guide say:
Identity Service has 3 provider:
1, JAZN Provider
2,Third-party LDAP Directories
3,CUSTOM Repository LDAP-Based Plug-ins
so i like the third one.
1, i compile the project in Oracle_Home\integration\orabpel\samples\hw\isplugin\db.
Then it create a jar file(IS-DBPlugin.jar) in Oracle_Home\integration\orabpel\system\services\lib
2,Modify the provider config file: is_config.xml
modify the config file: application.xml
restart the Oracle BPEL server
3,run the sql files it provider int the polsql.cmd
OK, now the Identity Service work on Oracle lite database, it's my needs.
add a user into the tables
use the url:http://localhost:9700/integration/worklistapp/Login
i can login the worklist service use my custom user and password.
when the Identity Service use the JAZN Provider(XML), it's default choice.i add a user into the xml files, i mast restart my server if i want use the user login.
use the database plugin,when i insert a user name into the tables,i can login the service use the username immediately.
So i think it's easy to move it to my server(linux os). but when i copy the jar file to the folder,modify the config files,run ths sql files in the oracle database.
but when i open the url :http://server_ip:port/integration/worklistapp/Login
it can not work with a simple error message:Worklist service Identity Service error.
in the log files i find some message like this :
SOAP-ENV:Server.Exception
BPEL-10551 can not load the Custom Identity Service Class:
"IdentityServiceCustomPlugin.CustomIdentityService"
it has wasted me one week time. and i can't find the reason now.
who can help me ?
thanks
cnboyclemens,thanks.
i'm sorry that my English is poor.so i can't understand you mean completely.
you say it might be a linux jvm reason, can the metter be resolved?
and you say extract the jar file .which files i would extract,can you say particular?
thx! -
Could somebody point me to a complete example of a custom simple JSF table component?
I dont want special effects; I look for pedagogical code that teaches appropriate way of construct a custom JSF table, from beginning to end.
thanks!Pedagogical code? :)
Explore the source code of any open source UIData components. -
Hello All
I am new to Java hailing from C++ and ActionScript. I need to create a custom event system for use with various design patterns I'm using in a project (starting with MVC for the overall structure).
From what I understand, I need to use the EventObject and EventListener base classes to derive my own custom classes from, in order to do this. In ActionScript, the events system works quite differently, having an EventDispatcher class you inherit from, etc. It also specify types of events as constants. So I'm a little confused as to how to do this.
The following example seems to explain pretty much what I need:
[http://exampledepot.com/egs/java.util/CustEvent.html|http://exampledepot.com/egs/java.util/CustEvent.html]
...but adapting this is giving me a bit of a headache, maybe because I'm stuck in the ActionScript event paradigm. Am I right in assuming I could simply pass an integer parameter in the event, specifying what type it is?Or do I need to specify a different class for each event type (extending either EventObject, or an interface which extends from EventObject each time)?
Lastly, can someone tell me whether or not a native List implementation using generics might not work just as well for the given example as the EventListenerList used above ? (I see no reason to use Swing classes when I won't be using Swing at all... it just seems unclean. My app is a socket server and needs no UI functionality.)
Thank you in advance.
-NickNickZA wrote:
...but adapting this is giving me a bit of a headache, maybe because I'm stuck in the ActionScript event paradigm. Am I right in assuming I could simply pass an integer parameter in the event, specifying what type it is?Or do I need to specify a different class for each event type (extending either EventObject, or an interface which extends from EventObject each time)?Noone forces you to use EventObjects of any kind. If you like (and it's sufficient for you), then you can simply pass any value you want or even no value to the event method in the Listener interface.
So an event that's represented by the worldIsCollapsing() method might not need any additional information.
Lastly, can someone tell me whether or not a native List implementation using generics might not work just as well for the given example as the EventListenerList used above ? (I see no reason to use Swing classes when I won't be using Swing at all... it just seems unclean. My app is a socket server and needs no UI functionality.)Basically yes, it would work just as well. The difference is that the EventListenerList can handle Listeners of different types (i.e. you can manage your FooListeners and your BarListeners using a single object, if you used simple Lists instead, you'd need two of those).
Maybe you are looking for
-
Here is the short version. I bought an older orignial Macbook Air Model A1237. The hinges had been damaged, and the screen would not display correctly - it had lines all across it and you could not see what you were doing. Anyway - I replaced the scr
-
How can I find out who is using my icloud account
I Just receive a notification saying that someone is logged on to my icloud account on the iPad?! I don't have a iPad i was wondering if I can report it or something?! Also I wanna know if someone else on a different device shouldn't it ask the secur
-
since getting my new phone i had to send it out for repair. after only 2 weeks of having the phone. i got a loner phone and restored my phone to the loner, but than a few days after getting this loner phone my phone started deleting my contacts. i co
-
How do I stop Auto fill while messaging
When I type in messages the word "on" it automatically puts in "On a call" and sometimes it will not go away. How do I turn this off.
-
ORA-29545: okay, but have a look at this one?
May we conclude that: expected = encountered <=> false (?) => ... ORA-29545: badly formed class: at offset 3093 of Adapter.TFADPBeschikbaarheid.sendAanvraag expecting a class-oracle.xml.parser.v2.XMLDocument but encountered a class-oracle.xml.parser.