2011 Apr 04 5:18 PM
Hi Folks,
When creating a PO in ME21N, where is the line of code that tells the program to display the import tab?
I know the business reason for this is when the Company code is in one EU country and the Vendor is in another EU country it displays the Import tab for Intrastat purposes but I would like to see where this is done in the standard program but I can't see it anywhere.
Thanks for any advice.
Colm
2011 Apr 05 6:20 AM
Hi,
a quick answer is function module IMPORT_DETERMINE. Full answer is that GUI displays tab only if there is at least one visible field. In case of tab Import the logic for field visibility determination is implemented in class LCLFS_MMMFD_HEADER_IMPORT (function group MEPO) method lif_field_sel~execute. The logic is really simple,
IF xegimp EQ space AND import EQ space.
switch_field_to '-'.
ELSE.
switch_field_to '.'.
ENDIF.
If both global variables xegimp and import are initial then all fields are invisible. If you look for places where these global variables are set then you will find that it's done using FM IMPORT_DETERMINE.
Cheers
Hi Folks,
When creating a PO in ME21N, where is the line of code that tells the program to display the import tab?
I know the business reason for this is when the Company code is in one EU country and the Vendor is in another EU country it displays the Import tab for Intrastat purposes but I would like to see where this is done in the standard program but I can't see it anywhere.
Thanks for any advice.
Colm
2011 Apr 05 6:20 AM
Hi,
a quick answer is function module IMPORT_DETERMINE. Full answer is that GUI displays tab only if there is at least one visible field. In case of tab Import the logic for field visibility determination is implemented in class LCLFS_MMMFD_HEADER_IMPORT (function group MEPO) method lif_field_sel~execute. The logic is really simple,
IF xegimp EQ space AND import EQ space.
switch_field_to '-'.
ELSE.
switch_field_to '.'.
ENDIF.
If both global variables xegimp and import are initial then all fields are invisible. If you look for places where these global variables are set then you will find that it's done using FM IMPORT_DETERMINE.
Cheers
2011 Apr 05 10:04 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |