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

HRP1001

Former Member
0 Likes
522

Hi Gurus,

I am a BW developer, I am trying to write a routine to extract information from table HRP1001. From table HRP1001, if RELAT = 012, then store OBJID = ivar1(local field) and then do another check like RELAT=008 and OBJID = ivar1 then store SOBID = ivar2. Basically i want to write this routine in rtansaction SMOD, project = RSAP0001 and transaction data user exit.

Any help greatly appreciated.

Kind Regards,

Jaya.

Hi Gurus,

I am a BW developer, I am trying to write a routine to extract information from table HRP1001. From table HRP1001, if RELAT = 012, then store OBJID = ivar1(local field) and then do another check like RELAT=008 and OBJID = ivar1 then store SOBID = ivar2. Basically i want to write this routine in rtansaction SMOD, project = RSAP0001 and transaction data user exit.

Any help greatly appreciated.

Kind Regards,

Jaya.

2 REPLIES 2
Read only

Former Member
0 Likes
459

F1 on Select and Provide.

Read only

Former Member
0 Likes
459

Hello,

I assume you want to fill some fields in a data source during extraction to BW/BI, because that is what this customer exit is intended for. Your logic isn't clear to me but I'll provide you with a skeleton which hopefully will get you started.


case i_datasource.
when 'NAME_OF_YOUR_DATASOURCE'.

data wa type name_of_the_datasource_extract_structure.

loop at c_t_data into wa.
select single x y z from hrp1001 into corresponding fields of wa where "your condition
.
"Change values of fields in wa further if you want
modify c_t_data from wa.

endcase.

Best regards,

Erik

Edit: The code is written in include ZXRSAU01 in FM EXIT_SAPLRSAP_001 of enhancement RSAP0001

Edited by: Erik Carlborg Fröberg on Jan 23, 2009 5:18 PM