Application Development and Automation 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: 
Read only

HCM_GET_ORGSTRUCTURE_AS_XML

Former Member
0 Likes
454

Hi All,

I am using following function module HCM_GET_ORGSTRUCTURE_AS_XML, for which input is view id and output is XML string in binary format. Is there any way like function module or Satandard program that i would get the output as XML file rather than XML string.

Any posts reply to this one are appreciable.

Regards,

Sagar

3 REPLIES 3
Read only

Former Member
0 Likes
409

Hi Sagar,

you will get data into xstring when we use HCM_GET_ORGSTRUCTURE_AS_XML functional module.after getting data pass it to the functional module SCMS_XSTRING_TO_BINARY.now you will have the binary data in a table.pass this internaltable to gui_download with FILETYPE = 'BIN'.

rewards points if helpful.

Read only

0 Likes
409

Hi Krishna,

Here, I've to display the Organisation Stucture in the Webdynpro (ABAP) Page. I've tried using the FM RP_PNP_ORGSTRUCTURE. But it's giving the error saying "Exception condition "CNTL_ERROR" raised". I came to know that it's due to the fact that this FM is flashing the ABAP Screen to display the Organisation Structure which is not possibel through Webdynpro.

I found the FM HCM_GET_ORGSTRUCTURE_AS_XML which will return the XML string that can be converted and displayed in the Webdynpro Page. But I don't know how to find the input parameters for this (i_ViewID, I_ORGSCENARIO etc...). Could you pls tell me where to find these parameters OR tell me if any other way to display this Org. Structure in the Webdynpro for ABAP.

Thanks alot in advance...

Ram.

Read only

0 Likes
409

Hi,

did you manage to call the FM, what is the view_id parameter.

Please give any relevant information you have on this.

thanks,