cancel
Showing results for 
Search instead for 
Did you mean: 

Pop up showing material stock at the level of sales order creation

Former Member
0 Kudos

Dear Friends,

Could anybody please suggest me whether it is possible to bring a pop up while creating sales order, at the material entry stage, to show the existing stock of the material. I mean as soon as the material is entered, system throws a pop up showing the existing stock of that particular material.

Kindly let me know whether this could be achieved through configuration only or some kind of development needs to be done for the same.

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

You have got 2 options here :

1. You can use SAP SD- Availability Check to achieve your functionality.

Please refer to to the Link: [http://www.saptechies.com/configuring-availability-check/]

2. You can use User-Exits or Badi's . Here you will have to do some developement to achieve your functionality

Following are the User-exits for VA01 :

V60F0001 SD Billing plan (customer enhancement) diff. to billing plan

SDTRM001 Reschedule schedule lines without a new ATP check

V45A0001 Determine alternative materials for product selection

V45A0002 Predefine sold-to party in sales document

V45A0003 Collector for customer function modulpool MV45A

V45A0004 Copy packing proposal

V45E0001 Update the purchase order from the sales order

V45E0002 Data transfer in procurement elements (PRreq., assembly)

V45L0001 SD component supplier processing (customer enhancements)

V45P0001 SD customer function for cross-company code sales

V45S0001 Update sales document from configuration

V45S0003 MRP-relevance for incomplete configuration

V45S0004 Effectivity type in sales order

V45W0001 SD Service Management: Forward Contract Data to Item

V46H0001 SD Customer functions for resource-related billing

Following are the Badi's that can be used in VA01 :

BADI_SD_SCH_GETWAGFZ Scheduling Agreement: Read WAGFZ from S073

BADI_SD_V46H0001 SD Customer functions for resource-related billing

Hope this will help you.

Regards,

Nikhil

Former Member
0 Kudos

Thanks Nikhil for your valuable suggestion. I shall try the same and get back to you soon.

Regards

Former Member
0 Kudos

Hi

Kindly use the program MV45AFZ4 for POP up in the sales order.Kindly check with abaper and write the code as per the requirement tell him to use the below code for reference.

CALL FUNCTION 'MB_SELECT_SD_SCHEDULED_STOCK'

EXPORTING

x_matnr = vbap-matnr

  • X_KZWSO = ' '

TABLES

xtab4 = ztab4

xwerks = xwerks

.

concatenate 'Material:' vbap-matnr into txt1 separated by space.

concatenate 'Plant :' vbap-werks into txt3 separated by space.

concatenate 'Quantity:' lv_clabs2 lv_meins into txt2 separated by space.

CALL FUNCTION 'POPUP_TO_INFORM'

EXPORTING

titel = 'Unrestricted Stock Display'

txt1 = txt1

txt2 = txt3

TXT3 = txt2

  • TXT4 = ' '

.

ENDIF.

ENDFORM.

*eject

Regards

Damu