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: 

Search help exit

0 Kudos

Hello All,

I am Developing a Search Help Exit.

In CALLCONTROL-STEP = 'DISP'  ,For some reason i have to refresh RECORD_TAB with entries and fill the RECORD_TAB with some other Entries that i have fetched in CALLCONTROL-STEP = 'SELECT'.


Now when i am filling the RECORD_TAB there are some QUANTITY and CURRENCY values that also need to be displayed.

So i am filling these Values in normal way as i am filling other values in Record_Tab.

But somehow they are not getting displayed with correct Values but are Displaying some Garbage value.

Kindly Help.It will be rewarded and appreciated.

Thanks,

1 ACCEPTED SOLUTION

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

Are you using F4UT_RESULTS_MAP ?

See here :

http://scn.sap.com/message/6096135#6096135

  CALL FUNCTION 'F4UT_RESULTS_MAP'

*   EXPORTING

*     SOURCE_STRUCTURE         =

*     APPLY_RESTRICTIONS       = ' '

    TABLES

      shlp_tab                 = shlp_tab

      record_tab               = record_tab

      source_tab               = lt_result

    CHANGING

      shlp                     = shlp

      callcontrol              = callcontrol

    EXCEPTIONS

      illegal_structure        = 1

      OTHERS                   = 2

            .

  IF sy-subrc <> 0.

    rc = 4.

  ENDIF.

Regards.

8 REPLIES 8

Florian
Active Contributor
0 Kudos

hi Lav,

what do you mean by garbage values? Did you refer to the correct currency with your fields? That is the most popular reason why it doesn't show correct values.

But with less information it will be hard, to give a answer...

On the other hand, did you use the search to solve your problem. I mean, just searching with your title + currency gives a lot of hits. I'm pretty sure there is a solution in the result-stack.

~Florian

0 Kudos

By Garbage value i mean that instead of Correct Quantity that i am Expecting at output say 10.000 i am getting 2,000,200,020.002.I debugged and didn't get from where i am getting these values.

Florian
Active Contributor
0 Kudos

So Lav,

did you try to find a solution by using the search. If you are fighting the problem after using the search it will be helpful, if you share your coding.

But try this before. Set a hard value to the field you are getting the "garbage" and set a watchpoint at it. I mean, if the value change somewhere, you will find it with that way.

~Florian

0 Kudos

Hi,

Just try to find out how the value was displayed before refreshing the table in debugging. Try to make it in the same way.

Former Member
0 Kudos

hi jayanthi can i have ur mail id..i have doubt in sap-abap can u plz help me

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

Are you using F4UT_RESULTS_MAP ?

See here :

http://scn.sap.com/message/6096135#6096135

  CALL FUNCTION 'F4UT_RESULTS_MAP'

*   EXPORTING

*     SOURCE_STRUCTURE         =

*     APPLY_RESTRICTIONS       = ' '

    TABLES

      shlp_tab                 = shlp_tab

      record_tab               = record_tab

      source_tab               = lt_result

    CHANGING

      shlp                     = shlp

      callcontrol              = callcontrol

    EXCEPTIONS

      illegal_structure        = 1

      OTHERS                   = 2

            .

  IF sy-subrc <> 0.

    rc = 4.

  ENDIF.

Regards.

0 Kudos

Many Thanks Eitan,

I have used the same Function Module and my problem gets Solved.

Thanks,

Lav Bharadwaj

0 Kudos

Hi,

You are welcome...

I also learned about the existence of this function the hard way....

Regards.