MV45AFZZ in BAPI_SALESORDER_SIMULATE
Hi
I got a question on the bapi BAPI_SALESORDER_SIMULATE. I did some coding in MV45AFZZ userexit but when i run BAPI_SALESORDER_SIMULATE, it does not throw out this error. But when i run BAPI_SALESORDER_CREATEFROMDAT2, the error is displayed.
I put a break point in MV45AFZZ when i run BAPI_SALESORDER_SIMULATE but it does not go into it. My question is userexit triggered when running BAPI_SALESORDER_SIMULATE?
Thanks
Dyl
Hi
What subroutine are you using?
In the other hand, see SAP Note 550726 - FAQ: BAPIs in sales - restrictions, question 6.
Regards
Eduardo
Similar Messages
-
Unable to add code in USEREXIT_SAVE_DOCUMENT_PREPARE in include MV45AFZZ
Hi Experts,
I need to add some custom codes in USEREXIT_SAVE_DOCUMENT_PREPARE
-> I opened the include program MV45AFZZ in display mode
-> Edit -> Enhancement operations -> Show implicit enhancement operations.
On the status bar it displays an information "Creating of enhancement supported only for line length > 72"
inside form USEREXIT_SAVE_DOCUMENT_PREPARE I right clicked -> selected enhancement implementations -> create.
and now I get the same message On the status bar "Creating of enhancement supported only for line length > 72" .
how do I add a piece of code here.
I can't type in under USEREXIT_SAVE_DOCUMENT_PREPARE.
Give a solutions experts.
Regards,
Ranjith NHi ,
I believe we need not use the enhancement framework in MV45AFZZ
Go to SE38 -> MV45AFZZ -> change mode
Keep the mouse on the user exit USEREXIT_SAVE_DOCUMENT_PREPARE
On the tool bar click on "Insert" icon ->icon description: Insert Line Area
ControlShiftF8....
An editable area will be displayed with a
*{ INSERT &$&$&$&$ 1
*---> Write code here
*} INSERT
Save and activate the code
Hope it helps
Regards
Byju -
Hi all,
Is there a way to pass material pricing group for each item to BAPI_SALESORDER_SIMULATE?I could not find any field in items structure that could accept material pricing group?I need the pricing conditions and credit card out details based on material pricing group while simulating a sales order?If there is any other way to achieve the purpose please let me know....
Thanks in advance...
SanthoshiHi Yoeri,
Thanks for your reply.But the field PRC_GROUP1 is price group(KONDA) but not material pricing group(KONDM).You can observe the difference in VA03 transaction in Item Overview->Sales B tab.They are two different fields Material Pricing Group and Price Group.
<b>Actual requirement is</b>:
I need to simulate a sales order using BAPI_SALESORDER_SIMULATE, and retrieve the pricing details and credit card details. Now the problem is i am unable to find a field which holds material pricing group, due to which the pricing details and credit card ammount details that are returned are having incorrect values.
I would appreciate if you could please help me out in solving this requirement.
Thanks in advance
Santhoshi -
Exit MV45AFZZ is not working as per our requirement
Hi Friends,
In the transaction 'VA02' based on the Sales Order type and the Delivery Block I want to change the Schedule line category in the Sales Order item. We used the exit MV45AFZZ (FORM USEREXIT_SAVE_DOCUMENT_PREPARE) and it changes the Schedule line category as per our requirement.
The problem is that once the Sales Order is saved with the new Schedule line category it does not transfer the requirements to the Stock/Requirements List(Transaction MD04). But if we change the Schedule line category in Sales Order manually (without using the exit) then the requirements are transfered to the Stock/Requirements List which we can see against that Material in the Transaction MD04. Could you kindly help.
RegardsHi Raju,
The below code only triggers
FORM USEREXIT_MOVE_FIELD_TO_VBKD.
VBKD-zzfield = xxxx-zzfield2.
ENDFORM.
when there is some manual change done on the Schedule line. So the control of the program will not stop on this form. Kindly suggest.
Regards
Siddharth -
Delivery scheduling in BAPI_SALESORDER_SIMULATE
Hi Experts,
I have a problem with schedule lines in BAPI_SALESORDER_SIMULATE. If ordered quantity is larger than ATP I get a strange scheduling because all of the ordered quantity is postponed to a later date. For me it seems as partial delivery wouldn't be allowed. Is there any parameter in this bapi where I could allow partial delivery?
(In VA01 for the same material/plant it's working properly.)
Any ideas are warmly welcomed.
Thanks and regards,
GaborHi Tamás,
What I exactly want to see is what scheduling is possible for the material. So if my understanding is correct I won't get this information from BAPI_SALESORDER_CREATEFROMDAT2. But anyway, thank you for your answers.
I hope I'm not alone with this problem and someone can help. -
Problem to get the availability of a product using BAPI_SALESORDER_SIMULATE
Hi folks,
I am trying to use BAPI_SALESORDER_SIMULATE to get the availability of a product but the BAPI does not send me the expected result :
I am trying to get the availability of a "to be discontinued" product. The available quantity of this product is 592 unit.
1/ Here is what I have in VA01 when I order a quantity of 1000 unit : [VA01|http://img689.imageshack.us/img689/4982/va012.jpg]
--> only 592 units available : OK !
2/ Here is what I have with BAPI_MATERIAL_AVAILABILITY when I order a quantity of 1000 unit : [Table WMDVEX|http://img707.imageshack.us/img707/9793/wmdvex2.jpg]
--> only 592 units available : OK !
3/ Here is what I have with BAPI_SALESORDER_SIMULATE when I order a quantity of 1000 unit : [TableORDER_SCHEDULE_EX|http://img101.imageshack.us/img101/830/orderscheduleex2.jpg]
--> Nothing available : not OK !
For information to run BAPI_SALESORDER_SIMULATE I am filling ORDER_HEADER_IN, ORDER_PARTNERS and ORDER_ITEMS_IN.
Thanks in advance for your help.@Brad : If I fill ORDER_SCHEDULE_IN-REQ_QTY in place of ORDER_ITEMS_IN-REQ_QTY I receive an error : E-06070-Enter a quantity (I suppose ORDER_ITEMS_IN-REQ_QTY is mandatory). Which field do you use to specify the schedule quantity ?
For information here are the information I am using to run BAPI_SALESORDER_SIMULATE :
ORDER_HEADER_IN
DOC_TYPE
SALES_ORG
DISTR_CHAN
DIVISION
REQ_DATE_H
PO_METHOD
ORDER_ITEMS_IN
ITM_NUMBER
MATERIAL
REQ_QTY
SALES_UNIT
ORDER_PARTNERS
PARTN_ROLE
PARTN_NUMB -
URGENT - BAPI_SALESORDER_SIMULATE- FREE GOODS - ORDER_CONDITION_EX
Hi Gurus,
I am using standard Function module : BAPI_SALESORDER_SIMULATE to simulate pricing conditions.
I am trying to figure out the reason for the function module: BAPI_SALESORDER_SIMULATE not giving values in CONDITIONS EX when I use it to <b>simulate free goods</b> .
<b>It is only not giving ORDER_CONDITION_EX for free goods materials.</b>
BAPI simulates Bill of material, regular orders properly.
Example : one material has on free good .
Should give output in ORDER_CONDITION_EX
It is giving an output in ORDER_ITEMS_OUT - two materials line item 10 , 15 .
However in ORDER_CONDITION_EX it does not return anything , number of entries is zero .
What could be the reason. What is the correct input for the BAPI for it to give conditions in ORDER_CONDITION_EX for free goods.
I know my data for input are correct as I can make a sale order with the same data.
Please help me at the earliest to solve this problem.
<b>BAPIs reference : standard BAPI_SALESORDER_SIMULATE'</b>
CALL FUNCTION 'BAPI_SALESORDER_SIMULATE'
EXPORTING
ORDER_HEADER_IN = order_header_in
CONVERT_PARVW_AUART = ' '
DELAY = 0
IMPORTING
SALESDOCUMENT =
ORDER_HEADER_EX =
SOLD_TO_PARTY =
SHIP_TO_PARTY =
BILLING_PARTY =
RETURN =
ORDER_HEADER =
TABLES
ORDER_ITEMS_IN = order_items_in
ORDER_PARTNERS = order_partners
ORDER_SCHEDULE_IN = order_schedule_in
ORDER_CONDITIONS_IN =
ORDER_ITEMS_OUT =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CCARD =
ORDER_CCARD_EX =
ORDER_SCHEDULE_EX =
ORDER_CONDITION_EX = order_condition_ex
ORDER_INCOMPLETE =
MESSAGETABLE = messagetable
EXTENSIONIN =
PARTNERADDRESSES =
WMDVSX =
WMDVEX =
AVAIL_OUT =
ORDER_SCHEDULE_IN2 =
ORDER_SCHEDULE_EX2 =
ORDER_ITEMS_IN2 =
ORDER_PARTNERS2
Program being developed based on this BAPI
selection-screen begin of block b1 with frame title text-001.
parameters : p_kunnr like kna1-kunnr,
p_matnr like vbap-matnr,
p_vkorg like vbak-vkorg,
p_vtweg like vbak-vtweg,
p_spart like vbak-spart.
selection-screen end of block b1.
data: doctype like bapisdhead-doc_type value 'OR',
itemno like bapiitemin-itm_number value '000010',
quantity(13) type N value '0000000000001',
partnertype like knvp-parvw value 'AG'.
data :count type i.
data : begin of order_condition_ex occurs 0.
include structure bapicond.
data: end of order_condition_ex.
data: begin of order_header_in.
include structure bapisdhead.
data: end of order_header_in.
data: begin of order_items_in occurs 1.
include structure bapiitemin.
data: end of order_items_in.
data: begin of order_partners occurs 1.
include structure bapipartnr.
data:end of order_partners.
data: begin of order_schedule_in occurs 1.
include structure bapischdl.
data:end of order_schedule_in.
data: begin of messagetable occurs 0 .
Include structure bapiret2.
data: end of messagetable.
order_header_in-doc_type = doctype.
order_header_in-sales_org = p_vkorg.
order_header_in-distr_chan = p_vtweg.
order_header_in-division = p_spart.
order_header_in-purch_date = sy-datum .
order_header_in-req_date_h = sy-datum.
order_items_in-itm_number = itemno.
order_items_in-material = p_matnr.
order_items_in-req_qty = quantity.
append order_items_in.
order_schedule_in-itm_number = itemno.
order_schedule_in-req_qty = quantity.
append order_schedule_in.
order_schedule_in-req_date = sy-datum.
order_partners-partn_role = partnertype.
order_partners-partn_numb = p_kunnr.
append order_partners.
order_partners-itm_number = itemno.
CALL FUNCTION 'Z_BAPI_SALESORDER_SIMULATE'
EXPORTING
ORDER_HEADER_IN = order_header_in
CONVERT_PARVW_AUART = ' '
DELAY = 0
IMPORTING
SALESDOCUMENT =
ORDER_HEADER_EX =
SOLD_TO_PARTY =
SHIP_TO_PARTY =
BILLING_PARTY =
RETURN =
ORDER_HEADER =
TABLES
ORDER_ITEMS_IN = order_items_in
ORDER_PARTNERS = order_partners
ORDER_SCHEDULE_IN = order_schedule_in
ORDER_CONDITIONS_IN =
ORDER_ITEMS_OUT =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CCARD =
ORDER_CCARD_EX =
ORDER_SCHEDULE_EX =
ORDER_CONDITION_EX = order_condition_ex
ORDER_INCOMPLETE =
MESSAGETABLE = messagetable
EXTENSIONIN =
PARTNERADDRESSES =
WMDVSX =
WMDVEX =
Z_AVAIL_OUT =
ORDER_SCHEDULE_IN2 =
ORDER_SCHEDULE_EX2 =
ORDER_ITEMS_IN2 =
ORDER_PARTNERS2this is not solving it Ashish ,
I am using a BAPI: Z_BAPI_SALESORDER_SIMULATE, this Bapi is similar to the BAPI_SALESORDER_SIMULATE. It has customizations that are similar to the customizations done for order in the SAP system at my organization.
Checking CONDITIONS EX , for free goods
I am using Function module :Z_BAPI_SALESORDER_SIMULATE to simulate pricing conditions.
I am trying to figure out the reason for the function module: Z_BAPI_SALESORDER_SIMULATE not giving values in CONDITIONS EX when I use it to simulate free goods .
It is only not giving ORDER_CONDITION_EX for free goods materials.
BAPI simulates Bill of material, regular orders properly.
Example : one material has on free good .
Should give output in ORDER_CONDITION_EX
It is giving an output in ORDER_ITEMS_OUT - two materials line item 10 , 15 .
However in ORDER_CONDITION_EX it does not return anything , number of entries is zero .
I know my data for input are correct as I can make a sale order with the same data.
In the Output in the MESSAGETABLE I get the message
T ID NUM MESSAGE
W V4 160 Minimum quantity 1 EA of free goods has not been reached
Please help me with : What is the reason for this message? I am able to make a sale order with the same data
I am using exactly the same data in VA01 to create a sale order as I am using to test this BAPI: Z_BAPI_SALESORDER_SIMULATE
Please help me at the earliest to solve this problem
BAPI INPUT :
ORDER_HEADER_IN OR
CONVERT_PARVW_AUART
Tables Value
ORDER_ITEMS_IN 1 Entry
ORDER_PARTNERS 2 Entries
ORDER_SCHEDULE_IN 1 Entry
ORDER_CONDITIONS_IN 0 Entries
ORDER_ITEMS_OUT 0 Entries
ORDER_CFGS_REF 0 Entries
ORDER_CFGS_INST 0 Entries
ORDER_CFGS_PART_OF 0 Entries
ORDER_CFGS_VALUE 0 Entries
ORDER_CFGS_BLOB 0 Entries
ORDER_CCARD 1 Entry
ORDER_CCARD_EX 0 Entries
ORDER_SCHEDULE_EX 0 Entries
ORDER_CONDITION_EX 0 Entries
ORDER_INCOMPLETE 0 Entries
MESSAGETABLE 0 Entries
EXTENSIONIN 0 Entries
PARTNERADDRESSES 1 Entry
WMDVSX 0 Entries
WMDVEX 0 Entries
Z_AVAIL_OUT 0 Entries
ORDER_SCHEDULE_IN2 0 Entries
ORDER_SCHEDULE_EX2 0 Entries
ORDER_ITEMS_IN2 0 Entries
ORDER_PARTNERS2 0 Entries
BAPI Output is :
Import parameters Value
ORDER_HEADER_IN OR I have this filled in
CONVERT_PARVW_AUART
DELAY 0
Export parameters Value
SALESDOCUMENT
ORDER_HEADER_EX OR
SOLD_TO_PARTY
SHIP_TO_PARTY
BILLING_PARTY
RETURN
ORDER_HEADER OR sales area 00/00/0000 00/00/0000
Tables Value
ORDER_ITEMS_IN 1 Entry
Result: 1 Entry
ORDER_PARTNERS 2 Entries
Result: 2 Entries
ORDER_SCHEDULE_IN 1 Entry
Result: 1 Entry
ORDER_CONDITIONS_IN 0 Entries
Result: 0 Entries
ORDER_ITEMS_OUT 0 Entries
Result: 2 Entries
ORDER_CFGS_REF 0 Entries
Result: 0 Entries
ORDER_CFGS_INST 0 Entries
Result: 0 Entries
ORDER_CFGS_PART_OF 0 Entries
Result: 0 Entries
ORDER_CFGS_VALUE 0 Entries
Result: 0 Entries
ORDER_CFGS_BLOB 0 Entries
Result: 0 Entries
ORDER_CCARD 1 Entry
Result: 1 Entry
ORDER_CCARD_EX 0 Entries
Result: 0 Entries
ORDER_SCHEDULE_EX 0 Entries
Result: 2 Entries
ORDER_CONDITION_EX 0 Entries
Result: 0 Entries
ORDER_INCOMPLETE 0 Entries
Result: 0 Entries
MESSAGETABLE 0 Entries
Result: 1 Entry
EXTENSIONIN 0 Entries
Result: 0 Entries
PARTNERADDRESSES 1 Entry
Result: 3 Entries
WMDVSX 0 Entries
Result: 0 Entries
WMDVEX 0 Entries
Result: 0 Entries
Z_AVAIL_OUT 0 Entries
Result: 0 Entries
ORDER_SCHEDULE_IN2 0 Entries
Result: 0 Entries
ORDER_SCHEDULE_EX2 0 Entries
Result: 0 Entries
ORDER_ITEMS_IN2 0 Entries
Result: 1 Entry
ORDER_PARTNERS2 0 Entries
Result: 2 Entries -
BAPI_SALESORDER_SIMULATE- FREE GOODS - ORDER_CONDITION_EX
Hi Gurus,
I am using standard Function module : BAPI_SALESORDER_SIMULATE to simulate pricing conditions.
I am trying to figure out the reason for the function module: BAPI_SALESORDER_SIMULATE not giving values in CONDITIONS EX when I use it to <b>simulate free goods</b> .
It is only not giving ORDER_CONDITION_EX for <b>free goods</b> materials.
BAPI simulates Bill of material, regular orders properly.
Example : one material has on free good .
Should give output in ORDER_CONDITION_EX
It is giving an output in ORDER_ITEMS_OUT - two materials line item 10 , 15 .
However in ORDER_CONDITION_EX it does not return anything , number of entries is zero .
What could be the reason. What is the correct input for the BAPI for it to give conditions in ORDER_CONDITION_EX for free goods.
I know my data for input are correct as I can make a sale order with the same data.
Please help me at the earliest to solve this problem.
<u>BAPIs reference : standard BAPI_SALESORDER_SIMULATE'</u>
CALL FUNCTION 'BAPI_SALESORDER_SIMULATE'
EXPORTING
ORDER_HEADER_IN = order_header_in
CONVERT_PARVW_AUART = ' '
DELAY = 0
IMPORTING
SALESDOCUMENT =
ORDER_HEADER_EX =
SOLD_TO_PARTY =
SHIP_TO_PARTY =
BILLING_PARTY =
RETURN =
ORDER_HEADER =
TABLES
ORDER_ITEMS_IN = order_items_in
ORDER_PARTNERS = order_partners
ORDER_SCHEDULE_IN = order_schedule_in
ORDER_CONDITIONS_IN =
ORDER_ITEMS_OUT =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CCARD =
ORDER_CCARD_EX =
ORDER_SCHEDULE_EX =
ORDER_CONDITION_EX = order_condition_ex
ORDER_INCOMPLETE =
MESSAGETABLE = messagetable
EXTENSIONIN =
PARTNERADDRESSES =
WMDVSX =
WMDVEX =
AVAIL_OUT =
ORDER_SCHEDULE_IN2 =
ORDER_SCHEDULE_EX2 =
ORDER_ITEMS_IN2 =
ORDER_PARTNERS2
<u>Program being developed based on this BAPI</u>
selection-screen begin of block b1 with frame title text-001.
parameters : p_kunnr like kna1-kunnr,
p_matnr like vbap-matnr,
p_vkorg like vbak-vkorg,
p_vtweg like vbak-vtweg,
p_spart like vbak-spart.
selection-screen end of block b1.
data: doctype like bapisdhead-doc_type value 'OR',
itemno like bapiitemin-itm_number value '000010',
quantity(13) type N value '0000000000001',
partnertype like knvp-parvw value 'AG'.
data :count type i.
data : begin of order_condition_ex occurs 0.
include structure bapicond.
data: end of order_condition_ex.
data: begin of order_header_in.
include structure bapisdhead.
data: end of order_header_in.
data: begin of order_items_in occurs 1.
include structure bapiitemin.
data: end of order_items_in.
data: begin of order_partners occurs 1.
include structure bapipartnr.
data:end of order_partners.
data: begin of order_schedule_in occurs 1.
include structure bapischdl.
data:end of order_schedule_in.
data: begin of messagetable occurs 0 .
Include structure bapiret2.
data: end of messagetable.
order_header_in-doc_type = doctype.
order_header_in-sales_org = p_vkorg.
order_header_in-distr_chan = p_vtweg.
order_header_in-division = p_spart.
order_header_in-purch_date = sy-datum .
order_header_in-req_date_h = sy-datum.
order_items_in-itm_number = itemno.
order_items_in-material = p_matnr.
order_items_in-req_qty = quantity.
append order_items_in.
order_schedule_in-itm_number = itemno.
order_schedule_in-req_qty = quantity.
append order_schedule_in.
order_schedule_in-req_date = sy-datum.
order_partners-partn_role = partnertype.
order_partners-partn_numb = p_kunnr.
append order_partners.
order_partners-itm_number = itemno.
CALL FUNCTION 'Z_BAPI_SALESORDER_SIMULATE'
EXPORTING
ORDER_HEADER_IN = order_header_in
CONVERT_PARVW_AUART = ' '
DELAY = 0
IMPORTING
SALESDOCUMENT =
ORDER_HEADER_EX =
SOLD_TO_PARTY =
SHIP_TO_PARTY =
BILLING_PARTY =
RETURN =
ORDER_HEADER =
TABLES
ORDER_ITEMS_IN = order_items_in
ORDER_PARTNERS = order_partners
ORDER_SCHEDULE_IN = order_schedule_in
ORDER_CONDITIONS_IN =
ORDER_ITEMS_OUT =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CCARD =
ORDER_CCARD_EX =
ORDER_SCHEDULE_EX =
ORDER_CONDITION_EX = order_condition_ex
ORDER_INCOMPLETE =
MESSAGETABLE = messagetable
EXTENSIONIN =
PARTNERADDRESSES =
WMDVSX =
WMDVEX =
Z_AVAIL_OUT =
ORDER_SCHEDULE_IN2 =
ORDER_SCHEDULE_EX2 =
ORDER_ITEMS_IN2 =
ORDER_PARTNERS2Hi Eswar and friends,
I am using a BAPI : Z_BAPI_SALESORDER_SIMULATE , this Bapi is similar to the BAPI_SALESORDER_SIMULATE . It has customizations that are similar to the customizations done for order in the SAP system at my organization.
<b>
In the Output in the MESSAGETABLE I get the message
<b>
T ID NUM MESSAGE
W V4 160 Minimum quantity 1 EA of free goods has not been reached
</b>
Please help me with : What is the reason for this message?</b> I am able to make a sale order with the same data
<b>I am using exactly the same data in VA01 to create a sale order as I am using to test this BAPI: Z_BAPI_SALESORDER_SIMULATE </b>
Please help me at the earliest to solve this problem
BAPI INPUT :
ORDER_HEADER_IN OR
CONVERT_PARVW_AUART
Tables Value
ORDER_ITEMS_IN 1 Entry
ORDER_PARTNERS 2 Entries
ORDER_SCHEDULE_IN 1 Entry
ORDER_CONDITIONS_IN 0 Entries
ORDER_ITEMS_OUT 0 Entries
ORDER_CFGS_REF 0 Entries
ORDER_CFGS_INST 0 Entries
ORDER_CFGS_PART_OF 0 Entries
ORDER_CFGS_VALUE 0 Entries
ORDER_CFGS_BLOB 0 Entries
ORDER_CCARD 1 Entry
ORDER_CCARD_EX 0 Entries
ORDER_SCHEDULE_EX 0 Entries
ORDER_CONDITION_EX 0 Entries
ORDER_INCOMPLETE 0 Entries
MESSAGETABLE 0 Entries
EXTENSIONIN 0 Entries
PARTNERADDRESSES 1 Entry
WMDVSX 0 Entries
WMDVEX 0 Entries
Z_AVAIL_OUT 0 Entries
ORDER_SCHEDULE_IN2 0 Entries
ORDER_SCHEDULE_EX2 0 Entries
ORDER_ITEMS_IN2 0 Entries
ORDER_PARTNERS2 0 Entries
BAPI Output is :
Import parameters Value
ORDER_HEADER_IN OR I have this filled in
CONVERT_PARVW_AUART
DELAY 0
Export parameters Value
SALESDOCUMENT
ORDER_HEADER_EX OR
SOLD_TO_PARTY
SHIP_TO_PARTY
BILLING_PARTY
RETURN
ORDER_HEADER OR SO500750 00/00/0000 00/00/0000
Tables Value
ORDER_ITEMS_IN 1 Entry
Result: 1 Entry
ORDER_PARTNERS 2 Entries
Result: 2 Entries
ORDER_SCHEDULE_IN 1 Entry
Result: 1 Entry
ORDER_CONDITIONS_IN 0 Entries
Result: 0 Entries
ORDER_ITEMS_OUT 0 Entries
Result: 2 Entries
ORDER_CFGS_REF 0 Entries
Result: 0 Entries
ORDER_CFGS_INST 0 Entries
Result: 0 Entries
ORDER_CFGS_PART_OF 0 Entries
Result: 0 Entries
ORDER_CFGS_VALUE 0 Entries
Result: 0 Entries
ORDER_CFGS_BLOB 0 Entries
Result: 0 Entries
ORDER_CCARD 1 Entry
Result: 1 Entry
ORDER_CCARD_EX 0 Entries
Result: 0 Entries
ORDER_SCHEDULE_EX 0 Entries
Result: 2 Entries
ORDER_CONDITION_EX 0 Entries
Result: 0 Entries
ORDER_INCOMPLETE 0 Entries
Result: 0 Entries
MESSAGETABLE 0 Entries
Result: 1 Entry
EXTENSIONIN 0 Entries
Result: 0 Entries
PARTNERADDRESSES 1 Entry
Result: 3 Entries
WMDVSX 0 Entries
Result: 0 Entries
WMDVEX 0 Entries
Result: 0 Entries
Z_AVAIL_OUT 0 Entries
Result: 0 Entries
ORDER_SCHEDULE_IN2 0 Entries
Result: 0 Entries
ORDER_SCHEDULE_EX2 0 Entries
Result: 0 Entries
ORDER_ITEMS_IN2 0 Entries
Result: 1 Entry
ORDER_PARTNERS2 0 Entries
Result: 2 Entries
<b>Additional Note :</b>
<b>Checking CONDITIONS EX , for free goods</b>
I am using Function module :Z_BAPI_SALESORDER_SIMULATE to simulate pricing conditions.
I am trying to figure out the reason for the function module: Z_BAPI_SALESORDER_SIMULATE not giving values in CONDITIONS EX when I use it to simulate free goods .
It is only not giving ORDER_CONDITION_EX for free goods materials.
BAPI simulates Bill of material, regular orders properly.
Example : one material has on free good .
Should give output in ORDER_CONDITION_EX
It is giving an output in ORDER_ITEMS_OUT - two materials line item 10 , 15 .
However in ORDER_CONDITION_EX it does not return anything , number of entries is zero .
I<b> know my data for input are correct as I can make a sale order with the same data.</b> -
BAPI_SALESORDER_SIMULATE can be used in case of Sales Order Change?
Hi All,
I'm using FM 'BAPI_SALESORDER_CHANGE' to update sales order.
It's working fine even multiful item (delete, add, changing item).
But I need to give simulated information to SAP portal before changing Sales order.
This 'BAPI_SALESORDER_SIMULATE' FM looks like for creating new Sales Order.
Is there any other simulation BAPI FM for Sales order change?
Thanks.Hi,
You can use
BAPI_ORDER_CHANGE_STATUS_GET Change status for order
BAPI_SALESORDER_CHANGE Sales Order: Change Sales Order
Thanks
Sarada -
How to make means of transport field as a mandatory field in MV45AFZZ
Hi All,
I am new to User-Exits.
In Sales Order creation I have got a requirement In such a way that based on Sold to and Shipto Party Combination of sales order
I have to make Means of Transport Field as a Mandatory Field.
I have gone through the Program MV45AFZZ.
Please let me know how to do it .
Regards.
Rohit.Hi ,
Write code in Save_Document_prepare In program MV45AFZZ.
Constant :c_flag type c .
if c_flag eq space.
IF VBAK-VSBED EQ '01' AND VBKD-TRATY IS INITIAL.
MESSAGE E0001(SABAPDOCU) WITH 'Enter means of transport'.
endif.
c_flag = 'X'.
endif.
Regards.
Eshwar. -
Does MV45AFZZ user exit trigger when CRM sales order is replicated into ECC
Hi All,
When a Sales order is created in CRM, it is replicated automatically using BDOCS from CRM into ECC.
I have requirement to code the logic during the process, when sales order is replicated into ECC.
So I need to know the BAPI which is actually triggered to create sales order in ECC, while replication takes place.
If I could atleast know, if USEREXITS in MV45AFZZ would trigger or not, when CRM order is replicated into ECC, then I could determine, If I could code my logic in those user exits.
Please help me on this.please check this link
keremgomi=wordpress=com
Rgds
Raj -
Early help : BAPI_SALESORDER_SIMULATE- FREE GOODS - Warning Message
Hi Gurus,
I am using a BAPI : Z_BAPI_SALESORDER_SIMULATE , this Bapi is similar to the BAPI_SALESORDER_SIMULATE . It has customizations that are similar to the customizations done for order in the SAP system at my organization.
In the Output in the MESSAGETABLE I get the message
<b>
T ID NUM MESSAGE
W V4 160 Minimum quantity 1 EA of free goods has not been reached
Please help me with : What is the reason for this message? I am able to make a sale order with the same data
I am using exactly the same data in VA01 to create a sale order as I am using to test this BAPI: Z_BAPI_SALESORDER_SIMULATE</b>
Please help me at the earliest to solve this problem
BAPI INPUT :
ORDER_HEADER_IN OR
CONVERT_PARVW_AUART
Tables Value
ORDER_ITEMS_IN 1 Entry
ORDER_PARTNERS 2 Entries
ORDER_SCHEDULE_IN 1 Entry
ORDER_CONDITIONS_IN 0 Entries
ORDER_ITEMS_OUT 0 Entries
ORDER_CFGS_REF 0 Entries
ORDER_CFGS_INST 0 Entries
ORDER_CFGS_PART_OF 0 Entries
ORDER_CFGS_VALUE 0 Entries
ORDER_CFGS_BLOB 0 Entries
ORDER_CCARD 1 Entry
ORDER_CCARD_EX 0 Entries
ORDER_SCHEDULE_EX 0 Entries
ORDER_CONDITION_EX 0 Entries
ORDER_INCOMPLETE 0 Entries
MESSAGETABLE 0 Entries
EXTENSIONIN 0 Entries
PARTNERADDRESSES 1 Entry
WMDVSX 0 Entries
WMDVEX 0 Entries
Z_AVAIL_OUT 0 Entries
ORDER_SCHEDULE_IN2 0 Entries
ORDER_SCHEDULE_EX2 0 Entries
ORDER_ITEMS_IN2 0 Entries
ORDER_PARTNERS2 0 Entries
BAPI Output is :
Import parameters Value
ORDER_HEADER_IN OR I have this filled in
CONVERT_PARVW_AUART
DELAY 0
Export parameters Value
SALESDOCUMENT
ORDER_HEADER_EX OR
SOLD_TO_PARTY
SHIP_TO_PARTY
BILLING_PARTY
RETURN
ORDER_HEADER OR SO500750 00/00/0000 00/00/0000
Tables Value
ORDER_ITEMS_IN 1 Entry
Result: 1 Entry
ORDER_PARTNERS 2 Entries
Result: 2 Entries
ORDER_SCHEDULE_IN 1 Entry
Result: 1 Entry
ORDER_CONDITIONS_IN 0 Entries
Result: 0 Entries
ORDER_ITEMS_OUT 0 Entries
Result: 2 Entries
ORDER_CFGS_REF 0 Entries
Result: 0 Entries
ORDER_CFGS_INST 0 Entries
Result: 0 Entries
ORDER_CFGS_PART_OF 0 Entries
Result: 0 Entries
ORDER_CFGS_VALUE 0 Entries
Result: 0 Entries
ORDER_CFGS_BLOB 0 Entries
Result: 0 Entries
ORDER_CCARD 1 Entry
Result: 1 Entry
ORDER_CCARD_EX 0 Entries
Result: 0 Entries
ORDER_SCHEDULE_EX 0 Entries
Result: 2 Entries
ORDER_CONDITION_EX 0 Entries
Result: 0 Entries
ORDER_INCOMPLETE 0 Entries
Result: 0 Entries
MESSAGETABLE 0 Entries
Result: 1 Entry
EXTENSIONIN 0 Entries
Result: 0 Entries
PARTNERADDRESSES 1 Entry
Result: 3 Entries
WMDVSX 0 Entries
Result: 0 Entries
WMDVEX 0 Entries
Result: 0 Entries
Z_AVAIL_OUT 0 Entries
Result: 0 Entries
ORDER_SCHEDULE_IN2 0 Entries
Result: 0 Entries
ORDER_SCHEDULE_EX2 0 Entries
Result: 0 Entries
ORDER_ITEMS_IN2 0 Entries
Result: 1 Entry
ORDER_PARTNERS2 0 Entries
Result: 2 Entries
Additional Note :
Checking CONDITIONS EX , for free goods
I am using Function module :Z_BAPI_SALESORDER_SIMULATE to simulate pricing conditions.
I am trying to figure out the reason for the function module: Z_BAPI_SALESORDER_SIMULATE not giving values in CONDITIONS EX when I use it to simulate free goods .
It is only not giving ORDER_CONDITION_EX for free goods materials.
BAPI simulates Bill of material, regular orders properly.
Example : one material has on free good .
Should give output in ORDER_CONDITION_EX
It is giving an output in ORDER_ITEMS_OUT - two materials line item 10 , 15 .
However in ORDER_CONDITION_EX it does not return anything , number of entries is zero .
I know my data for input are correct as I can make a sale order with the same data.AMit ,
as per my knowledge , this message is coming from SPRO
<b>T ID NUM MESSAGE
W V4 160 Minimum quantity 1 EA of free goods has not been reached
Please help me with : What is the reason for this message? I am able to make a sale order with the same data</b>
<b>1.First try in Va01 with the same Data then check ? If u get the same message then problem with ur input data</b>
regards
Prabhu -
Hi Gurus,
I am using a BAPI : Z_BAPI_SALESORDER_SIMULATE , this Bapi is similar to the BAPI_SALESORDER_SIMULATE . It has customizations that are similar to the customizations done for order in the SAP system at my organization.
In the Output in the MESSAGETABLE I get the message
T ID NUM MESSAGE
W V4 160 Minimum quantity 1 EA of free goods has not been reached
Please help me with : What is the reason for this message? I am able to make a sale order with the same data
I am using exactly the same data in VA01 to create a sale order as I am using to test this BAPI: Z_BAPI_SALESORDER_SIMULATE
Please help me at the earliest to solve this problem
BAPI INPUT :
ORDER_HEADER_IN OR
CONVERT_PARVW_AUART
Tables Value
ORDER_ITEMS_IN 1 Entry
ORDER_PARTNERS 2 Entries
ORDER_SCHEDULE_IN 1 Entry
ORDER_CONDITIONS_IN 0 Entries
ORDER_ITEMS_OUT 0 Entries
ORDER_CFGS_REF 0 Entries
ORDER_CFGS_INST 0 Entries
ORDER_CFGS_PART_OF 0 Entries
ORDER_CFGS_VALUE 0 Entries
ORDER_CFGS_BLOB 0 Entries
ORDER_CCARD 1 Entry
ORDER_CCARD_EX 0 Entries
ORDER_SCHEDULE_EX 0 Entries
ORDER_CONDITION_EX 0 Entries
ORDER_INCOMPLETE 0 Entries
MESSAGETABLE 0 Entries
EXTENSIONIN 0 Entries
PARTNERADDRESSES 1 Entry
WMDVSX 0 Entries
WMDVEX 0 Entries
Z_AVAIL_OUT 0 Entries
ORDER_SCHEDULE_IN2 0 Entries
ORDER_SCHEDULE_EX2 0 Entries
ORDER_ITEMS_IN2 0 Entries
ORDER_PARTNERS2 0 Entries
BAPI Output is :
Import parameters Value
ORDER_HEADER_IN OR I have this filled in
CONVERT_PARVW_AUART
DELAY 0
Export parameters Value
SALESDOCUMENT
ORDER_HEADER_EX OR
SOLD_TO_PARTY
SHIP_TO_PARTY
BILLING_PARTY
RETURN
ORDER_HEADER OR SO500750 00/00/0000 00/00/0000
Tables Value
ORDER_ITEMS_IN 1 Entry
Result: 1 Entry
ORDER_PARTNERS 2 Entries
Result: 2 Entries
ORDER_SCHEDULE_IN 1 Entry
Result: 1 Entry
ORDER_CONDITIONS_IN 0 Entries
Result: 0 Entries
ORDER_ITEMS_OUT 0 Entries
Result: 2 Entries
ORDER_CFGS_REF 0 Entries
Result: 0 Entries
ORDER_CFGS_INST 0 Entries
Result: 0 Entries
ORDER_CFGS_PART_OF 0 Entries
Result: 0 Entries
ORDER_CFGS_VALUE 0 Entries
Result: 0 Entries
ORDER_CFGS_BLOB 0 Entries
Result: 0 Entries
ORDER_CCARD 1 Entry
Result: 1 Entry
ORDER_CCARD_EX 0 Entries
Result: 0 Entries
ORDER_SCHEDULE_EX 0 Entries
Result: 2 Entries
ORDER_CONDITION_EX 0 Entries
Result: 0 Entries
ORDER_INCOMPLETE 0 Entries
Result: 0 Entries
MESSAGETABLE 0 Entries
Result: 1 Entry
EXTENSIONIN 0 Entries
Result: 0 Entries
PARTNERADDRESSES 1 Entry
Result: 3 Entries
WMDVSX 0 Entries
Result: 0 Entries
WMDVEX 0 Entries
Result: 0 Entries
Z_AVAIL_OUT 0 Entries
Result: 0 Entries
ORDER_SCHEDULE_IN2 0 Entries
Result: 0 Entries
ORDER_SCHEDULE_EX2 0 Entries
Result: 0 Entries
ORDER_ITEMS_IN2 0 Entries
Result: 1 Entry
ORDER_PARTNERS2 0 Entries
Result: 2 Entries
Additional Note :
Checking CONDITIONS EX , for free goods
I am using Function module :Z_BAPI_SALESORDER_SIMULATE to simulate pricing conditions.
I am trying to figure out the reason for the function module: Z_BAPI_SALESORDER_SIMULATE not giving values in CONDITIONS EX when I use it to simulate free goods .
It is only not giving ORDER_CONDITION_EX for free goods materials.
BAPI simulates Bill of material, regular orders properly.
Example : one material has on free good .
Should give output in ORDER_CONDITION_EX
It is giving an output in ORDER_ITEMS_OUT - two materials line item 10 , 15 .
However in ORDER_CONDITION_EX it does not return anything , number of entries is zero .
I know my data for input are correct as I can make a sale order with the same data.hello,
I am using a BAPI: Z_BAPI_SALESORDER_SIMULATE, this Bapi is similar to the BAPI_SALESORDER_SIMULATE. It has customizations that are similar to the customizations done for order in the SAP system at my organization.
Checking CONDITIONS EX , for free goods
I am using Function module :Z_BAPI_SALESORDER_SIMULATE to simulate pricing conditions.
I am trying to figure out the reason for the function module: Z_BAPI_SALESORDER_SIMULATE not giving values in CONDITIONS EX when I use it to simulate free goods .
It is only not giving ORDER_CONDITION_EX for free goods materials.
BAPI simulates Bill of material, regular orders properly.
Example : one material has on free good .
Should give output in ORDER_CONDITION_EX
It is giving an output in ORDER_ITEMS_OUT - two materials line item 10 , 15 .
However in ORDER_CONDITION_EX it does not return anything , number of entries is zero .
I<b> know my data for input are correct as I can make a sale order with the same data.
In the Output in the MESSAGETABLE I get the message
T ID NUM MESSAGE
W V4 160 Minimum quantity 1 EA of free goods has not been reached
Please help me with : What is the reason for this message? I am able to make a sale order with the same data</b>
I am using exactly the same data in VA01 to create a sale order as I am using to test this BAPI: Z_BAPI_SALESORDER_SIMULATE
Please help me at the earliest to solve this problem
BAPI INPUT :
ORDER_HEADER_IN OR
CONVERT_PARVW_AUART
Tables Value
ORDER_ITEMS_IN 1 Entry
ORDER_PARTNERS 2 Entries
ORDER_SCHEDULE_IN 1 Entry
ORDER_CONDITIONS_IN 0 Entries
ORDER_ITEMS_OUT 0 Entries
ORDER_CFGS_REF 0 Entries
ORDER_CFGS_INST 0 Entries
ORDER_CFGS_PART_OF 0 Entries
ORDER_CFGS_VALUE 0 Entries
ORDER_CFGS_BLOB 0 Entries
ORDER_CCARD 1 Entry
ORDER_CCARD_EX 0 Entries
ORDER_SCHEDULE_EX 0 Entries
ORDER_CONDITION_EX 0 Entries
ORDER_INCOMPLETE 0 Entries
MESSAGETABLE 0 Entries
EXTENSIONIN 0 Entries
PARTNERADDRESSES 1 Entry
WMDVSX 0 Entries
WMDVEX 0 Entries
Z_AVAIL_OUT 0 Entries
ORDER_SCHEDULE_IN2 0 Entries
ORDER_SCHEDULE_EX2 0 Entries
ORDER_ITEMS_IN2 0 Entries
ORDER_PARTNERS2 0 Entries
BAPI Output is :
Import parameters Value
ORDER_HEADER_IN OR I have this filled in
CONVERT_PARVW_AUART
DELAY 0
Export parameters Value
SALESDOCUMENT
ORDER_HEADER_EX OR
SOLD_TO_PARTY
SHIP_TO_PARTY
BILLING_PARTY
RETURN
ORDER_HEADER OR sales area 00/00/0000 00/00/0000
Tables Value
ORDER_ITEMS_IN 1 Entry
Result: 1 Entry
ORDER_PARTNERS 2 Entries
Result: 2 Entries
ORDER_SCHEDULE_IN 1 Entry
Result: 1 Entry
ORDER_CONDITIONS_IN 0 Entries
Result: 0 Entries
ORDER_ITEMS_OUT 0 Entries
Result: 2 Entries
ORDER_CFGS_REF 0 Entries
Result: 0 Entries
ORDER_CFGS_INST 0 Entries
Result: 0 Entries
ORDER_CFGS_PART_OF 0 Entries
Result: 0 Entries
ORDER_CFGS_VALUE 0 Entries
Result: 0 Entries
ORDER_CFGS_BLOB 0 Entries
Result: 0 Entries
ORDER_CCARD 1 Entry
Result: 1 Entry
ORDER_CCARD_EX 0 Entries
Result: 0 Entries
ORDER_SCHEDULE_EX 0 Entries
Result: 2 Entries
ORDER_CONDITION_EX 0 Entries
Result: 0 Entries
ORDER_INCOMPLETE 0 Entries
Result: 0 Entries
MESSAGETABLE 0 Entries
Result: 1 Entry
EXTENSIONIN 0 Entries
Result: 0 Entries
PARTNERADDRESSES 1 Entry
Result: 3 Entries
WMDVSX 0 Entries
Result: 0 Entries
WMDVEX 0 Entries
Result: 0 Entries
Z_AVAIL_OUT 0 Entries
Result: 0 Entries
ORDER_SCHEDULE_IN2 0 Entries
Result: 0 Entries
ORDER_SCHEDULE_EX2 0 Entries
Result: 0 Entries
ORDER_ITEMS_IN2 0 Entries
Result: 1 Entry
ORDER_PARTNERS2 0 Entries
Result: 2 Entries -
Help needed in Form userexit_save_document_prepare include MV45AFZZ
Hi Experts,
I need to check the values entered in table control under sales tab in VA01.
If the item category for a material is 'TANN' it should save if not it should not save and display an error message and then it should alow the user to edit the table control values.
how do i achieve it in Form userexit_save_document_prepare include MV45AFZZ.
this is what I have done. kindly check the logic and help me further.
case sy-ucomm.
when 'SICH'. " On Save action
if vbak-vtweg eq 'HA'. " Check Distribution channel
flg_dh = 'X'. " Sets if DC is 'HA'.
endif.
if flg_dh eq 'X'.
if vbap-pstyv eq 'TANN'. " Check item category
flg_itmc = 'X'. " Set if item cat is 'TANN'.
else.
message 'SO could not be created Please enter brokerage material' type 'E'.
endif.Hi,
Please use the following:
when 'SICH'. " On Save action
if vbak-vtweg eq 'HA'. " Check Distribution channel
flg_dh = 'X'. " Sets if DC is 'HA'.
endif.
if flg_dh eq 'X'.
if vbap-pstyv eq 'TANN'. " Check item category
flg_itmc = 'X'. " Set if item cat is 'TANN'.
else.
message 'SO could not be created Please enter brokerage material' type 'E' display like 'E'.
endif.
endif. -
Enhancement spot in MV45AFZZ.
Hii All,
I got a problem when i am writing enhancement spot in MV45AFZZ.
I have added some new fields in 8459 sub-screen at item level in VA01 transaction
some of those fields are mandatory for some materials
Now if the user goes for a save with out entering those fields in addtional tab B, i am rising a error that field is not entered in Additional tab B.
Now everything is fine i am able to trigger that error message by writing the error message in USEREXIT_SAVE_DOCUMENT. By writing a enhancement spot.
whenever i trigger this error message if i go and enter the corresponding fields in Additional tab B at item level it is saying that the " Item SOME NO say 00010 does not exist " and it is going out of the transaction with out saving the sales order .
If i dont click the save button and going directly to that additional data tab and entering the corresponding field and going for save it is saving.
I am getting the problem if i click the save button before entering those fields. wht could be the problem?
please help me.
Thanks ,
Ravindra.Hii,
@ Ankesh Saharan :
If i change the error message to information or warning it will go for a save even though those mandatory fields are missing.
@ TARAPADA DAN :
I tried using the exit USEREXIT_SAVE_DOCUMENT_PREPARE.
But the problem is based on the material number entered in the screen i am fetching part location type from MVKE. using that part location i am triggering error messages.
when i try to refer the material number as VBAP-MATNR it is blank in the exit USEREXIT_SAVE_DOCUMENT_PREPARE. So i cant use this exit.
any one please answer my question
Thanks,
Ravindra.
Maybe you are looking for
-
I was trying to draw a tables with 11 rows and 3 rows as a starts to try to make address labels. Downloading an Avery template didn't work. I opened the Inspector on a word processing blank page but none of the selections worked. "Body rows" and "
-
Why must I reset sharing password every time host computer is shut down?
Using 10.7.5 on iMac desktop. Sharing Internet via Airport card. Every time the host computer is powered down the sharing password must be reset. Have tried using both security settings offered with same result.
-
ITunes won't reconize iPod.
I have 30 GB iPod video and my computer will reconize it bit not iTunes. I also have a 4 GB iPod mini and iTunes reconizes that just fine. Any help is appriciated.
-
ClassCastException out of JNDI
I have an object I am placing in the JNDI tree through a WebLogic startup class. I then have other classes that access that object. Right now I am doing testing and I want to get at that object through a servlet. The problem is that I get a ClassCast
-
Hello friends I have a question regarding WIP quantities in SAP, is it possible through some development or BADI to get WIP quanties for make-to-order or make-to-stock environment (manufacturing through production orders). As far as i know SAP associ