How to grant a customized program.
Hi,
A have a customized report called APVOUCHER.rdf . My boss said if u put customized report under $AP_TOP , if will be deleted when u run autoconfig.
So I have to create its own directory path, and it own Responsibility Name owner and its own Request Group.
How do I grant access this report to all with "Payables" responsibilities?
Thanks a lot
Hi,
A have a customized report called APVOUCHER.rdf . My boss said if u put customized report under $AP_TOP , if will be deleted when u run autoconfig.It will not be deleted by AutoConfig.
So I have to create its own directory path, and it own Responsibility Name owner and its own Request Group. If you still want to create a new path, set it in the custom<CONTEXT_NAME>.env file under $APPL_TOP.
How do I grant access this report to all with "Payables" responsibilities? - Login to System Administrator responsibility
- Navigate to Security > Responsibility > Define
- Query the Payables responsibility
- Get the Request Group Name
- Navigate to Security > Responsibility > Request
- Query the Request Group
- Add the program
Regards,
Hussein
Similar Messages
-
How to get the custom program generated in Background
Dear Freinds,
I have written a below code in my submit program ( zreport) .
REPORT ZHRRPCPRRU0_SUBMIT NO STANDARD PAGE HEADING MESSAGE-ID zhr_msg.
SUBMIT RPTQTA00 VIA SELECTION-SCREEN
WITH pnpbegda = sy-datum
WITH pnpendda = lv_date
with pnppernr = '99007057'.
As per your logic i have used the submit program and i am able to default the dates in the Standard program RPTQTA00 , that is perfectly correct . Now if run the standard report it is giivng me the ouput ..so the foreground concept is working correctly.
Now if iam scheduling the Z report of the custom report (z program) where iam calling the submit program
it is just scheduling and further when i look at the sm37 i can see the job getting finished . However , i dont find any spool because the standard report has not been executed , with my custom report (using the logic with submit program above in zprogram ) i am calling the standard program (RPTQTA00).
so could you please let me know how the standard program will execute and get the spool genereated? in the case of background
because when i have executed only the standard report in background i can see that it is being exceuted spool as well, however when iam calling from custom program no spool is created because my custom program only submiting the standard report and it is not executing the standard report in the case of backround ...because when iam running the custom program in the Foreground it is calling the standard program and getting the values defaulted based on the parameters which i passed , so it gets defaulted later iam running the standard program manually .
So please could you let me know how will the standard program also gets genereated in the backgroung along with my custom report.
Thanks in advance
regards
madhuri,Hi Can you try the following?
Hope this helps... (Taken from help)
Example
Scheduling a submitable program as a background task with the number number in a background request name. After scheduling, the background task is completed by function module JOB_CLOSE and released immediately.
DATA: number TYPE tbtcjob-jobcount,
name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
print_parameters TYPE pri_params.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = name
IMPORTING
jobcount = number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
SUBMIT submitable TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
VIA JOB name NUMBER number
AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = number
jobname = name
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDIF. -
How to create a customer program for "PPMOD"feature(pe03)?
Hi,
I want to create customer program for "PPMOD"feature(tcode:pe03),who can tell me the steps? (ECC6.0)
thanks a lot?
Olivia YangHi,
/1PAPA/FEAT610PPMOD the generated program for the feature.
You are forbidden to change this generated program. Ideally whatever logic regarding the feature needs to be put through pe03 tcode of feature and not in the program.
Still if there are any changes that need to be done to the program you can enhance the program.
To enhance the program you need to go to se 38 and open this program and press Shift + F4
Then Goto->Enhancement operations->Show implicit enhancement operations
Then go to yellow line right click on mouse and Enhancement implementation->Create
And put your own code in the implementation.
Regards,
Divya -
How to find which custom program uses authorization checks
Hi all,
I have been asked to find out which custom ABAP program in our organization is using Authorizations checks and which is not.
Since there are thousands of custom programs I will need to automatize this process somehow. But I am not an ABAP expert and I will need some help.
Could any of you give me an idea of what would be the best strategy to find out if authorization objects/checks exist in a number of ABAP programs? (would a simple text search do?).
Many thanks,
AldoIf you are looking out for Authorization related to Execution of any program, then look for entries in table TRDIR where field SECU (Authorization Group) is not blank.
Below SAP documentation may help you:
Authorization Group
Authorization group to which the program is assigned.
The assignment of a program to an authorization group plays a role when the system checks whether the user is authorized to:
Execute a program
--> Authorization object S_PROGRAM
Edit a program (-Include) in the ABAP Workbench
--> Authorization object S_DEVELOP
Programs that are not assigned to an authorization group are not protected against display and execution.
Security-related programs should, therefore, always be assigned to an authorization group.
Report RSCSAUTH can also be used to assign programs to authorization groups. This report is documented in detail. -
How to attach a customer program during saving in tcode qm02
hi,
i have written a abap program which will send emails after saving data in qm02 . but i do not know how to attach this program so that it executes upon saving data in qm02 . can any one help me out .
thanks in advance.
Kallol.Hi Kallol,
Check with this user exit QQMA0014 QM/PM/SM: Checks before saving a notification.
Close the thread if this solves your query.
Regards
Abhii -
How to include MATLAB custom program to LabVIEW
I am pretty new to LabVIEW environment. I need to take two voltage signal and manipulate that signal with MATLAB( if possible) for certain automatic calculation. I am not quite sure how I can do this.
Thanks all
In addition how can i directly give DACmx input to mathscript for processing purposes. When mathscript input is directly connect from the DACmx out, it is not allowed saying that the data type is different. Any suggestion to over come this. -
Custom Program error APP-FND-00222
Hi:
"APP-FND-00222: Encountered an error while getting the ORACLE user account for your concurrent request"
This happend when running a custom program for 12.1.3 on linux. The suffered web and found this link. but don't know how to change the Application field. WOuld you please help? THX.
http://oracleared.blogspot.com/2012/05/app-fnd-00222-encountered-error-while.html907485 wrote:
Hi:
"APP-FND-00222: Encountered an error while getting the ORACLE user account for your concurrent request"
This happend when running a custom program for 12.1.3 on linux. The suffered web and found this link. but don't know how to change the Application field. WOuld you please help? THX.
http://oracleared.blogspot.com/2012/05/app-fnd-00222-encountered-error-while.html
Re: How to grant a customized program.
Thanks,
Hussein -
SWI2_ADM1 : Without agents workflow for custom program
Hi,
I have a requirement for without agent to make automatic Custom program to run background daily-basis
and also execute rules(we have different client in the same server) and display error work items list in the output.
kindly suggest me how to write the custom program.
Thanks & regards,
Bala.Hi,
I think you have a two requirement.
I have a requirement for without agent to make automatic Custom program to run background daily-basis
and also execute rules(we have different client in the same server) and
For this purpose please follow the below steps.
1. Get all the dialog workitems from table SWWWIHEAD where WI_TYPE = 'W' , WI_STAT = 'READY' and WI_CD = current date.
2. Now this dialog workitems are with agent and without agents. Now you need to filter them.
3. use FM SAP_WAPI_GET_WI_AGENTS/RH_SWWUSERWI_READ_FOR_WI to find the agents of the dialog workitem.
FM SAP_WAPI_GET_WI_AGENTS will return workitem list those have agents. FM RH_SWWUSERWI_READ_FOR_WI will return
initial if the workitem does not have any agents. I would recommond you to use SAP_WAPI_GET_WI_AGENTS. So you can filter them
by using the above FM
4. Submit the report RSWIWILS with the workitem ( without agents ) to execute agent rules
display error work items list in the output.
Use FM SAP_WAPI_WORKITEMS_BY_ERROR to get the list of workitem or select workitems from table SWWWIHEAD where, WI_STAT = 'ERROR' and WI_CD = current date.
Hoping that this can help you.
Thanks and regards,
SNJY -
Urgent How to Code Custom program to get_data and Set_data
Hi,
I am using BADI to enhance the vendor master screen.
The Badi were implemented as per OSS 580266.
Subscreen is appering, new buttion is working fine.
But how to communicate between my custom program's PBO , PAI to Badi's GET_DATA
and SET_DATA.
Is any one got any sample code?
Thanks for the help
Rgd.Hiii John Wu,
Thanks for your reply,
And i have a little bit confuse. I mean, now my project available in SAP Netweaver Developer Studio. I have 2 DCs the first DC for User Interface and the second for EJB. where do i have implement servlet in each others or i need to create and implement at another DC. How to implement it? sorry for somethings write above so I am a new comer for SAP development.
Thank you! -
How to See logs for custom programs from without the logviewer in NWA
Hello Experts,
The JavaAS developers want to see the logs for their custom programs from without the logviewer in NWA.
Do you have any experience or know of any reference materials to instruct them on where to write their logs, and how to configure NWA to see them?
Thanks
Jibin.Hello Jibin,
Your developers should familiarize themselves with the Logging Framework of the J2EE Engine.
Here is the guide:
http://help.sap.com/saphelp_nw04/helpdata/EN/a2/15ab41d60bcb46e10000000a155106/frameset.htm
If they use the Logging Framework you would be able to access the logs through NWA.
Regards,
Ventsi Tsachev
Technology Development Support (J2EE Engine)
SAP Labs, Palo Alto, Ca (USA) -
How to call standard SAP method in the Custom Program ?
Hi,
i need to call sap standard method 'OpenItemRollinout' in my custom program. For the SAP Standard method 'OpenItemRollinoun' the BOR(Business Object) is 'PAYSCHEME'. So how to call the SAP standard method in the custom program ???Hi,
In the method that you have provided only one function module is being used so better use the FM and copy the remaining code based on ur requirement.
FM is ISU_S_PAYSCHEME_ROLLIN_ROLLOUT.
Regards,
Vijay. -
How to send multiple customer statements by email using RFKORD11 program.
Hi All,
How to send multiple customer statements by email using RFKORD11 program. Is it possible?
As of now we copied the stanadard program and sending the customer statements by email, one by one.
if i execute the z program it will show the customer statement and send mail option.
if i click send mail it will send that customer statement to the corresponding customer.
then again i need to click back, it will show next customer statement and click on send mail.
Pl guide me, if any one worked on this program.
thanks in advance.
Regards,
MaheshTry execute the program in the background to see if that helps.
-
How to create a workflow dealing with customizing program(Add-on program)
Dear ALL,
I am new to workflow and I was assigned to create a workflow related to an customizing program(Dynpro screen).
I know we can refer to some std. template for workflow developing.
However, I don't know how to create a brand new workflow to deal with the add-on program and table.
My major difficulty is how to create a new object:
--How to create the new event to track the operation of add-on program, for example, push 'submit' button.
--How to create method to update the add-on table.
I do hope someone could give me some guidance.
Thank,
GaryThis is a Function Module that triggers an event ob Business Object tht you will create by making a subtype of Business Object. Use Transaction Code SWO1 to do so.
FUNCTION zwf_process_trip.
""Local Interface:
*" IMPORTING
*" VALUE(I_EMP_NUMBER) TYPE PERNR_D
*" VALUE(I_EMP_TRIP) TYPE REINR
INCLUDE <cntn01> .
DATA:i_emp_details TYPE STANDARD TABLE OF p0001, "Employee Details
wa_request TYPE p0001, "Workarea for Employee details
v_country_grp TYPE molga, "Country SubGrouping
v_object_key TYPE sweinstcou-objkey. "Key for the buisness object ZWOBUSTRIP
CONSTANTS: c_bo_trip TYPE swo_objtyp VALUE 'ZWOBUSTRIP',
c_event_trip TYPE swo_event VALUE 'TripCreate',
c_infy_type_1 TYPE infty VALUE '0001'.
Event Container declaration
swc_container i_event_cont.
swc_create_container i_event_cont.
Reading the INFO TYPE 0001 to obtain the
Employee details
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
pernr = i_emp_number
infty = c_infy_type_1
begda = sy-datum
endda = sy-datum
TABLES
infty_tab = i_emp_details
EXCEPTIONS
infty_not_found = 1
OTHERS = 2.
SY-SUBRC check is not required as the error
handelling will be done by WorkFlow rule
resolution.
CLEAR wa_request.
READ TABLE i_emp_details INTO wa_request INDEX 1.
IF sy-subrc = 0.
Retrieving the Country SubGrouping for the employee
SELECT SINGLE molga
FROM t001p
INTO v_country_grp
WHERE werks = wa_request-werks
AND btrtl = wa_request-persk.
ENDIF.
Sending the relevant data to event container
swc_set_element i_event_cont 'EmpId' i_emp_number.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
swc_set_element i_event_cont 'PersonnelArea' wa_request-werks.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
swc_set_element i_event_cont 'CountryGrouping' v_country_grp.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
swc_set_element i_event_cont 'EmpSubGrp' wa_request-persk.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
swc_set_element i_event_cont 'EmpTripId' i_emp_trip.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
Raising the event to trigger the workflow
v_object_key = i_emp_number.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = c_bo_trip
objkey = v_object_key
event = c_event_trip
TABLES
event_container = i_event_cont
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
COMMIT WORK.
ENDFUNCTION.
SWEL Transaction Code is used to track event linkage.
SWUS is used to test Workflow manually with single test.
<b>Please reward points if useful</b>
Thanks
Arghadip -
How to trigger a standard workflow task in customizing program?
Hi experts,
Does any1 have any ideas about how to trigger a standard workflow task in customizing program? Is there any FMs can be used to do this?
Thx in advance. Points will be rewarded.
Vincentwill followiign Fms help -
'SWE_EVENT_CREATE'
SWR_START_WORKFLOW
SWU_START_WORKFLOW -
Urgent!! How to call a custom transaction or an ABAP program in BSP?
Urgent!! How to call a custom transaction or an ABAP program in BSP?
We are pretty new on BSP. Would be very appreciated if any expert here give us the detailed steps on how to build up the application to just call a custom transaction (e.g., t-code: ztest) or an ABAP program. Would we have to create a button or event handler to do that? And the detailed steps?
Thanks in advance and we will definately give you reward points!hi Durairaj,
During the time to wait for your answer, we copied Bernd's code from your last link, but when activating it, get the 1st error msg:
Field "CLIENT" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement."DATA" statement. The error shows up here:
<td>
<htmlb:inputField id = "client"
value = "<%= client %>" />
</td>
Then we added Client to the page attribute and define it as type String, then get another error:
The field "EVENT" is unknown, but there is a field with the similar name "EVENT_ID"."EVENT_ID". This error shows up at the beginning in the Event Handler:
OnInputProcessing:
code
event handler for checking and processing user input and
for defining navigation
event handler for data retrieval
event = cl_htmlb_manager=>get_event( runtime->server->request ).
IF event->name = 'button' AND event->event_type = 'click'.
button_event ?= event.
How to resolve this unknown Event error, need to define in Page Attribute tab? but with what type?
Actually we only want to run an ABAP4 program in BSP, the code is complicated, could you show us an easy way of doing this in BSP?
Maybe you are looking for
-
Hi i have configured modplsql and used DADs to execute some packages from my database to run my web application. When i create DADs on Application server 9i release 1, it works fine but on 10g(9.0.4) it is giving my following error I really cant unde
-
Finding bom component item stufe = 1 without subitems
Hi friends, We have developed a bom explosion report, Here we got the output as folows. level component number component desc uom materials A is have the following sfg. 1 stufe = 1 ..2 1 ..2 ...3 here we are getting the subitem levels correctly. 1. b
-
IOS 7.0.4 says I lost over 2 GB into thin air
I upgraded to the new iOS, but when it synced back up I went from having 300 MB of space left to having 2 GB too much. I can't load all my music or podcasts now. I didn't change anything or add anthing to my iPhone. What's the problem?
-
Multiple yosemite problems (iMac late 2009 2.8 i7, 12g ram)
Installed yosemite, lots of strange issues, including: - video's won't play (Facebook, iPhone, iTunes) - i get sound, but no moving pictures. youtube movies play fine, until i try to make them fullscreen. - hotcorners randomly result in a 'switch use
-
Import tline to rt_lines/ Asterisk being created in tdformat field?
When this SAP code executes an asterisk is being created in the tdforamt field for tlines that is changing the text'x format? Anybody know what is happening? Thanks. import tline to rt_lines from database stxl(tx) client rt_client