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: 

MESSAGE DISPLAY in VA01

Former Member
0 Kudos

Hi,

<b>If the primary material has sufficient stock available for sale, Material substitution popup should not display</b>.Did this part using VOFM user exist.......

User should be notified that substitutes exist. If the notification (button, icon, or similar) is active, the user will have the ability to manually click the notification to display the popup. Also, if the user highlights a line item previously entered, the notification described above will be activated.a.) ..

<b>Alternate (but less desirable): Notification described above would be always active, and message (at bottom of screen?) would display with the words “substitutions available” or, alternately, “no substitutions available”.for the selected materials in itemlevel(VA01)</b>

How can i achieve this ? Any ideas. Really appreciate your help...

-subha

10 REPLIES 10

Former Member
0 Kudos

I need help in this Please... ANy ideas?????????

How can i put message display depending on Material substitution????????????

0 Kudos

Hi,

How can i check for particular material having material substitution or not??????

Any fields can i check???????

-subha

0 Kudos

Hi Subhashini,

Please use this function module to check for particular material having substitution:

CALL FUNCTION 'SD_MATERIAL_DETERMINATION'

Lanka

0 Kudos

Could u please tell me which field i should look into to check for material determination exist for matrial?????

-subha

0 Kudos

Hi Subhashini,

Please note that IMPORTING parameter E_MATNR will contain the substituted material no.

Sample code from program LQM06I50:

CALL FUNCTION 'SD_MATERIAL_DETERMINATION'

EXPORTING

  • I_KALSU =

I_MATNR = RQM07_05-MATNR_G

  • I_DATUM =

  • I_VWPOS =

  • I_POSNR_HP =

  • I_ARKTX =

I_BVBAKKOM = L_BVBAKKOM

IMPORTING

E_MATNR = L_MATNR

  • E_ARKTX =

E_TVSU = L_TVSU

TABLES

I_BVBPAKOM = L_BVBPAKOM

E_KONDDP_SERVICE = L_KONDDP_EXT

EXCEPTIONS

CALL_ERROR = 1

ERROR_MESSAGE = 2

OTHERS = 3.

Lanka

0 Kudos

Hi,

Where i need to check this condition . Is there is any USEREXIT to achieve this.???????

-subha

0 Kudos

Hi,

I called this FM but

  IF I_MATNR    IS INITIAL OR
     ( I_KALSU    IS INITIAL AND
       I_BVBAKKOM IS INITIAL ).
    RAISE CALL_ERROR.
  ENDIF.

But then in the MATERIALFINDUNG_EXT form, it does this check.




  IF VBAK IS INITIAL.
    RAISE CALL_ERROR.
  ENDIF.

I put this code in SE38

REPORT ZSA.

*TABLES : tvak.

*Select * from tvak.

*endselect.

*

*write : / tvak-kalsu.

TABLES : QMEL, VBAP, VBAK.

DATA: L_BVBPAKOM LIKE BVBPAKOM OCCURS 2 WITH HEADER LINE.

DATA: L_KONDDP_EXT LIKE KONDDP_EXT_SERVICE

OCCURS 2 WITH HEADER LINE.

DATA: L_BVBAKKOM LIKE BVBAKKOM.

DATA: L_MATNR LIKE QMEL-MATNR.

DATA: L_TVSU LIKE TVSU.

DATA: XVBPAKOM LIKE VBPAKOM OCCURS 10 WITH HEADER LINE.

DATA: VBAKKOM LIKE VBAKKOM.

data: I_VBAKKOM type STANDARD TABLE OF VBAKKOM WITH HEADER LINE

INITIAL SIZE 0.

CALL FUNCTION 'SD_SALES_HEADER_MAINTAIN'

EXPORTING

FVBAKKOM = VBAKKOM

SUPPRESS_AVAILIBILITY_DIA = 'X'

SUPPRESS_TEXT_POPUP = 'X'

STATUS_BUFFER_REFRESH = SPACE

IMPORTING

EVBAK = VBAK

TABLES

FXVBPAKOM = XVBPAKOM.

Move '000000000100003676' to VBAP-MATNR.

CALL FUNCTION 'SD_MATERIAL_DETERMINATION'

EXPORTING

I_KALSU = 'A00001'

I_MATNR = vbap-matnr

  • I_DATUM =

  • I_VWPOS =

  • I_POSNR_HP =

  • I_ARKTX =

I_BVBAKKOM = L_BVBAKKOM

IMPORTING

E_MATNR = L_MATNR

  • E_ARKTX =

E_TVSU = L_TVSU

TABLES

I_BVBPAKOM = L_BVBPAKOM

E_KONDDP_SERVICE = L_KONDDP_EXT

EXCEPTIONS

CALL_ERROR = 1

ERROR_MESSAGE = 2

OTHERS = 3.

write : / L_MATNR.

Help please...

Thanks,

Suba

Former Member
0 Kudos

Hi.

Is that possible to Put Notification Button in VA01 screen & also If User clicks that button Material substitution POPup window should display. Is that possible?

Is there is any USEREXIT/BADI Avaialable to Do this?????????????????????

-Subha

0 Kudos

Hi ,

Go through this link may be useful for you :

http://www.sap-img.com/sd028.htm

0 Kudos

I saw this link. But it's not sayin anything about putting button in VA01. I need this feature to put button or icon in VA01 screen, If user clicks that then POPUP window should display?????????????

Urgent help please?????

-subha