Transport Request Function modules
Hi All,
we have have a requirment wherein we need to to insert data in a Z table.when the user tries to enter the data the system should check whether any Transport request is already present for the table entry.If it is present it should assign the entry to this Transport req.We are using the FMs TR_OBJECTS_CHECK and TR_OBJECTS_INSERT.we are not able to execute these FMs proerly.what should be the object type that should be given in these FMs?
Thanks,
Rakesh..
1. Say there is 1 key field in your ztable and ur client is 100
2. Say the value for one entry will be 100ABC , here 100 is client and ABC is the value of ur key field
3. Select * from E071K into wa_e071k where PGMID eq 'R3TR' and OBJECT eq 'TABU' and OBJNAME eq 'ZTABLE' and MASTERTYPE eq 'TABU' and MASTERNAME eq 'ZTABLE' and TABKEY eq '100ABC'.
if wa_e071k-TRKORR is initial.
*NO TRANSPORT IS ASSIGNED
else.
v_TRKORR = wa_e071k-TRKORR-TRKORR.
endif.
Similar Messages
-
Transports/requests function module
Hi experts,
I have searched for some standard function module which returns transports details (E070,E071) with no result.
Also FM should be remote-enabled and what is important - there must be some filtering criteria like E070-AS4USER (Owner of a request or task) ...
Any idea ?
Best regards, Daniel.Daniel,
My requirement is to read transport list (filtered by uname like in SE01) to JCo Java application (remote-functions) and make this application universal, system specific independent... (only standard FM) - sorry I should told this earlier.
Well, like others have mentioned, you just need to create a Z function module(FM) and mark it as Remote Enabled, you could have the interface of this Z FM to be the same as that of TRINT_SELECT_REQUESTS or you can changeit for example you can take off IMPORT parameter "VIA Selection" etc and set Default values.
Once you make this an RFC it becomes available to all external systems which can invoke an RFC, also you can take it a step ahead and expose this custom RFC as a Web Service too.
Note sure if i understand what you meant by
system specific independent... (only standard FM)
The Z RFC will be independent, and will be specific to the target system on which you run this RFC.
Ok, but when I start this application on other SAP server it won't work.
Do you mean when you invoke the TRINT_SELECT_REQUESTS from JCo, you need to keep in mind that you cannot invoke TRINT_SELECT_REQUESTS directly from Jco, you need to wrap it within an RFC.
Now, If you meant you are not able to invoke the Z RFC from JCo, update the post on what is the message you get?
Regards,
Chen -
Standard leave request function module
standar leave request function module (example import parameters strat date end date and leave type ) if i execute this bapi i want my subordinate name and leave applied is successful)
I got this from my collegue who is an ABAP consultant. Hope it helps.
ABSE Object Type "Absence"
BAPI_ABSENCE_APPROVE Unlock absence
BAPI_ABSENCE_CHANGE Change absence
BAPI_ABSENCE_CREATE Create absence
BAPI_ABSENCE_DELETE Delete absence
BAPI_ABSENCE_GETDETAIL Read absence
BAPI_ABSENCE_GETDETAILEDLIST Read instances with data
BAPI_ABSENCE_GETLIST Read instances
BAPI_ABSENCE_REQUEST Create locked absence
BAPI_ABSENCE_SIMULATECREATION Simulation: Create absence -
Transporting a Function Module from Dev to QA system
Hi Experts,
I developed a new Function Module in an existing Function Group. This is function group is the old one so already exists in QA as well. Now when I make a transport request what do I need to keep in that? Only my new FM or the FG also? If I transport only FM, will it not recognize automatically in QA that the already existing FG is its FG?
Thanks in advance,
ShiweshHi,
If you are creating a request thru normal root you need not worry about FG. System will automatically take care of it.
Regards
Raju Chitale -
Request: Function Module - Get PERNR from UserID
Hi,
Is a simple Function Module available for getting the PERNR from a UserID?
For example, I'll send the FM the UserID and will get back the relevant PERNR.
Please Help.
Thanks,
JohnHi John,
FM is one way but
Simple code to Find personnel number for UNAME
SELECT SINGLE pernr INTO t_pernr
FROM pa0105
WHERE subty = '0001' AND
endda >= sy-datum AND
begda <= sy-datum AND
usrid = p_uname.
Best Regards,
Aslam -
When I transport a function module from development to quality environment, is the entire function group replaced by the transport request or only the new function module is added to the function group in the quality end.
It would be great if someone can explain what all is sent when we make a transport, either the delta portion of the object or the entire object.
Thanks.Thanks for the quick reply.
The transport only contained
1. the include which got created
2. the function module
There was no mention of the table entry as such o any change in SAP program. I used se80 and added each Z object in the transport request using Write transport Entry option. This helped me in including the entire function group in the transport request.
Hope i did the right thing !! Any suggesstions ! -
Overdue to transport Function Module for Backend Access
Hi all, I have problem when overdue to transport function module to next system (iView has transported to the next system). When i transport this function module,the application work (before there is message internal server error) but there is'nt any data that show in my table (before using this new function module, data show properly). One thing that make me more confused that when my application tested in previous system, the data show properly. Anyone can help me ? Thank you
Regards,
Satriahi
You just need to pass the value to the FM and FM will return the table with set of values now you need pass this table returned by FM to a internal table, for that you can just modify the internal table or append the internal table,
use below code for reference :
WHILE D1 LE D2.
CALL FUNCTION 'BAPI_AR_ACC_GETOPENITEMS'
EXPORTING
COMPANYCODE = PA_BUKRS
CUSTOMER = PA_KUN
KEYDATE = D1
NOTEDITEMS = 'X'
* SECINDEX = ' '
* IMPORTING
* RETURN =
TABLES
LINEITEMS = LT_ITMES.
ENDWHILE.
LOOP AT LT_ITMES INTO WA_ITMES.
MOVE WA_ITMES-CLEAR_DATE TO WA_BSID-AUGDT.
MOVE WA_ITMES-COMP_CODE TO WA_BSID-BUKRS.
MOVE WA_ITMES-FISC_YEAR TO WA_BSID-GJAHR.
MOVE WA_ITMES-REF_DOC_NO TO WA_BSID-XBLNR.
MOVE WA_ITMES-ALLOC_NMBR TO WA_BSID-ZUONR.
MOVE WA_ITMES-DOC_NO TO WA_BSID-BELNR.
APPEND WA_BSID TO IT_BSID.
ENDIF.
hope it helps. -
Function module not in Function group after transport
We have a function group ZPCAD with three function modules in it. I added two function modules. When they were transported, the function group in the target client did not show the function modules
I found the program in SE80 Repository info System. when I opened the Module got a message about funtion group being damaged.
Since then, we have:
transported the modules again. that did not help
transported the Function group, that did not help
Transport all function modules (old and new), that did not help.
I went to SE37, opened the module and pressed Control, Shift, F5. The function group ZPCAD was opened indicating the module is part of the group. However, the new function modules still were not listed in the group.
Any advice would be appreciated.
ScottSome time function modules will not be displayed in function group in target systems.
Goto SE80
Select the function group from the list box and search for the function group.
Right click on the functio group and select "Other Functions" and "Rebuild Object List" from the sub menu of "Other Functions".
After doing all these, function modules will be displayed in function group.
Regards,
Siva. -
Function module was assigned to 4tmp package
Hello all,
I have created XML-DataSource with SOAP Connection in our BW development system.
In this regard the system created a function module to receive data via XI. This function modul was assigned to the package $tmp and it is not possible to transport this FM into production system.
When I try to re-assign the package to our designated develop package an error message appears, which says I have to use a package which starts with /BI0/.
Any idea how can I transport this function module. That would be great.
Thanks upfront and Best regards,
Stefanos from Munich/Germanyhi Stefanos,
try to transport the datasource/infosource to target system and check if the function module is generated there.
hope this helps. -
Function Module not being displayed in the Transport Request
Hi,
I Created a FM "RH_ACTIVATE_WFOBJECT_AFTER_IMP" in my SAP System. After I created due to problem in editing I have deleted the FM and also deleted it from the request.
I have re created the function module and if I see the object directory entry I find the following
Identical request locks
Request User Task/request Object
**** ***** R3TR FUGR RHWS
In the request I cannot find the function module but only the function group. Please help me to get my function module visible in the transport request.Hi ,
When your creating the FM for first timw with new FGRP then no need to worry .
You can see only the FGRP in the transport request number and when you move this transport request to further systems your FM automatically transport with the FGRP.
Next time when your creating a new FM under the FGRP which is already moved to production you can see only your FM name under the transport request.
When you go to FGRP main program by follwing the path
FGRP -> Disply FGRP in SE37 you can see the main program of the FGRP there if you see one include with TOP and XX .
double click on the XX Include.
there you can see allthe FM under that FGRP.
Thanks
Naresh -
Function Module - Transport request
Hi Friends,
I have changed one z function module and created on transport request.In transport organizor, Under the task number, my function module is displayed. No other object is included in the task list. Should i add any other object before release? for example report means we have to add text elements, source code, documentation, report category etc.
Thanks.please go though the request no in the se10 ... there go the first menu option
request /task -> complete check -> 3 options 3 time check it will give you message s then by selecting the request do it ..
then transport it ....
becuase FM is global object it doesn't require any other objects like
(report , bdc , scipts ,... ) other than Function Group ...
Girish -
Function module related to release transport request
Hello experts,
I am working on product management system hierarchy. The hierarchy is like
PRODUCTSSUBPRODUCTVERSIONPACKAGE
we can create transport for VERSION directly from CONTEXT MENU. Next step is download transport to client PC I have done with it. FInal stage to release transport directly from context menu. For this i am searching for appropriate function module. If anybody know which function module to be used for transport request release please share it with me.
Thanks,
AvadhutHi,
You can use TR_RELEASE_REQUEST to release a transport request directly.
The class CL_CTS_REQUEST is also worth looking at. -
How to release a transport request with warnings using a function module?
Hi,
I want to release a transport request(which has some warnings) using some function module .
The warnign that i get when i try to release the Transport Request manually is "not all objects could be locked..."
Which function module can I use so i can release such a transport request?
I am currently using TR_RELEASE_REQUEST but I am unable to release the TR, it throws an exception.
Also i wouls assume that the function module mentioned would take care of releasing all the unreleased task
under the request.
Regards,
Bikash.Hello Bikash
As an alternative (to cope with the warnings) you may use TRINT_RELEASE_REQUEST.
However, since this fm offers only a single task/request as IMPORTING parameter you need to take care about unreleased tasks yourself. Looking at SE09/SE10 even there you do not have the option the release a request including all its tasks.
Regards
Uwe -
Function module to find table entries associated with transport request
Hi all,
I have requirement, like we have created a table and maintenance view for that table - and made entries in that table.
now we want to know all the entries made in the table are associated with transport request or not.
how to do it programmatically?? is there any function module which gives the result for transport object associated with the table entries ?????
Thanks
SathishHi,
Use the table <b>E071K</b>
in se16 give :
request number in TRKORR
Table name in OBJNAME
in the filed TABKEY u will get the <b>values of the key fields</b> in the table
by comparing the key fields u can find out the enrties related to the request number
Please let me know if i am not clear
---Patil
Message was edited by:
Santhosh Patil
null -
Transport Request for Function Module
Hi Gurus,
I have created custom function module, which has function group, fields, and include. While developing only Function group is collected . But couldn't know how to collect function module and other dependent objects.
Please assiss me how to collect function module and other dependent objects.
Thanks
Ganesh Reddy.Hi Ganesh,
goto SE37, give the functional module and diplay the code
in the environment on menu bar, you will find option transport request
Regards,
Venkatesh
Maybe you are looking for
-
Heading texts not appearing correctly in WDA search help
Hello experts, I am facing a problem in WDA. I have a field(Profile Key) in my WDA application which takes the input search help automatically from the data dictionary. When I execute my application the F4 help is displayed for the field on pressing
-
Access the cached session in ADF
Hello, I have generated an EO A. Business logic is triggered to call a DB store procedure in EO A generated java class. The DB store procedure is to create list of record in A. The list of records are cached in the session and not committed yet. If i
-
Hi. I am getting the following error while trying to specify an iconUrl in a JSR 168 portlet. Any clues? <Mar 1, 2004 11:57:55 AM PST> <Error> <netuix> <BEA-421519> <One or more validat ion error(s) occurred during parsing /portlets/MarketWatchPortle
-
Unable to install db2 on solaris system
Dear Experts I am planning to install sap on sun solaris sparc system. I have download the db2 dvd from the market place (51036149_4). when i try to execute the db2setup it's throwing error db2setup cannot execute. i have full permission for the rold
-
Hi people. I need your assistance in my problem. I try to run the simple applet (from Java Tutorial Documents): import java.applet.Applet; import java.awt.Graphics; public class HelloApplet extends Applet { public void paint(Graphics g) { g.drawStrin