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: 

Find Field catalog used for final ALV output report in Tcode VA05

Former Member
0 Kudos

Hi All,

In Transaction code VA05 give valid sales area and press enter.

The report will be displayed.

In that report I need to have two more new fields to be displayed which will be fetched from vbak.

I want to know the field catalog used to display that final output.

What is the form/exit for the field catalog which needs to be modified for the above requirement.

Please help me.

Reagrds,

Rupali Punekar

1 ACCEPTED SOLUTION

former_member215870
Participant
0 Kudos

The tcode VA05 is customizable and you can add also your own fields if these doesn't exist. Firtst see what program is under the tcode (you should expect the SAPMV75A).

After you have take this information go to the customizing via the path:

SPRO -> F5 -> Sales and Distribution -> Sales -> Lists -> Define Selection Criteria.

If you add your field in this catalog, then this field should be a selection criteria in your list.

Now just to populate the list with data, you should implement a user exit:

SPRO -> F5 -> Sales and Distribution -> System modifications -> User exits in Sales -> User exits for Lists .

There you should find documentation for the right user exit and which communication structures you should enhance. ie the structure VBMTV has an include, theVBMTVZ.

and an code-example:

  • This form is called in the include LV05TFMO.

FORM MOVE_USERFIELDS USING ZP.

CASE ZP.

WHEN 'VBAK'.

  • header

  • MOVE LVBAK-XXXXX TO LVBMTV-ZZXXXXX.

WHEN 'VBAP'.

  • item

*{ INSERT R3QK903302 1

MOVE LVBAP-BEDAE TO LVBMTV-BEDAE.

*} INSERT

  • MOVE LVBAP-XXXXX TO LVBMTV-ZZXXXXX.

WHEN 'VBEP'.

  • schedule line

  • MOVE LVBEP-XXXXX TO LVBMTV-ZZXXXXX.

ENDCASE.

ENDFORM.

With Regards

George

4 REPLIES 4

Former Member
0 Kudos

HI,

pls see Structure - VBMTV

Also FORM REUSE_ALV_FIELDCATALOG_MERGE in include - RVREUSE_FORMS

Hope this helps.

0 Kudos

Hi Gary,

Thanks for quick response.

According to my observation the output table is pt_outtab in form REUSE_ALV_LIST_DISPLAY.

the catalog which is passed is ps_sd_alv-fieldcat.

Is it possible for you to show me how exactly the fields would be added to the catalog you have suggested?

I am not sure where exactly the field and its value is passed.

Regards,

Rupali Punekar

Edited by: Ruapli Punekar on Aug 14, 2009 10:26 AM

former_member215870
Participant
0 Kudos

The tcode VA05 is customizable and you can add also your own fields if these doesn't exist. Firtst see what program is under the tcode (you should expect the SAPMV75A).

After you have take this information go to the customizing via the path:

SPRO -> F5 -> Sales and Distribution -> Sales -> Lists -> Define Selection Criteria.

If you add your field in this catalog, then this field should be a selection criteria in your list.

Now just to populate the list with data, you should implement a user exit:

SPRO -> F5 -> Sales and Distribution -> System modifications -> User exits in Sales -> User exits for Lists .

There you should find documentation for the right user exit and which communication structures you should enhance. ie the structure VBMTV has an include, theVBMTVZ.

and an code-example:

  • This form is called in the include LV05TFMO.

FORM MOVE_USERFIELDS USING ZP.

CASE ZP.

WHEN 'VBAK'.

  • header

  • MOVE LVBAK-XXXXX TO LVBMTV-ZZXXXXX.

WHEN 'VBAP'.

  • item

*{ INSERT R3QK903302 1

MOVE LVBAP-BEDAE TO LVBMTV-BEDAE.

*} INSERT

  • MOVE LVBAP-XXXXX TO LVBMTV-ZZXXXXX.

WHEN 'VBEP'.

  • schedule line

  • MOVE LVBEP-XXXXX TO LVBMTV-ZZXXXXX.

ENDCASE.

ENDFORM.

With Regards

George

0 Kudos

Thanks to both of you for the response !!!

Got the Answer