Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Get role text via BAPI_HELPVALUES_GET

Former Member
0 Kudos

HI,

i am working to get the role description as described in the below document .

can some one can help me to achive this via BAPI_HELPVALUES_GET ?

Regards

Nina

1 ACCEPTED SOLUTION

Bernhard_SAP
Employee
Employee
0 Kudos

Hi Nina,

alternatively you can get all the texts (also long text) with FM PRGN_RFC_READ_TEXTS...

b.rgds, bernhard

12 REPLIES 12

Bernhard_SAP
Employee
Employee
0 Kudos

Hi Nina,

alternatively you can get all the texts (also long text) with FM PRGN_RFC_READ_TEXTS...

b.rgds, bernhard

0 Kudos

Hi Bernhard,

Thanks but this FM is not release to customer ,

there is a way to do it with BAPI_HELPVALUES_GET ?

i read this

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/668e6629-0701-0010-7ca0-994cb7de...

E.g. for roles information, see section 1.6.2.4 but i don't know how to use it?

Regards

Nina

Edited by: Nina C on Sep 22, 2009 12:24 PM

0 Kudos

Hi,

you can get the list of roles with the following parameters.

OBJNAME = USER

METHOD = ACTGROUPSASSIGN

PARAMETER = ACTIVITYGROUPS

FIELD = AGR_NAME

Btw that BAPI is well documented. You can use it for any parameter used in BAPI. You just need to identify Business object and corresponding method. Both things can be easily done in transaction BAPI.

Cheers

0 Kudos

Hi Martin

Thanks !

there is a way to get description for specific role which is store in agr_define table ?

Regards

Nina

Edited by: Nina C on Sep 22, 2009 4:40 PM

0 Kudos

Yes, it is possible. Please read a documentation for this BAPI in SE37 or BAPI. I suggest to check parameter SELECTION_FOR_HELPVALUES. You can use this structure to pass your selection criteria to BAPI.

Cheers

0 Kudos

Hi Martin,

Thanks ,

i try but i cant find the description(i read the FM docu ) for single specific role can u help please ?

Regards

Nina

0 Kudos

You should try harder. There is a separate page for the structure SELECTION_FOR_HELPVALUES. You just need to click on that structure. Basically it works like any other selection criteria in ABAP. So you want to restrick your selection for field ARG_NAME to value <ROLE_NAME>. Just set sign to "I" and option to "EQ".

Cheers

0 Kudos

HI ,

I try it but i get all the roles with there description .

i put in the selection table

OBJTYPE                         USER
OBJNAME
METHOD                          ACTGROUPSASSIGN
PARAMETER                       ACTIVITYGROUPS
FIELD                           AGR_NAME

SELECT_FLD                     S OP LOW                            HIGH

/IPRO/AUTHOR                   I EQ

/IPRO/AUTHOR is example of the role which i need the description of it

and i get all the BE like 1000

Thanks

Nina

Edited by: Nina C on Sep 23, 2009 4:29 PM

0 Kudos

Hi,

it should be SELECT_FLD = 'ARG_NAME' and LOW = '/IPRO/AUTHOR'.

Cheers

0 Kudos

HI Martin

Thanks u are great!

Regards

Nina

Former Member
0 Kudos

Hi,

If I understood your question correctly. You want the text names of the roles maintained in agr_define table. If this is the case, you can refer to the table AGT_TEXTS as it stores all the text names of the SAP roles maintained in AGR_DEFINE.

Let us know if you need any more information on this.

Thanks.

0 Kudos

Hi

i need to find the role description for specific role via BAPI_HELPVALUES_GET .

and without direct select from agr tables or unreleased api .

Thanks

Nina