Hi All / Matthew Billingham,
Before I post , I did lot of search in forums and here, Didn't get much helpful responses in Blogs / Discussions/ Documentation.
My requirement is :
1) Thro config - Added Custom tab in IW21 - Notification creation.
2) Technically added 5 Long Text ( Custom Controls ) to fill long text data.
3) Cannot add field name as LONG1 in VIQMEL , becos 5 LONG FEILDS in VIQMEL not recommended ( as per my knowlegde ).
4) So, Planned to store them as SO10 with Notification number + LONG1, NOTIFICATION Number + Long2.... etc, to retrieve later while CHANGE / DISPLAY.
5)
in PAI it gets captured using ( For first LONG TEXT )
CALL METHOD TEXT_EDITOR->GET_TEXT_AS_STREAM
EXPORTING
ONLY_WHEN_MODIFIED = CL_GUI_TEXTEDIT=>TRUE
IMPORTING
TEXT = LS_OUTTAB-TEXT
IS_MODIFIED = LV_MOD
EXCEPTIONS
ERROR_DP = 1
ERROR_CNTL_CALL_METHOD = 2
OTHERS = 3.
Got all the lines entered in first long text.
6) NOTE: By this time, NOTIFICATION Number will be %0000000001, I cannot store them to SO10.
7) Only at the time of SAVE BADI, I get the Notificatin number , So need to export this LONGTEXT 1 to 5 and import to SAVE BADI and create SO10.
8) If the user goes to 2nd tab and then to 3rd tab and then to Custom LONG TEXT Tab, data in long text still available, but after save, it not appeared in any internal tables the long text to be save as SO10.
Please guide me or provide proper links to resolve.
FYI - I used EXPORT ( LONG TEXTS)- in PAI and IMPORT all in SAVE BADI in SandBOX , working fine sometimes and not all times. Can't rely on this.
With Regards,
Bala M