Skip to Content
author's profile photo Former Member
Former Member

Issue related to Dynamic Field Symbol

Hi All,

There is one function module called EXIT_SAPMM06E_001 having one INCLUDE as below:



Inside the INCLUDE ZXM06U17, the code is as below:

field-symbols: <fs_zzbol> type any.

data : l_zzbol(30).

if sy-tcode eq 'ME21N'.


elseif sy-tcode eq 'ME21'.

l_zzbol = '(SAPMM06E)EKKO-ZZBOL'.


assign (l_zzbol) to <fs_zzbol>.

if sy-subrc <> 0.

message e999(zb) with 'Could not Assign BOL Number'

'to <FS_ZZBOL>' l_zzbol.


As per written code, if the value of (l_zzbol) is not assigned to the field symbol <fs_zzbol>, the above error will pop up.

When I am trying to debug this program in foreground using Z-Transaction and the control comes to this user exit, SAPLXM06 is stored in the program memory.

Here SY-TCODE is either Z-TCODE or Se38 and not ME21N or ME21. Hence neither of the programs SAPLMEPO or SAPMM06E is stored in the program memory. So the variable L_ZZBOL is not getting assigned and the statement u201Cassign (L_ZZBOL) to <FS_ZZBOL>u201D is not working.

Finally the error pops up saying u2018Could not Assign BOL Number'.

Can you please suggest how I can test this user exit; any other approach required as such..

Note: I am using 4.6C SAP version.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2009 at 11:10 AM

    u have to test this exit from ME21N or ME21 only to get the desired result. u should not test it from any ztcode

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.