Skip to Content
0

Query Master Data of InfoObject in Expert Routine (DTP)

Apr 27, 2017 at 01:47 PM

45

avatar image
Former Member

I would like to read the Master Data of an InfoObject and copy one single value into another InfoObject during an Expert Routine.

This is my Master Data of InfoObject KYFD:

I want to read this 0,02 value and write into an InfoObject with DEC type.

How am I supposed to do that, I do no neccessarily need code, a description of the path already helps me to move on.

sap-masterdata.jpg (34.9 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jelena Perfiljeva
May 02, 2017 at 08:49 PM
0

[Nervously looking around for Matthew Billingham] Errr... No idea what is this "InfoObject" or "Expert Routine" or DTP you speak of, but I see Data Browser and keyword "table", so I'm guessing it's something along these lines:

SELECT SINGLE /BIC/YSCALE INTO <something>
FROM /BIC/MYKYFD
WHERE /BIC/YKYFD = 'FACTOR" (or whatever the criteria is). IF SY-SUBRC IS INITIAL. <InfoObject with DEC type> = <something>.
ENDIF.

Obviously stuff in <> needs to be replaced with proper variables. It looks like YSCALE is also DEC type, so should be no conversion issues.

Google -> write into infoobject site:sap.com and such for more info.

Share
10 |10000 characters needed characters left characters exceeded