2008 Jun 10 2:15 PM
Dear SAP Experts,
Do you have an example when creating an Infoset (e.g. VBRK connect to VBRP), then on this infoset, restrict it to values where VBRK-VKORG = 1000?
Do you use the Code Section on Infoset for this? If so, could you tell me how to add this condition there?
2008 Jun 10 2:38 PM
for your Requirement, you need to type in the value
VBRK-VKORG = 1000
in the selection screen.
there will be a need to code in the infoset only if you need to add an additional field to the Output List
2008 Jun 10 2:38 PM
for your Requirement, you need to type in the value
VBRK-VKORG = 1000
in the selection screen.
there will be a need to code in the infoset only if you need to add an additional field to the Output List
2008 Jun 10 2:55 PM
Hi Sriram,
Actually, the original issue in our company is how to restrict queries based on the data, that is why I gave that example to make it look more straightforward
Ideally, when a user runs a SAP Query, on the selection screen, he clicks on the parameter VKORG, and for example, we have 100 companies in total, but he should only see 5 of which he belongs to as an employee of.
Any idea how to solve this problem?
2008 Jun 10 3:32 PM
in SQ02, if you click on the field you want to add code for and choose EXTRAS in the application tool bar
and go to Code tab on the right hand side window
Choose record processing and do your bit of code in it.
For setting break points you might need to use command
BREAK-POINT <ID>.
<ID> because it should nor stop for other also.
all the fields for which you have passed value in the selection screen,
the fields for which you have value from database is visible in debugging
You can plan what to do after getting to debugging screen i guess