Application Development and Automation 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: 
Read only

Fetch screen fields Line item wise

Former Member
0 Likes
866

Hi All,

I have a requirement where i've to display some popup messages based on some conditions in MIGO transaction when POST button is clicked.

For that i have done certain changes in a BAdI IF_EX_MB_MIGO_BADI~POST_DOCUMENT .

But i require to read the screen field for G/L account ie GOITEM-KONTO of screen number 0345.

the G/L account can be accessed thru internal table IT_MSEG-SAKTO in the method, but the problem is the screen field has been left blank and when POST is clicked, by the time this BAdi is reached, the value is filled. And i need to add few codes only when the screen field has been left blank.

I found out FM - DYNP_VALUES_READ . But this reads only header screen data, so i'm unable to retrieve the line item wise G/L account screen values.

Please help.

Thanks,

Ateet

5 REPLIES 5
Read only

Former Member
0 Likes
755

Hi all,

Any answer ??

Is there any way or any function module where i can fetch screen fields line item wise ??

Waiting,

Ateet

Read only

0 Likes
755

Hi!

What kind of answer are u expecting?

Actually I can't understand why u need to read it from screen when u have theese accounts in SAKTO field of IT_MSEG table.

Or I haven't caught something special?

Read only

0 Likes
755

Hi Petr,

I dont think u read the question properly.

The problem is the screen field has been left blank and when POST is clicked, by the time that BAdi is reached, the value is filled. And requirement is to execute some part of code only when the screen field for G/L account is left blank/not blank. I want screen field value , not the value which is in IT_MSEG.

While giving inputs in MIGO screen it is blank but by the time it reaches the BAdI where i've written the code its getting filled. I want the values from screen just before it gets filled.

I was hoping to find some FM like DYNP_VALUES_READ which fetches screen elements line item wise too.

I think i will have to try n search a different BAdI where i can get the screen values b4 updation.

Regards,

Ateet

Read only

0 Likes
755

I understand what u mean now. But anyway i suppose reading of screen data is not a solution. There are can be many items in the document but the screen is only one. So u will have account only from the last viewed one.

Read only

0 Likes
755

Hi Petr,

Yes that has been the problem from beginning. i hoped to get a FM like DYNP_VALUES_READ. But i dont think so there is any such way to fetch line item data from screens. Field Exit could be used but i dont think it will satisfy some other requirements.

Anyways i think i will have to go by LINE_MODIFY method in the BAdI and put checks whenever there are changes in screen field.

Thanks for the time Petr

Regards,

Ateet