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

Adding a Z Field onto an SAP Std Screen

Hello Experts,

I need to add my own Z field onto an SAP Std screen. The Z field already exist in the Append stucture of the table VBAK.

How to do this? Will it come under a screen exit or field exit?

May i know if i need to go for screen programming such as loop at screen..endloop. etc.

Please explain in Tech terms(code) wih an example.

Appreciate your response with points.

Thanks

Dan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Jan 07, 2007 at 03:57 AM

    Hi Dan, where do you want to add this field, VA01/02/03? If so, then there are screens provided for you to modify and add your field. Here is the documentation.

    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm

    From here, click User Exits, User Exits in Sales, User Exits in Sales Document Processing.

    See the section labeled "User exits in the screens"

    REgards,

    RIch Heilman

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Sub: Iam facing problem with workflow in parked vendor invoice with the chaged

      event.

      When iam doing particular (Changing GL account, Cost Center, Amount) changes

      in parked vendor invoice through t-code FBV2 then the Changed event of

      business object FIPP is not getting triggered. If iam changing Invoice date

      then the workflow is getting tirggered.

      Can you help me, is there any configuration required or else how to check this

      problem.

      Please help me, Its urgent

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 04:21 AM

    Hi MAx,

    You said:

    1) Here you need only to design the dynpro using the structeu VBAK and the system'll automatically store them in VBAK table.

    Could you please tell me the dynpr prog involved?

    2) U should consider all saving are made in update task, so it should be better you create a z-function to update your z-table and call that fm in update tusk into USEREXIT_SAVE_DOCUMENT

    What is the code to do the above. Pls explian.

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      1) Here you need only to design the dynpro using the structeu VBAK and the system'll automatically store them in VBAK table.

      Could you please tell me the dynpr prog involved?

      Use trx SE80:

      - choose program option and insert 'SAPMV45A';

      - Press display and open SCREEN node;

      - Search screen 8309, do a doubleclick and press MODIFY: now you're in screen painter.

      - To insert the input/output fields use the structure VBAK: in this way the headerline of VBAK'll automatically be filled. You need only to insert the code in screen flow (PBO and/or PAI) if you need to insert some controls;

      2) U should consider all saving are made in update task, so it should be better you create a z-function to update your z-table and call that fm in update tusk into USEREXIT_SAVE_DOCUMENT

      What is the code to do the above. Pls explian.

      If you see the user-exit USEREXIT_SAVE_DOCUMENT you can see a example:

      FORM USEREXIT_SAVE_DOCUMENT.
      * Example:
      * CALL FUNCTION 'ZZ_EXAMPLE'
      *      IN UPDATE TASK
      *      EXPORTING
      *           ZZTAB = ZZTAB.
      ENDFORM.                    "USEREXIT_SAVE_DOCUMENT

      So you have to create a your function module with importing parameters structurated like your Z-table, in this way you can transfer the record you need to update/insert. In the fm you insert all code you need to do the updating/inserting:

      FUNCTION 'ZZ_EXAMPLE'.
        MODIFY ZZTAB FROM ZZTAB.
      ENDFUNCTION.

      Max

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2007 at 02:49 PM

    Hi Sarath,

    You need to post ur problem in a seperate thread.

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2007 at 02:55 PM

    Hi Dan

    You give us more details, because there isn't only one solution. Which solution can be used depends on which program you need to change.

    There are some trx (like VA01/2/3 or ME21N/2N/3N) they have some screen-exit to insert some new fields, but if your trx hasn't it you'll have to change directly the standard screen.

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2007 at 03:05 PM

    Hi Rich,

    Thanks for the response.

    I need to capture the field in VA02. But how do i program/control the fields content on the screen at a given time so that i can influence other activites like update to the relevant tables?

    Eg: if the content is 'abc' i will update ztable 1 else update ztable2..etc?

    Please reply with an example.

    Thanks

    Dan

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Rich Heilman

      Hi

      Probably jst as Rich said you need to use the screen(exit) 8309 in order to display your new Z-FIELD.

      Here you need only to design the dynpro using the structeu VBAK and the system'll automatically store

      them in VBAK table.

      If you need to store your data in Z-TABLE, yous should use the userexit USEREXIT_SAVE_DOCUMENT instead of

      USEREXIT_SAVE_DOCUMENT_PREPARE:

      - USEREXIT_SAVE_DOCUMENT_PREPARE: it's triggered before saving document,

      - USEREXIT_SAVE_DOCUMENT: it's triggered while saving document.

      Here you have to insert all abap code you need to update your z-table.

      U should consider all saving are made in update tusk, so it should be better you create a z-function to update your z-table and call that fm in update tusk into USEREXIT_SAVE_DOCUMENT.

      Max

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.