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: 

How to create global field for Customer Create XD01

Former Member
0 Kudos

Hi All,

I have added a custom code in the user exit ZXF04U01( XD01 - Customer create), Now I need to create a global field value, is there any include file where I can declare customer create related field.

Include function INCLUDE MF02DTOP is already there but I am looking where customer specific fields can be declared.

Thanks in advance for your help.

Avanti

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Upon further investigation, I don't think ZXF04TOP is necessarily going to give you what you are looking for. That include is for the function group XF04, which also contains your user exit ZXF04U01. However, there are no other user exits or any other functionality in that group, so the TOP include is really only for ZXF04U01 and any other includes you may create in that group.

If you need to pass data between this user exit and another piece of code, you could try exporting/importing from memory:

Export in the first routine:

export lv_value to memory id 'YOURVARIABLE'.

Import in the next routine:

import lv_value from memory id 'YOURVARIABLE'.

3 REPLIES 3

Former Member
0 Kudos

You should be able to utilize ZXF04TOP.

0 Kudos

Hi Kevin,

Thanks for the response, include ZXF04TOP is currently not created in our system. I searched for this include in the main program SAPMF02D.

Can you please give some more details on this and also if could give any other options.

Thanks,

Prabhu Avanti

Former Member
0 Kudos

Upon further investigation, I don't think ZXF04TOP is necessarily going to give you what you are looking for. That include is for the function group XF04, which also contains your user exit ZXF04U01. However, there are no other user exits or any other functionality in that group, so the TOP include is really only for ZXF04U01 and any other includes you may create in that group.

If you need to pass data between this user exit and another piece of code, you could try exporting/importing from memory:

Export in the first routine:

export lv_value to memory id 'YOURVARIABLE'.

Import in the next routine:

import lv_value from memory id 'YOURVARIABLE'.