SD_Material_Determination
Hi
I tried this code in SE38, but it's giving
REPORT ZSA.
TABLES : QMEL, VBAP.
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.
Move '000000000100003676' to VBAP-MATNR.
CALL FUNCTION 'SD_MATERIAL_DETERMINATION'
EXPORTING
I_KALSU =
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.
But it's not giving any output. help please.......
-subha
Hi Subhashini,
Use this Pseudo code:
Select Single KNUMH from KOTD001 into V_KNUMH
where matwa = matnr(your material).
IF sy-subrc = 0.
Substitution found.
Else.
*--Check next table . Please check
Select Single KNUMH from KOTD002 into V_KNUMH
where matwa = matnr(your material)
and VKORG = Sales org
AND VTWEG = DIST, CHANNEL
if sy-subrc = 0.
substitution found.
else.
*--next table
Select Single KNUMH from KOTD011 into V_KNUMH
where matwa = matnr(your material)
and VKORG = Sales org .
AND SO ON..
I don't know how many determination tables used in you config..
Lanka
KOTD002
KOTD011
KOTD502
You can check your material against these tables based on MATWA = your material VKORG = Sales ORG for a valid dates.
If you find any entry means you have substitution for that mayerial. The use KOTD**-KNUMH and read table "KONDDP".
Similar Messages
-
Material detremination using fm SD_MATERIAL_DETERMINATION
hi gurus,
i ma using the function module SD_MATERIAL_DETERMINATION to find the substitutes of material.
i ma passing only the materail number MATNR in importing parameter but i am not getting any substitutes of that materail
altough my functional guy said that he has created the substitutes for that material.
can you please help me out it s very urgentHi, has your question be answered? What was the outcome / result?
-
hi all ,
i got issue in VA01 transaction . actually my customer wants an message in VA01 transaction when quantity is not there . for example if user entering 20 quantity for material but it has got 3 quantity only even though it has got 3 quantity its going to next screen as per my requriement if 20 quantity is not there it should give message that it has not got 20 qantity ,it has only 3 quantity . can anybody help me how to solve this issue . Thankshi
Please use this FM to check for particular material
CALL FUNCTION 'SD_MATERIAL_DETERMINATION' -
Hi ,
Can any one let me know what is the BAPI used for
Functional module =SD_Material_Determinations.
BAPI for Material Determination?Hi!
I don't know the details of article replacements, but in general: that's the way it should work.
If there is no stock or some other article blocks (no sales period, X-chain status...), then the replacement article should come into the documents.
Also a creation by BAPI is no exception from business point of view - it has to follow the same rules as an online creation. OK - your customer requirement is currently different.
But if the creation should be with article A, then the replacement customizing (also for online creation) has to be adjusted.
By the way, isn't BAPI_SALESORDER_CREATEFROMDAT2 up to date?
Regards,
Christian
Maybe you are looking for
-
Plant restriction at sales order level by user
Dear SD experts, Is it possible to restrict plant at sales order creation by user, if so, how this is to be configured. my requirement is user shall not able to create sales order(sales document) for plants restricted. pl help thanx in advance regard
-
Where do I see a list of my incoming calls online
Where can I see a list of my incoming calls on the Verizon website?
-
I am completely new to iPhone Have been trying to set up and use phone toi get some use out of it. So i am a 76year old dummy as far as iphone is concerned Can anyone tell me what has happened Started out updating iTunes and have ended up wiyh a phon
-
Server Issue with Oracle and ASP Connection
We got a new server and are trying to set it up with Oracle Client to allow our web application to connect to the database server. We are getting connection errors, but on the old server, it works fine. We have Windows 2003 and IIS 6.0 on the new ser
-
Database is pending after restore and recovery
Database is in the pending status after restore and recovery. The database can not startup today and it shows a error message: the log file 2 cannot be archived. Then I issue the following command: SQL> select group#, sequence#, bytes, members, statu