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: 

How to use C System Function 'DY_OBJ_SET'

Nidhi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

I have a requirement to update the data displayed on a table control dynamically for any screen.

I am using C System Function 'DY_OBJ_GETALL' in order to retrieve the table control data which is about to be displayed on a table control. However, I am not able to update this data using command 'DY_OBJ_SET'.

Please help to provide the parameters that i need to pass in this command to update the table control data before the screen is rendered.

System Function for reading data of table control

CALL 'DY_OBJ_GETALL'
ID 'VERSION' FIELD 4
ID 'TYPE' FIELD 'KAYAK'
ID 'OTAB' FIELD dyobj[].

3 REPLIES 3

raymond_giuseppi
Active Contributor
0 Kudos

Look at FM CAT_DYNPRO_PBO for a sample using DY_OBJ_GETALL and DY_OBJ_SET.

Nidhi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Raymond,

Thanks for your response. I am aware of FM CAT_DYNPRO_PBO.

But when i am using the C System Function

CALL 'DY_OBJ_SET'

ID 'OTAB' FIELD dy_tab[]
ID 'ITAB' FIELD df_tab[]
ID 'VERSION' FIELD 4.

The changed data doesn't get reflected on the screen.

Could you please help on what data i need to pass in IDs 'OTAB' and 'ITAB'.

Does OTAB means old table control data and ITAB means updated table control data?

Thanks in advance for your response.

Nidhi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Gentle reminder regarding the issue i mentioned. I am working on an urgent requirement.

Thanks.