Skip to Content
0
Former Member
Nov 24, 2009 at 03:40 PM

Screen Exit in MIGO transaction

153 Views

Hi All,

My requirement is to add new tab in the item level of the transaction MIGO.

For this purpose, I found the BADI MB_MIGO_BADI in which I am making use of methods PBO_DETAIL, PAI_DETAIL, LINE_MODIFY and POST_DOCUMENT in my enhancement.

Now In my enhancement, I have create a container on the sub screen along with few fields and display some text based on the material. For this I have created a program ZTEST_BADI with screen 9000 and handled the logic for placing text editor on the container and populating the text in the text editor. But I am getting an exception ERROR_DP from the method SET_TEXT_AS_R3TABLE in the class CL_GUI_TEXTEDIT.

Exception is stated as "Error while sending R/3 table to TextEdit control!"

My questions:

1. What might be the reason for this exception? This functionlity is working when I have tested the program by executing it individually with out calling from MIGO transaction.

2. How text should be passed when we are handling text editor in sub screens.Is that mandatory to convert to stream? or will this method SET_TEXT_AS_R3TABLE suits my requirement?

Thanks,

Ravee..