cancel
Showing results for 
Search instead for 
Did you mean: 

Personas 2.0 - custom field values disappearing

Former Member
0 Kudos

Hi all, I've searched for this issue on the forum without success, so here it goes.

I have a QM01 flavor and in it I populate via script (on the screen's OnCreateHandler event) a few custom fields (that I created in the flavor) with values I read from the Partners list on another screen, as soon as the user enters the transaction, providing the delivery document number. So far, so good. However, whenever I populate another field on that screen using a search help (for example, Due Date), my custom fields get cleared up.

This happens for any field on the screen that can be populated via search help, as soon as I hit Ok to return the value selected.

Anyone could help me with a way to prevent/fix this?

Thanks in advance.

Gabriela

Accepted Solutions (1)

Accepted Solutions (1)

Taha_j
Participant
0 Kudos

Hi,

You can save the values entered on screen as variables through JavaScript.

Former Member
0 Kudos

Thanks, Karma.

I actually just got a reply from SAP suggesting the following workaround (while there's no better solution available):

1 You should open flavor

2 Click Edit flavor

3 Show hidden items

4 Click on the button with the script executed at OnCreateHandler

5 Show propeties window

6 Click on item ID (to copy ID to buffer)

7 Click cancel to Cancel flavor editing

8 Click on date text box

9 Click on show calendar button

10 When calendar is visible Click Edit flavor

11 Add Script button

12 Change label to Choose, change icon to OK for exmaple

13 Add script action Push on Calendar's Choose button

14 Add script action Push and paste copied value in step 6

15 Click Ok to confirm

16 Click on Calendar's Choose button and click on Hide Selected Controls button in toolbar

17 Move Created script button in calendar

18 Click Save and Exit.

Answers (0)