Skip to Content
avatar image
Former Member

How to add custoim fields on the additiondata b tab of va01 and va02

Hi All,

i want to add the field on the Additional data B tab of the VA01 and VA02 at header level.

Already one field is there now i want to add one more field.How to proceed.

I think i have to go with screen exits.Can you help me in proceeding further and where should i write the code.

It is urgetn.Please help me

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 19, 2005 at 03:51 AM

    Hi Kumar,

    Go to transaction SPRO. Then menu Sales and Distribution->System Modifications->User Exits->User Exits in Sales-> User Exits in Sales Document Processing.

    But before you click on the "Execute" button click on the Document Help button next to it. This should get you an overview of the user exits available and help you get started.

    Cheers,

    Pat.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 19, 2005 at 04:01 AM

    When you say already there is one field, then you must have already used the screen exit and there must be a project out there for those changes. Go to CMOD and search for all Z projects and see if you find one there that includes changes to this screen. If it is there, then all you have to do is modify the screen and add your screen logic. Since the project is already active, you don't have to do anything in CMOD.

    Add comment
    10|10000 characters needed characters exceeded

    • You can use that. You will have to add the following IF statement around your code.

      IF VBAK-AUART Equals 'ZWH' OR
         VBAK-AUART Equals 'ZFV'.
        IF VBAK-ZZGrswgh < ZTRKLMT-ZZWEIGHT OR
           VBAK-ZZCubTot < ZTRKLMT-ZZCUBE   OR
           VBAK-ZZPaltot < ZTRKLMT-ZZPALLET.
          CLEAR VBAK_ZZTRKLMT. 
        ELSE.
          MOVE ‘X’ TO VBAK_ZZTRKLMT.
        ENDIF.
      ENDIF.