<?xml version="1.0" encoding="UTF-8" ?>
		<rss version="2.0">
		 <channel>
		  <title><![CDATA[SAP functions for pre-population]]></title>
		  <link>https://support.arch-global.com/?FLM-PREPOP</link>
		  <description></description>
		  <pubDate>Sat, 16 May 2026 22:02:01 GMT</pubDate>
		  <generator>Fog Creek Software FogBugz 8.8.53.0</generator>
	
				<item>
					<title><![CDATA[Finding a team for a manager]]></title>
					<link>https://support.arch-global.com/default.asp?FLM-PREPOP.2.23</link>
					<description><![CDATA[<strong>Chris Scott: </strong>Manually we can get this with multiple searches on table hrp1001 - for example:data: l_pid        type bapiusr01-employeeno,        l_return     type bapiret2,        l_sobid      type sobid,        l_sobid_t    type table of sobid,        l_employee   type sobid,        l_employee_t type table of sobid,        l_objid      type hrobjid,        l_plvar      type plvar value '01',        l_name       type emnam,        l_grade      type persk,        l_pernr      type persno,        l_form_data  type /flm/form_data,        l_form_data_t type /flm/sfs_form_data_t.** 1 Find personel number of the manager  call function 'BAPI_USR01DOHR_GETEMPLOYEE' destination 'E5F'    exporting      id             = im_uname    importing      return         = l_return      employeenumber = l_pid.*  l_objid = l_pid.** 2 Get team for the current manager  select sobid from  hrp1001 into l_sobid up to 1 rows         where  otype  = 'P'         and    objid  = l_objid         and    plvar  = l_plvar         and    rsign  = 'B'         and    relat  = '008'         and    istat  = '1'         and    begda  le sy-datum         and    endda  ge sy-datum         and    sclas  eq 'S'.  endselect.  check sy-subrc eq 0.  move l_sobid to l_objid.  select sobid from  hrp1001 into l_sobid up to 1 rows        where  otype  = 'S'        and    objid  = l_objid        and    plvar  = l_plvar        and    rsign  = 'A'        and    relat  = '012'        and    istat  = '1'        and    begda  le sy-datum        and    endda  ge sy-datum        and    sclas  eq 'O'.  endselect.*  check sy-subrc eq 0.  move l_sobid to l_objid.  select sobid from  hrp1001 into table l_sobid_t         where  otype  = 'O'         and    objid  = l_objid         and    plvar  = l_plvar         and    rsign  = 'B'         and    relat  = '003'         and    istat  = '1'         and    begda  le sy-datum         and    endda  ge sy-datum         and    sclas  eq 'S'.*  check sy-subrc eq 0.*  loop at l_sobid_t into l_objid.    clear l_sobid.    select sobid from  hrp1001 into l_sobid up to 1 rows             where  otype  = 'S'             and    objid  = l_objid             and    plvar  = l_plvar             and    rsign  = 'A'             and    relat  = '008'             and    istat  = '1'             and    begda  le sy-datum             and    endda  ge sy-datum             and    sclas  eq 'P'.    endselect.    append l_sobid to l_employee_t.  endloop.** 3 Get the names and grades for each team member  loop at l_employee_t into l_employee.    l_pernr = l_employee.* Get employee name, grade, business area, position    select  ename persk  up to 1 rows from pa0001           into (l_name, l_grade)           where  pernr  = l_pernr           and    endda  ge sy-datum           and    begda  le sy-datum.    endselect.    clear l_form_data.    l_form_data-name = l_pernr.    l_form_data-value = l_name.    append l_form_data to l_form_data_t.  endloop.  ex_form_data[] = l_form_data_t[].]]>
					</description>
					<pubDate>Fri, 24 Jul 2009 08:49:58 GMT</pubDate>
				</item>
			
				<item>
					<title><![CDATA[Billing document output (SD invoice print)]]></title>
					<link>https://support.arch-global.com/default.asp?FLM-PREPOP.2.18</link>
					<description><![CDATA[<strong>Chris Scott: </strong>Get data with function RV_BILLING_PRINT_VIEW]]>
					</description>
					<pubDate>Fri, 24 Jul 2009 08:32:13 GMT</pubDate>
				</item>
			
				<item>
					<title><![CDATA[Get personnel ID for a user.]]></title>
					<link>https://support.arch-global.com/default.asp?FLM-PREPOP.2.17</link>
					<description><![CDATA[<strong>Chris Scott: </strong>It's an easy infotype selection (see method /flm/sample=>uname_get_pernr)Standard approach is to use BAPI BAPI_USR01DOHR_GETEMPLOYEE]]>
					</description>
					<pubDate>Fri, 24 Jul 2009 08:28:41 GMT</pubDate>
				</item>
			
				<item>
					<title><![CDATA[Finding a line manager]]></title>
					<link>https://support.arch-global.com/default.asp?FLM-PREPOP.2.16</link>
					<description><![CDATA[<strong>Chris Scott: </strong>Try function RH_STRUC_GET and check the result_objec in case of empty positions.Try function HRHAP_SEL_MANAGER_OF_HIGH_ORG to find a higher-level manager if the position is empty.------Alternatively use function RH_GET_LEADING_POSITION to get the position ID of the team leader. (For example this is what SAP Workflow rule 157 does.)--------A manual approach is to repeatedly search table hrp1001 using the specific relationships from an employee to a position, postiton to an org unit etc. See method /flm/sample=>pernr_get_manager]]>
					</description>
					<pubDate>Fri, 24 Jul 2009 08:25:23 GMT</pubDate>
				</item>
			
				<item>
					<title><![CDATA[User name and address]]></title>
					<link>https://support.arch-global.com/default.asp?FLM-PREPOP.2.13</link>
					<description><![CDATA[<strong>Chris Scott: </strong>To get details of the logged on user use function SUSR_USER_ADDRESS_READ]]>
					</description>
					<pubDate>Fri, 24 Jul 2009 07:48:09 GMT</pubDate>
				</item>
			
				<item>
					<title><![CDATA[Read Text into a text field]]></title>
					<link>https://support.arch-global.com/default.asp?FLM-PREPOP.2.12</link>
					<description><![CDATA[<strong>Chris Scott: </strong>Use method /flm/sfs=>read_text_to_text_field to read a standard text and add it into a single field for form pre-population.For example: READ TABLE ex_data WITH KEY name = 'DELIERY_TEXT' INTO l_data.    l_index = sy-tabix.    CALL METHOD /flm/sfs=>read_text_to_text_field      EXPORTING        im_tdid     = 'F04'        im_spras    = wa_header-ekko-spras        im_tdname   = l_tdname        im_tdobject = 'EKPO'      IMPORTING        ex_text     = l_data-value.    IF l_item_row = '001'.      MODIFY ex_data INDEX l_index FROM l_data.    ELSE.      REPLACE 'ITEM.001' IN l_data-path WITH l_item_subform.      APPEND l_data TO ex_data.    ENDIF.]]>
					</description>
					<pubDate>Fri, 24 Jul 2009 07:40:18 GMT</pubDate>
				</item>
			
				<item>
					<title><![CDATA[Partner addresses]]></title>
					<link>https://support.arch-global.com/default.asp?FLM-PREPOP.2.11</link>
					<description><![CDATA[<strong>Chris Scott: </strong>To get partner address information use function WLF_GET_ADDR_KEY_FOR_PARTNER to return the address key, and then use method /flm/sfs=>adrnr_to_text_field to return just the address.]]>
					</description>
					<pubDate>Fri, 24 Jul 2009 07:37:20 GMT</pubDate>
				</item>
			
		 </channel>
		</rss>
	