FUNCTION MODULE IN SAP PI
Hi Experts
how to use function module in sap pi using soap adapter?
My senario is soap to soap using function module?
can you tell me any one step by step procedure
REGARDS
SAGAR
As this looks like a mapping error - please check if the error has been thrown before reaching the SOAP receiver and format of the input data you are posting. You may want to check at he following link for exposing rfc as webservice.
http://scn.sap.com/docs/DOC-38805
Regards
Similar Messages
-
How to code a predifined function module in sap ,in se37.
can any one tell me how to code a predifined function module in sap ,in se37.it's an immediate requirement.if u give a brief description it'll do.
Hi Henry,
There are two possible ways in which I can interpret your question.
1. You want to create a new Function Module in SE37. you will have to refer to the <a href="http://help.sap.com/saphelp_47x200/helpdata/en/d1/801e9a454211d189710000e8322d00/frameset.htm">Function Builder</a> tutorial for that.
2. You want to use an existing function module in your program. In the code of your program in SE38, click the button <i>Pattern</i>. On the pop-up, give the name of the function module that you wish to use in your program.
Regards,
Anand Mandalika. -
How to develope custom function modules in SAP R/3 system to maintain c...
How to develope custom function modules in SAP R/3 system to maintain cross
referencing tables for sales order number.Hi Raja,
Steps to crate FM..
Follow these steps..
Go to the T: code SE37
First You Create Function Group
On That u specify
Function Group Name..............
Short Text..............................
save...
Go to SE 37
Specify the Function Module Name: Eg: Z_Bapi_Materialmaster
Short Text.......
Save...
Next Go to Attributes..
Select Radio button : Remote enabled model
Go to Parameters..
Click Import...
Give Parameter Type Associate type S.t
next Click Export...
Give Parameter Type Associate type S.t
Next Click Tables Button..
Specify tables..
Next click source code button..
Write Source code here..
Eg : Select statements Etc..
Finally we should be select the Radio button Enable remorely
https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=39728
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/bapi%2bstep%2bby%2bstep
Hope this information is useful to you..
Reward points if it is usefulll....
Thanks ,
Satya Kumar.. -
Can i call a function module of SAP?
Hi, i have a question... Can i call a function module of SAP... I need print a document from a device, can i call the function module of SAP in order that me it prints it?
Thanks,Hi Victor,
you can use the GenericSync Example of the MDK. This calls the Module to verify the user directly. Generic Sync is exactly for that purpose: call a BADI directly and no usage of SyncBO. Be aware, that you - out of the box- sync your app data as well at that moment, because a sync runs both - generic and smartsync. Even worse: even when you have nothing to sync in Generic Sync - so nothing to print - it will call the function module for generic sync as long as it is registered.
Well, anyway, this is the way to call a function module separate.
If it works with you rparticular print module? I have no idea, but if this is a normal function module - well, it should be ok.
Hope this helps.
Regards,
Oliver -
Wants to find out customise function module in SAP
Hi all There,
I want to find out Customize Function Module in SAP,
I am not able to find out though SE03.
Pl provide the detail solution
Regards
Sagarhi,
Custom function module start with Z or Y.So go to table TFDIR and enter z* and y* on input screen field function module name and then check number on entries by pressing tab number of entries on application toolbar.
So number of custom function module = z(number of entries) + y(Number of entries) .
Thanks
Mohit -
Can we call function modules in SAP query or ADHOC query
Hi ,
Can we call afunction moudule in sap query or ADHOC query ?If yes How
An early responce is greatly appreciated
Thanks and best regards
Rajeev ChhabraHello Rajeev Chhabra,
Yes; you can call function module in SAP Query. In InfoSet definition (SQ02), you can create additional field. In this field definition, you can add code snippet where you can function module.
However, this is not possible in Quick Viewer (SQVI) Query.
Thanks,
Venu -
Can we call function module in sap script
hi
can we call function module in sap script
i want to use function module HR_TMW_GET_EMPLOYEE_NAME in sapscript
to get Empname by using personal no
pernr no is coming from bseg-pernr table
so how i can use it .
please help me
thanks in advanced.hi,
You can use like this:
PERFORM FUNCTION_MODULE IN PROGRAM SUBROUTINE_POOL
USING &FIELD1&
USING &FIELD2&
CHANGING &FIELD3&
ENDPERFORM.
where function_module is the func. module name defined in program SUBROUTINE_POOL , field1 n field2 are the fields to be passed, and field3 is the value which you want to display...
You have to read field1 & field2 in the pool, process them & get the value of field to be output.
Reward helpful answers.
Regards,
SIddhesh Sanghvi. -
How to Developed user defined functions to call function modules in SAP R/3
how to Develope user defined functions to call function modules in SAP R/3 system
Hello Raja,
Go through this V.imp Link...
http://download.oracle.com/docs/cd/B10464_05/integrate.904/b10408/rfc.htm
Steps to crate FM..
Follow these steps..
Go to the T: code SE37
First You Create Function Group
On That u specify
Function Group Name..............
Short Text..............................
save...
Go to SE 37
Specify the Function Module Name: Eg: Z_Bapi_Materialmaster
Short Text.......
Save...
Next Go to Attributes..
Select Radio button : Remote enabled model
Go to Parameters..
Click Import...
Give Parameter Type Associate type S.t
next Click Export...
Give Parameter Type Associate type S.t
Next Click Tables Button..
Specify tables..
Next click source code button..
Write Source code here..
Eg : Select statements Etc..
Finally we should be select the Radio button Enable remorely
https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=39728
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/bapi%2bstep%2bby%2bstep
Re: User Defined Functions Tutorials
Hope this information is useful to you..
Thanks ,
Satya Kumar.. -
Using Function Module in SAP Script
Dear Friends,
how can i use function modules in sap scripts?. i want to use call function SPELL_AMOUNT in sap script?
in text element using perform statement hw can i use?
Regarding i search related articles but, i am not getting any solution.
Plz help Me.
Regards,
K.S.KannanDear Kanan,
You can do it in two ways:
Way1
your Amount will be in some variable say VAR_AMT1 and want in words in field say VAR_SPELL.
In your report program you can use the function module SPELL_AMOUNT and pass the VAR_AMT1 to it and you will get the words in VAR_SPELL.
So now in your sap script you can use the variable VAR_SPELL to print the amount in words.
we normally use this above method.
WAY2
You are inside Sap script and you can write the following code in the sap Script window.
/: PERFORM AMT_TEXT IN PROGRAM ZF_REPORT USING &VAR_AMT1& CHANGING &VAR_SPELL&
/: ENDPERFORM
In the Tag Column when you press F4 you can see various symbols like
/: = ( / /= /( /: /* /E
. Select
In the program ZF_REPORT (any report) you should have the perform AMT_TEXT where you should use the function module SPELL_AMOUNT to convert the amount into words.
Hope its Clear. -
Calling a normal function module in SAP system .
Hi Experts,
I have the requirment like -->
I want to call a normal function module in SAP system which will perform a data look up. The module will be called by SAP-XI and the response will come to SAP-XI . That means i want to make a synchronous call to a Normal function module (not Remote module) which can perform the data look up and send me the result.
Can anyone help me in this.
ThanksHi Ajay,
Lookups in XI made simpler -
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
How to check JDBC SQL Query Syntax and verify the query results inside a
User Defined Function of the Lookup API -
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
/people/prasad.illapani/blog/2006/10/25/how-to-check-jdbc-sql-query-syntax-and-verify-the-query-results-inside-a-user-defined-function-of-the-lookup-api
Lookups - /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
Lookups - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
/people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
Thanks,
Satya Kumar -
How to use BAPI_MATERIAL_MAINTAINDATA_RT function module in SAP Reatil?
Hi,
I am facing aproblem with BAPI_MATERIAL_MAINTAINDATA_RT function module when i send Article Master data from one SAP Server where all Article Master Data is maintained to another SAP Server where all Transaction Data is maintained.
how can i use the above Function Module to create or change Articles in Remote Server ( Transactional Data Server) by specifying Destination when calling Function Module so that it can create or change in Remote Server i.e what are the neccessary parameters passed to this function modules.thanks
-
Hi Friends,
Could anybody please tell me what are the " Exchange rate " & Plan exchange rate " standard programs, function modules avaialble in SAP .
Thanks in advance,
Ramesh.Check via transaction OB07 (or SPRO - General Settings - Currencies - Check exchange rate types) usually you will find a "M" average exchange rate (which is used operationally everywhere in Logistics) and a "P" planned exchange rate (used for cost planning)
Exchange rates are maintained via transaction OB08 (or SPRO, same tree - last node - Enter exchange rates)
When programming, use tables TCUR* or FM of function groups like SCUR "Translation of Currency Amounts etc." (CONVERT_TO_FOREIGN_CURRENCY, CONVERT_TO_LOCAL_CURRENCY and READ_EXCHANGE_RATE among others)
Regards,
Raymond -
Attachments Function Modules in SAP Netweaver Mobile 7.1
Google Traslator
Hi Experts,
I am currently developing an application on the SAP technology
Netweaver Mobile 7.1
I am in the process of setting BACKEND ADAPTER, model
data fields are used data type STRING and XSTRING. According to the
documentation, when using such data types, must be implemented
additional attachment function modules, diferent to Bapi wrappers. They function
modules are responsible for uploading and downloading of the fields in the
DOE.
In SAP Help, forums or on the same system, I can not find this type of function module and I would be very useful that they could send me an example.
Best Regards,
JMHi,
You need to have a separate table to store attachments in the backend.
In the DOE define the attribute as STRING(tick the text memo) This you have already done .
In the backend you will need another table where you will be storing the attachments.
Lets assume you have a notification table : In this define the field for headertext with the data type as CHAR and length 1
Create another table where you want to store the attachments:
You can have the fields as NOTIFICATION and HEADERTEXT. This headertext should have a datatype STRING. You can also have a field called attachment type to store whether it is HeaderText or Binary Memo.
Create a BAPI wrapper for getting the HEADERTEXT with importing parameter as NOTIFICATION and exporting HeaderText and a return parameter:
Here the source code:
SELECT SINGLE b~headertext INTO e_headertext
FROM <notification table> AS a
INNER JOIN <attachment table> AS b ON
borderid = aorderid
WHERE a~orderid = orderid AND
a~headertext = 'X' and
b~ATTCHTYP = 'HEDTXT'.
Now in the DOE : give this function module name in the attachment Function module. SAVE (very important)
After doing the mapping go to the attachment tab and do the mapping with the attachment function module.
save and activate the backend adapter.
execute SDOE_LOAD.
Go to SE11: there should be a table starting <cds table name>ending with _TM.
Create an application in the similar way. No extra code required.
Regards,
Sunaina Reddy T -
Calling a functional module in SAP
Hi
We have a require ment like we need to update the details in SAP by calling a functional module, the data comes from a legacy which deletes immediately after it sends to XI by using a webservice, It is XI responsibility to update the details. In case SAP is down , Can we preserve this message and update SAP as and when the SAP is Up.
Please comment.
Regs
RameshHi Prasad
Thank you so much. It has good information.
As Naveen Pandrangi's blog
XI : RFCAdapter ReConnect Issue
"when the end system comes up, calls from XI would be successful. RFC Adapter would now check the connection for every message instead of only once when the communication channel is updated."
Here small question is what about the old messages that were failed due to Connection Failure or SAP down.
Please try to comment.
Thanks in advance
Ramesh -
Hi experts I got some problem in SAP-APO.In that i need to know is there any Function Module to convert data Excel format to SAP Internal Table.Could you anyone please help me to solve this is problem
Advance Thanks
NandaHi Nanda,
Welcome to SDN.
You can use this function module to convert Excel to SAP internal table.
<b>ALSM_EXCEL_TO_INTERNAL_TABLE
TEXT_CONVERT_XLS_TO_SAP</b>
Please check this links for sample codes.
http://www.sapdevelopment.co.uk/file/file_upexcel2.htm
http://www.sapdevelopment.co.uk/file/file_upexcel.htm
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful.
Maybe you are looking for
-
Hi, I've got the unenviable task of rewriting the data storage back end for a very complex legacy system which analyses time series data for a range of different data sets. What I want to do is bring this data kicking an screaming into the 21st centu
-
Installation fails with "Cannot launch the Java Virtual Machine"
I'm trying to install OAS 10.1.3.1. on Windows XPbut after copying all the files the installer starts complaining that it cannot lauch the Java Virtual Machine. Eventually, the process gets to the configuration step where it succeeds with one configu
-
LazerJet Pro 1415 Windows 7 64-bit cannot connect to E4200 router
I can't seem to get my router to connect to my printer
-
I had this problem with my last iPod too but it's particularly egregious this time around. These are mp3s that I ripped from my own CDs and that worked for a while and then just stopped. It's several thousand (my iPod is 120 GB and I'm a serious mu
-
My mac book is off and I don't know how to power it back