Sap Function module
Hello
May I know is there any existing SAP function module that can be used to read description of status for table VBUK-KOSTA,FKSTA,WBSTA etc .. (picking status, billing status).
Points will be rewarded if answer is helpful. TQ
Message was edited by:
Hui Leng Yeoh
hi,
Refer to this related thread
Purpose of STATUS_READ function module
Regards,
Santosh
Similar Messages
-
Exception handling for a standard SAP Function Module - the OO way
Hello,
I was wondering what is the correct way to call a standard SAP function module inside a method of global class.
I want to display the error via the:
get_text( ) and get_longtext( ) methods.
I don't want to use the sy-subrc check. Is this possible?
My example doesn't seem to work...
See example bellow:
DATA: ex_object_cx_root TYPE REF TO cx_root,
ex_text TYPE string,
ex_text_long TYPE string.
TRY.
CALL FUNCTION 'L_TO_CONFIRM'
EXPORTING
i_lgnum = i_lgnum " Warehouse number
i_tanum = i_tanum " Transfer order number
i_quknz = '1' " '1' - confirm withdrawal only (picking )
i_commit_work = 'X' " Indicator whether COMMIT WORK in function module
TABLES
t_ltap_conf = it_ltap_conf " Table of items to be confirmed
EXCEPTIONS
to_confirmed = 1 " Transfer order already confirmed
to_doesnt_exist = 2
item_confirmed = 3
item_subsystem = 4
to_item_split_not_allowed = 51
input_wrong = 52
OTHERS = 53.
CATCH cx_root INTO ex_object_cx_root.
ex_text = ex_object_cx_root->get_text( ).
ex_text_long = ex_object_cx_root->get_longtext( ).
" Error:
RAISE EXCEPTION TYPE zcx_transfer_order
EXPORTING textid = zcx_transfer_order=>zcx_transfer_order
err_class = 'ZCL_WM_TRANSFER_ORDER'
err_method = 'CONFIRM_TO_2STEP_PICKING'
err_message_text = ex_text
err_message_text_long = ex_text_long.
ENDTRY.
Thank you very much in advanceHello Marko,
If i understand correctly you've enclosed the call to the FM 'L_TO_CONFIRM' inside the TRY ... CATCH ... ENDTRY block.
CATCH cx_root INTO ex_object_cx_root.
ex_text = ex_object_cx_root->get_text( ).
ex_text_long = ex_object_cx_root->get_longtext( ).
You can't do this because the FM 'L_TO_CONFIRM' doesn't propagate OO exceptions!
Your approach is almost correct, what you've to do is goes like this:
CALL FUNCTION 'L_TO_CONFIRM'
EXPORTING
i_lgnum = i_lgnum " Warehouse number
i_tanum = i_tanum " Transfer order number
i_quknz = '1' " '1' - confirm withdrawal only (picking )
i_commit_work = 'X' " Indicator whether COMMIT WORK in function module
TABLES
t_ltap_conf = it_ltap_conf " Table of items to be confirmed
EXCEPTIONS
to_confirmed = 1 " Transfer order already confirmed
to_doesnt_exist = 2
item_confirmed = 3
item_subsystem = 4
to_item_split_not_allowed = 51
input_wrong = 52
OTHERS = 53.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
INTO ex_text. "Get the ex_text by this technique & not by CX_ROOT->GET_TEXT()
ENDIF.
I'll have to check how to fetch the long text of the message
BR,
Suhas -
Reading SAP function modules using FromSAPIdentity pass
Hi,
We have SAP NW IDM 7.2 SP7 environment
And I have been using FromSAPIdentity pass to read SAP function modules.
A typical configuration will looks like below
Above works like a charm and everything is as expected :-)
Now i am trying to fetch data from another function module.
Here the challenge is import parameter entry need to be provided with selection criteria say something like below for PARAMETER1
SIGN=E
OPTION=EQ
LOW=<Value>
HIGH=<Value>
Does FromSAPIdentity pass accepts selection criteria input for "PARAMETERS" ?
If yes, which format should i follow to provide those values ?
Thanks
KarthikUse DD03L table .
Also use this FM.
F4_DD_TABLE_FIELDS
DD_GET_DD03P -
Crystal Reports Charting Issue with SAP Function Module
I created a custom SAP Function module that returns 2 tables. The first table (summary table) contains two columns, column "a" contains a grouping and column "b" is a quantity. The second table is the detail and is linked to the first table by the grouping, column "a" , in both tables. I can bring the function module into Crystal Reports, but cannot create a drill down using a pie chart off the summary table. When I go into the Chart Expert - Data Tab only the Advance button is active and the Group, Cross-Tab, and OLAP buttons are deactivated. First of all, is it possible to do this using a SAP Function Module, if yes, what am I doing wrong.
hello Jhess,
i am not sure if you found an answer for your question yet. if you have a Group and a Summary on your report (i.e. the Sum of your Quantity field) then group charts should be enabled.
cheers,
jamie -
Documentation for SAP function modules??
Hello,
is there any documentation for the SAP function modules available?
I need documentation for SJ01 (SAP Objects). If I try to view the documentation in SE80, I get the error message: "Document OJ_XXX(whatever I selected) is not available in language DE"
Where can I get this documentation?
Is there an overview+documentation available somewhere of all SAP functions which may be used for own programs? Or how do I know what's already available and how to use it?
Thanks
SteffiHi,
Go thru this links
http://sap.ittoolbox.com/topics/t.asp?t=303&p=449&h2=322&h1=303&h3=449
http://www.erpgenie.com/abap/functions.htm
Thanks
Sunil -
SAP Functional Module for authorization tables
I would like to know are there any standard SAP Functional Modules which could update the Authorization Tables, like AGR_1251.
Thank youHi Prabhu,
Other than function modules with role, I had also tried to look for function modules with AuthObject*.
Because, I would like to update remove one of the authorization object from the system. For example, remove all data which AUTHORIZATION OBJECT = S_SCD0 and ACTIVITY = 06 in the system.
I got the list of functions from the search, but all of them are without proper documentations. So is very hard for me to understand their functionalities and purposes.
Kindly advice.
Thank you. -
Can a SQL Server stored procedure call an SAP function module?
Can a SQL Server stored procedure call an SAP function module.? The stored procedure will be called via a trigger when data records are added to a Z table.
You have two options:
- the other software can use the RFC SDK and call directly in the system
- the other software can use a database connect
Markus -
How to pass multi value selection parameter to SAP Function Module?
Hi ,
Anyone know how to pass CR multi value parameter - array to SAP Function module ?
eg multi selection of customer in CR
and then pass to Function module
in SAP FM, the SQL select these customer only
How should the import parameter / table of SAP Function module designed?
and how should CR pass the data to SAP FM
thx
JohnMoved to Integration Kit forum
-
Replacement for fuction CONVERSION_EXIT_ALPHA_INPUT SAP Function module
hi folks..
do we have any replacement in terms of codes for the fuction CONVERSION_EXIT_ALPHA_INPUT SAP Function module.. i know the use of this fuction module as it converts data in numeric format to character format which is only accpetable in SAP.. cant we do it manualy using the abap codes.. or else it is the only option to do so????Hi Ram,
I guess Isaac got a little confused, anyways try the below code, forgot to add...just curious to know the reason behind your post...any specific reason why you want to avoid the FMs.
DATA: l_vbeln TYPE vbeln VALUE '12345',
l_overlay TYPE vbeln VALUE '0000000000'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = l_vbeln
IMPORTING
OUTPUT = l_vbeln.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = l_vbeln
IMPORTING
OUTPUT = l_vbeln.
* Code to replace Conversion exit alpha input
SHIFT l_vbeln RIGHT DELETING TRAILING space.
OVERLAY l_vbeln WITH l_overlay.
* Code to replace Conversion exit alpha output
SHIFT l_vbeln LEFT DELETING LEADING '0'.
IF sy-subrc EQ 0.
ENDIF.
Regards,
Chen
Edited by: Chen K V on Jun 2, 2011 2:17 PM
Edited by: Chen K V on Jun 2, 2011 2:18 PM -
SAP Function Module Converting Stock UoM to the Billing UoM of the material
Hi Guys,
I'm looking for an SAP Function Module that can handle the automatic conversion of a material's Stock Unit of Measure into its Billing Unit of Measure.
Any idea?
Thank you in advance.
-allexHi,
Check this Function module
OIU_QCI_CALC_BILLING_QUANTTIES
Regards
Bala Krishna -
Crystal reports from SAP function module
Hi,
How to create report based on SAP function module...
I tried it and succeeded for one function module... but i need single report for 3 function modules.
Please let me know i can get them,,, please....!!
When i select all 3, it showing links, what about Links??
Thank You!No one answered it so far...!!
-
Where can i find clear information about sap function modules?
where can i find clear information about sap function modules?
for example,
if i want to know whats the use of function module "SAPGUI_PROGRESS_INDICATOR" .
where i can find all the detail info..
is there any sap transaction code for knowing about all function modules and there use?
Regards
SmithaHi:
For documentation, you have to find it out in se37 but it is not neccessary every Fm would have.
Now question is about its used (if you know th e function module)-> go in se37-> put function module -> select where used list -> select used in like - program, class, BSP application etc -> click on ok; it would give the list of its used and just go in that find how it is being used.
if you have to find the function module for table - > go in se11 -> select table name -> click on where used list -> select function module interface and click on ok, it would give the list of its used.
Otherwise go in g o o g l e dot c o m.
Regards
Shashi -
SFTP using SAP Function Modules
Hi Friends,
We are working on SAP 4.7 system, and have a requirement to SFTP some files from our server to an external server.
We are sending files to many other servers using function module FTP_CONNECT. This FM works where Port 23 is active. But for the new server it has only SSH (22) and HTTPS (443) ports available, so the FTP_CONNECT FM fails. We have tried sending the files from Putty using statement SFTP <ID>@<IP> and it worked.
Does any one know how we can do SFTP from SAP reports? Please note that as per the SAP help I have already tried using FM FTP_CONNECT with HOST_NAME as '<IP> space 22'. But it didnt work.
Waiting for your valuable updates.
Regards,
RahulHi,
try and optimize this example:
*& Report ZTESTFTPSAP *
REPORT ZTESTFTPSAP .
data: unixcom like rlgrap-filename. " ...SAP Interface file
data: begin of tabl occurs 500,
line(400),
end of tabl.
data: lines type i.
data: begin of tlines occurs 0,
line(90),
end of tlines.
data: ffile(50) type c.
start-of-selection.
refresh tabl.
refresh tlines.
append 'open ftp.yourserver.com:22' to tlines.
append 'user=anonymous' to tlines.
append 'pwd=pass' to tlines.
append 'cd pub' to tlines.
append 'close' to tlines.
append 'bye' to tlines.
ffile = 'c:\temp\ftp.txt'.
OPEN DATASET ffile FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE.
loop at tlines.
transfer tlines to ffile.
endloop.
CLOSE DATASET ffile.
unixcom = 'ftp -s:c:\temp\ftp.txt'.
call 'SYSTEM' id 'COMMAND' field unixcom
id 'TAB' field tabl[].
describe table tabl lines lines.
loop at tabl.
write:/01 tabl-line.
endloop.
skip 2.
if lines = 0.
write:/ 'NO Occurances were found'.
else.
write:/ 'Command was successfully executed' color col_total.
write:/ 'Number of entries in Search' color col_total,
lines color 6.
endif. -
Which SAP Functional Module to choose?
Hi Folks,
Glad to be a part of the SCN community. I am current working in a SAP Staffing Company doing both SAP Recruitments & Resume Marketing. As I deal with SAP Technologies have developed my interest to enter into the SAP world. I am not from technical background hence can anyone please suggest me which functional module I can choose in SAP as a career and which modules will have good demand in future.
Kindly help.
Thanks!
RiteshDear Shanu,
Thanks for your response. I have total 3 years of domain experience into HR out of which 2 years are into recruitments. I am experiencing good demand for Professionals into SAP CRM and SAP SD. So shall I opt for these modules or stick to SAP HR module?
Please find below the answers and help me on the same.
1. No. I have 2+ years of prior experience into Recruitments
2. Yes. Around 1+ years of experience into HR
3. Other than Recruitment have some experience into Sales
4. BMS (Bachelors in Management Studies)
Thanks once again for your valued suggestions.
Regards
Ritesh -
Dear Experts,
Can i get all the function modules given by sap??
Thank you,
MabinHi Mabine,
Follow the links for the Functional Module list,
[http://www.springer.com/cda/content/document/cda_d ownloaddocument/9781852337759-t1.pdf?SGWID=0-0-45-100008-p8900744]
Also check the commonly used Functional Module
[http://wiki.sdn.sap.com/wiki/display/ABAP/ListofCommonlyUsedFunction+Modules]
Please check and revert.
Thanks
Hrishi
Maybe you are looking for
-
Issue with valuation segment and gl in MB5l
Hi gurus I have an issue with a couple of materials in a report in MM MB5L list of stock values. The materials they are reporting with the issue have no costing screen extended in MM and I think this maybe the issue. The message I am getting is: Ac
-
Payload type of wav files encoded with gms codec
Hello everybody, I have an application which receives and plays alaw formated wav files using JMF(with the help of some additional libraries) . I want to use lower bandwidth for my application. A quick google search indicated that i can do this by us
-
Connect dispatchevent between two swf's??
One single swf, imgdesc.swf is being loaded into the emptymcholder, by the moviecliploader instance. My order is folioholdermc ---holds--> emptymcholder --holds--> imgdesc.swf Within folioholdermc, I disabled buttons and lowered opacity, once imgdesc
-
Can't establish a secure connection to the server
Safari loads ok and I can browse the internet. However, when i try to log on to 'my ebay'(and some other sites) I get the following error message: Safari can't open the page "https://signin.ebay.co.uk/ws/eBayISAPI.dll?SignIn&Using-SAPI.dll%3FMyeBay%2
-
Portege M400 - WLan issues connecting Orange Livebox
Hi My landlord recently upgraded our WLan by introducing an Orange Livebox. I have tried everything possible to connect wirelessly to the router but to no avail. All the other machines have connected with no/little issue/s. I have installed Configfre