ABAP WD: access to context
Hello,
I need to access context nodes of my application and see if they contain any values.
I want to do it in WDDOINIT method.
How can this be done?
Is there such an expression wdContext->get_nodes or something similar?
Thank you.
Hi Georgy,
Check http://help.sap.com/saphelp_nw04s/helpdata/en/1e/75e3d86397bc4db8f579d9f020f661/frameset.htm
wd_context->get_child_node( wd_this->wdctx_my_node ).
Every context node implements interface IF_WD_CONTEXT_NODE (http://help.sap.com/saphelp_nw04s/helpdata/en/fd/be5b4150b38147e10000000a1550b0/frameset.htm).
Best regards, Maksim Rashchynski.
Similar Messages
-
How To Create ABAP Code For HR Context Sensitive Structural Authorization
Hello,
We have created a HR Custom Program which IS NOT built off the PCH or PNP Logical Database. As a result, we need to manually create ABAP code for HR Context Sensitive Structural Authorization Check in our custom HR program. Via HR Context Sensitive Structural Authorizations, we are restricting access to personnel numbers and the underlying HRP* tables.
Any assistance would be greatly appreciated with the identification of the SAP standard function modules (Ex. RH_STRU_AUTHORITY_CHECK, HR_CHECK_AUTHORITY_INFTY, HR_CHECK_AUTHORITY_INFTY , etc) used in HR Context Sensitive Structural Authorization Check, how they are used to control HR Structural authorization (P_ORGINCON), and some sample code.
Thank you in advance for all your assistance,
Ken BowersHello Ken
You can use the interface methods IF_EX_HRPAD00AUTH_CHECK to get the same structural authorization as you can see in PA20/PA30. You need to use the methods set_org_assignment and check_authorization for this purpose. For more information you can refer to include FP50PE21 from line 237 onwards till 270.
Regards
Ranganath -
Securing the HR data against unauthorized ABAP program access
Dears,
Is there a way to secure HR data against unauthorized user-defined ABAP program access; in other words is there a way to prevent a the HR tables access from within a newly created ABAP program (SELECT statement) ?
Thanks.
RedaHi, there's no way to prevent programs from accessing db-tables. Instead, you'll have to limit access on programs.
Especially, do not allow abap developers to run programs in your productive system. Encourage developers to implement authority-checks in their code. Consider well, who and who not, is to be allowed to run which program.
regards
Jörg -
Access Control Context in Engineering Record screen
Hello Gurus,
I need to remove the Access Control Context and Owning Tet field from the PLM Engineering Record screen. Is it possible to do with configuration to hide these fields?
I removed from "Specify Object Types for PLM Authorization check".
Kindly advice.
Thanks & Regards
JoHi Jo ,
You cannot hide it via configuration as access control context is coming from component reuse . I created it while my team was developing PLM ECR in SAP Labs India.
One possible approach is to do a custom development to hide this field .
Thanks & Regards,
Abhishek. -
How can i get the ABAP developer access key?
Thanks you all!!
I tried so many times but i got the error
Authorization Error! Currently you do not have authorization to use this function. To request the authorization, please contact one of the administrators at your company:
Then I reported my administrator, but unfortunately he also got the same Authorization Error!!
I don't know, the correct way for getting the access key. -
Authorization in Access Control Context
Hi Experts,
Hi have a authorization problem for some users in Access Controll Context ,
1. We have created an user in SAPGUI and assigned a role similar to SAP_PLMWUI_DESIGNER( we copied it and made some modifications, but nothing that should matter)
2. Then we assigned this role to a context and assigned the user to the role in SAP WUI.
3. But when we logon with this user and try to display a document which is assigned to/or owned by(we tried both) the context, we get the following message:
Document DRW/xxxxxx does not exist or access authorizations are missing
What authorization is missing, any thoughts?
Kind regards
MikaelHi Santosh,
thanks for quick reply,
All needed activities are checked for PLM_DIR, for the moment I am not able to assign SAP_PLMWUI_OBJECT_REUSER but this should not be neccesary, should it.
I have the same problem for a user assigned to the role SAP_PLMWUI_DESIGNER.
Because of authorization issues we use all the single roles in each composite role above.
-> ie , in acc I haven't assigned the user to one composite role but all single roles separately, can this be the problem?
or can it be something else that I missed?
Kind regards
Mikael -
Hi
As we know that we can access Component Context Attribute by Component Controller in view as:
wdThis.wdGet<Component_Name>Controller().wdGetContext().currentContextElement().
get<Component_Context_Attribute>
whereas wdThis.wdGet<Component_Name>Controller() is the Component Controller.
So, in the same way, I was just wondering do we have any way to access the View Context through View Controller.
Generally for view context, we use wdContext which is (= wdThis.wdGetContext() ) means accessing view context thr' view.
i want to access View context thr' View Controller which is wdThis.wdGetAPI().
Thanks....Hi
Get the detailed description and understanding of these webdynpro jorgens from [here|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0ba2c45-0518-2a10-73be-9b785e10aef1]
Best Regards
Satish Kumar -
Access to context of COMPONENTCONTROLLER (ABAP)
Hello,
I need to access componentController from one of the view that I have.
How can I do it?
Thank you.WD_COMP_CONTROLLER
is declared automatically
and is available in all methods.
so WD_COMP_CONTROLLER->method is possible.
Use code wizard to add. Simple ...
If you want access to the context of controller,
the either create a method in the controller that
reads the controller context and call that method as above
or better, just map the context in view to the component
controller so that data is automatically copied to local view context.
Regards
Phil -
Not able to access the context in custom functoid
Hi,
Below is the code referred from
https://contextaccessor.codeplex.com/,
Implemented this Custom Pipeline component in the Resolve Part stage:
The below code under Class = AccessContext
[ThreadStatic]
internal static IBaseMessageContext context;
Public IBaseMessage Execute(IPipelineContext pContext, IBaseMessage pInMsg)
context= pInMsg.Context;
return pInMsg;
Custom Functiond:
When i try to access in the custom functoid,
IBaseMessageContext msgContextFunctoid= AccessContext.context;
"msgContextFunctoid" this is returned as "null"
What i am doing wrong here. Please help.
Thanks,
SathishI would suggest to use latest contextaccesor functiod from below location
improved-context-accessor-functoid
You can find the DLL in /ContextAccessor/bin/Debug
Maps used in a Receive Port
Grab the .dll
Save the .dll to \Microsoft BizTalk Server \Developer Tools\Mapper Extensions
Save the .dll to \Microsoft BizTalk Server \Pipeline Components
GAC both assemblies
Add the functoids to your functoid Toolbox
Toolbox>Right Click>Choose Items…>BizTalk Mapper Functoids
Drop the functoid into your map, and configure it
Add the ContextAccessorProvider pipeline component to your pipeline Toolbox
Toolbox>Right Click>Choose Items…>BizTalk Pipeline Components
Drop the ContextAccessorProvider pipeline component into a pipeline at the ResolveParty stage -
ABAP MS Access connection program not running in SM37
hie gurus ,i really need your help. i have created a program to extract data from an Ms Access database at certain intervals.
the program runs well if you execute from the ABAP workbench. How ever if i schedule it as a back ground
process its not finishing processing , it remains active through out. i can process it via debugger JDBG in SM37
but on its on it remains active status. the OLE objects i am using are as follows(they):
DATA: conn TYPE ole2_object,
rsdb TYPE ole2_object,
sql TYPE c LENGTH 2000.
CREATE OBJECT conn 'ADODB.Connection'.
CREATE OBJECT rsdb 'ADODB.Recordset'.
CONCATENATE 'Provider=Microsoft.Jet.OLEDB.4.0;' 'Data Source=D:\Documents\ Wm.mdb;'
INTO sql.
CALL METHOD OF rsdb 'OPEN'
EXPORTING #1 = sql
#2 = conn
#3 = '1'.
DO.
CALL METHOD OF rsdb 'getstring' = sql
EXPORTING #1 = '2' "Do not modify!
#2 = 1 "Do not modify!
#3 = '|' "Do not modify!
#4 = '|'. "Do not modify!
IF sy-subrc EQ 0.
REFRESH it_temp.
SPLIT sql AT '|' INTO TABLE it_temp.
LOOP AT it_temp INTO wa_temp.
CASE sy-tabix.
WHEN 1.
wa_prd-field1 = wa_temp-value.
WHEN 2.
wa_prd-field2 = wa_temp-value.
WHEN 3.
wa_prd-field3 = wa_temp-value.
WHEN 4.
wa_prd-field4 = wa_temp-value.
when others.
ENDCASE.
ENDLOOP.
APPEND wa_prd TO it_prd.
CLEAR wa_prd.
ELSE.
EXIT.
ENDIF.
ENDDO.
FREE OBJECT conn.
FREE OBJECT rsdb.
thanks in advance.Dear bhaskar:
Thanks for your reply. We have considered balancing the system to the other node or reboot the system to free resources, in order to re-create the shared memory, but in the past, the balancing process (move resources from one node to the other) has caused problems. Since this is a critical system, stopping (or balancing) is not an option right now, and updating the kernel requires an ABAP stack reboot plus the kernel change : any changes in system configuration requires a longer approval/planning process than a reboot.
Moreover, the OS collecting system and its display in OS06/ST06 has worked fine until now.
Does anyone knows if a reboot has solved this kind of problem in a similar situation?
Thanks in advance
José Enrique -
ABAP Query: Access variables in ABAP Program through InfoSet Query.
Hi,
While generating a report using ABAP Query Tool, how can we access the variables in the ABAP Program in the InfoSet Query?
Thanks in Advance!!!HI,
Dear, it seems that you have changed the query in SQ02 and then just save it and not generated.
or may be after generation again clicked on SAVE button.
So untill unless you will not generate the query, it won't work.
Secondly, by chanegs in the query, i don't think it changes the name of the main program.
Regds,
Anil -
WebDynpro Abap MSS: Access via "NULL" object reference not possible
hi,
My customer send me the following link to Appraisal Documents (Manager) MSS
http://server.sap.portal:1810/sap/bc/webdynpro/sap/HAP_START_PAGE_POWL_UI_MSS/
http://a.imageshack.us/img685/5959/mss3.jpg (logon in Costumer SAP System)
http://a.imageshack.us/img225/4008/mss4.jpg (Appraisal Documents (Manager) MSS run succesful)
Link that also run by the SICF in my customer is correct.
But when I run in my SAP System see the following error
http://a.imageshack.us/img715/5355/mss1j.jpg (SCIF in my SAP System)
http://a.imageshack.us/img44/5346/mss2.jpg (SCIF - test service)
http://a.imageshack.us/img840/1677/mss2b.jpg (Error, without window logon)
<b> Access via "NULL" object reference not possible</b>
Other question is: In what part of MSS is this option? because the ESS is in Career and Jobs / Appraisals Documents
http://a.imageshack.us/img683/9900/careerjob3.jpg (Employee Self Service / Career and Jobs / Appraisals Documents)
thanks for your posts and answer
IvanHello
The most important information is (again) missing: which object reference is initial ("NULL")?
The ABAP dump will tell you.
Below I show an example how this can happen (and be avoided):
LOOP AT lt_accountings INTO ls_accounting.
lo_po_account ?= ls_accounting-accounting.
ENDLOOP.
" QUESTION: Are you sure that lo_po_account hold an instance ???
" If LO_PO_ACCOUNT is empty the following statement will give you the dump.
ls_mepoaccounting = lo_po_account->get_data( ).
" And that is how to avoid this (at least the dump. Whether your logic is still ok is another matter...)
CHECK ( lo_po_account IS BOUND ).
ls_mepoaccounting = lo_po_account->get_data( ).
Regards
Uwe -
Hello,
we have a java-program, that accesses data via jdbc to a mysql-database.
Now we want to migrate the mysql-table to abap-table.
How can we access from the java-program to theese migrated abap-tables via jdbc?
Regards OliverOliver,
If you want to access those tables from SAP, then you have to use the Java Connectors (
JCO).
Please write the more details abount the java IDE and OS, which you are using I will send you appropriate help.
Thanks -
Are there any risks to use native sql in ABAP to access external DB
here is a requirement to use native sql in abap program to access external DB to load some data into sap. Are there any risks and effects which SAP not recommend ?
Can anybody show some official document to me because I want to know some risks and dangerous to report to my manager..thanks very much.hi Anversha s
thank you for your reply
I means what's the risk when to use native sql to access external DB..
can you show me some examples about open sql which is used to access external DB...
Now I am investigating the technique about the connection
between SAP (by abap program) and external DB...the supporter suggestion is to use native sql to access external DBs.but my manager is afraid of the risks when to use native sql,So I have to report the effective document (example: SAP official document) to explain to my manager.
thanks very much -
Accessing Form context fields in javascript in Adobe forms
Hi,
I want to hide some elements in the Adobe form with respect to the value of a Form context field.
If this field is mapped to an element in the Form layout then we can access it using data.<field>.rawValue, but this field is not mapped to any element on the layout.
Please help me if anyone knows it.
Regards,
JashuaThe coding you are showing is FormCalc used by LiveCycle Designer.
This is the forum for Acrobat Acrobat forms, there is a separate series of forums for LiveCycle Designer. If you are using LiveCycle Designer please post in the appropriate LiveCycle forum.
Maybe you are looking for
-
ITunes no longer connects to many of the radio stations that it used to
I recently patched the new upgrade version of iTunes. I decided to wait this long so they could work out some of the bugs first. Apparently it still has some. And this post applys to both the Mac and Windows versions. I used to enjoy listening to the
-
ITunes won't open when iPod is docked
Independently, both my iTunes and my iPod work fine. I always leave my iPod docked so it will stay charged, but when I click to open iTunes, the icon in the dock just bounces ; it never opens. If I pull the iPod out of the dock (even though it says D
-
Script to install and enable file and printer sharing windows 7
Hello I posted this question on the Microsoft Partner Windows 7 forum and the support person told me that I should post it here. I have a Customer that was running Novell. We will migrate them to Active Directory. The question I have is. they did r
-
Does anyone know what filter I can use in timelin to replicate this video noise reduction?
-
Is there a download to help this?