Application Development 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: 

SAP Infoset Code Section Restriction Example

Former Member
0 Kudos
599

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?

1 ACCEPTED SOLUTION

Former Member
0 Kudos
219

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

3 REPLIES 3

Former Member
0 Kudos
220

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

0 Kudos
219

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?

0 Kudos
219

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