2009 Jan 23 2:53 PM
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.
2009 Jan 23 2:55 PM
2009 Jan 23 4:17 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |