Inserting new condition Price on BAPI (BAPI_SALESORDER_SIMULATE)
Goodnight everyone,
need to run the bapi BAPI_SALESORDER_SIMULATE, indicating a new condition of payment (KDKGR) and I need after the performance, I return to the same new condition in the table of conditions (ORDER_CONDITION_EX).
The problem is I do not found in any of the structures of the BAPI, the fields relating to the payment terms (KDKGR) and therefore can not get the return of this condition (value and description).
I would be grateful with any help,
hugs,
Vinicius Buscariolli
Moderator message - Welcome to SCN.
You will probably get more response if you mark this as a question.
Also, Please read Please read "The Forum Rules of Engagement" before posting! HOT NEWS!! and How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
Rob
Similar Messages
-
New condition price depending on bill-to-party counrty
Hi everybody,
We are trying to create a new sales condition price that depends on the bill-to-party country. But we can't get it. The only country we can use is the Ship-to party country. Every country we select in the table for the condition refers to the Ship-to party country, not to the Bill-to party country.
Who can help me?
Thanks in advanceHi
<b>You can add new field to field catalog with u r required field , Then create condition table using that new field as follows..</b>
<b>To add field into Field catalogue:</b>
For example if you want to use field PSTYV ('Sales document item category') that is included in structure KOMP ('Pricing Communication Item') as a key for a condition table.
When you create a condition table (Transaction V/03), however, the system does not propose the field in the field catalog.
Prerequisites:
For technical reasons, field PSTYV was included in structure KOMP, however, not in structure KOMG ('Allowed Fields for Condition Structures').
To solve the problem, proceed as follows:
1. Call up the ABAP Dictionary (Transaction SE11) and create data type ZZPSTYV. Choose PSTYV as a domain.As a short text, you can use, for example, 'ZZ - sales document item category' and as a field label, you can use the field labels of PSTYV.Save, check and activate your entries.
2. Call up structure KOMPAZ in the ABAP Dictionary (Transaction SE11) in the change mode and make the following entry:
Component Component type
ZZPSTYV ZZPSTYV
Save, check and activate the change you made.
3. Note:Because of the change in structure KOMPAZ, field ZZPSTYV is now known in structures KOMG and KOMP because structure KOMPAZ is included in both structures.
4. Call up Transaction SPRO. Navigate to 'Sales and Distribution -> Basic Functions -> Pricing -> Pricing Control' and execute 'Define Condition Tables'. Choose 'Conditions: Allowed fields' and include ZZPSTYV as a new entry.
5. Note:Now you can use field ZZPSTYV as a key field when you create a condition table Axxx.
6. Supply the new field you defined by including the following source code line in USEREXIT_PRICING_PREPARE_TKOMP:
MOVE xxxx-PSTYV TO TKOMP-ZZPSTYV.
In order processing you find the user exit in Include MV45AFZZ, and in billing document processing you find it in Include RV60AFZZ.
Consider that you can also use this note as a help if you want to use other customer-specific fields as key fields in a condition table.For header fields, use structure
KOMKAZ instead of structure KOMPAZ and USEREXIT_PRICING_PREPARE_TKOMK instead of USEREXIT_PRICING_PREPARE_TKOMP.
For more information, see Transaction SPRO via the path 'Sales and Distribution -> System Modifications -> Create New Fields (Using Condition
Technique) -> New Fields for Pricing' and Note 21040.
<b>
To creating a condition Table:</b>
1) There are almost all the regularly used Conditon Table predefined in the system from 001 to 500.
See what best you can use the Standard Tables to avoid further errors.
2) In case you should define the new condtion Table,
a) Goto TCode: V/03
b) Give a Table any number from 501-999
Press execute and reach to next screen.
c) Check up whether the field you are looking is already added in Field catalogue.
d) Double click on the fields you want to make a Table..one by one. Note that the sequence here is important in higher hierarchical to lower..
Eample : Sales Org, DC, Division, Customer and then Material etc..,
e) After selecting, click on the Techincal View buttin (redone) and reach to next screen.
7) Check which key should be in header and which key should be footer. Use check and uncheck functionalities there..
8) Once you are through with all the above steps ..click on generate button.
Check the Table is generated or not.
You can check it at V/04 or V/05 or in SE11. -
Dear Members,
I want to insert new condition type between 2 steps but unfortunately, I don;t have any number in between these 2. what is the alternative ?
I have step 310 and step 311, Now I want to include a condition type between these 2 steps. Please let me know.
Thank u.
madhuHi Madhu
In pricing procedure we have a step Counter , so maintain those condition types in counter only
So as you have step 310 go to new entries ->maintain step 310 counter 1 and maintain condition type and step 310 counter 2 and maintain 2nd condition type then those condition types will be between 310 and 311 steps only
Regards
Srinath -
CRM 5.0 ISA insert new price condition from order entry screen
In CRM 4.0 we wrote a custom field on the order entry screen that shows the list price (sub 1), we allow the user to change this value (inserts a PB00 price condition in the item pricing) and validates the change is within a certain % of the list price.
The jco method we used in 4.0 no longer exist in 5.0, been using the 55 page IPC VMC PDF in note 809820 but still can't figure out how to replicate.
Any help on what class / method might help us insert a manual price condition from ISA would be appreciated.It could be possible to use CRM BAdI to do this function.
-
How to insert new service condition in PO using BAPI_PO_CHANGE?
Hi all,
I'm trying to insert a new condition under a service line in a PO. This can be seen in ME23N under the services tab of the PO item. Then click on conditions (the button with the dollar and yen symbol).
I tried using the internal table POCOND and POCONDX. But these tables update the conditions of the PO item itself and not the service conditions. In ME23N this is the conditions tab of the PO item.
build condition item table
wa_conditem-change_id = 'I'.
wa_conditem-itm_number = wa_items-po_item.
wa_conditem-cond_type = c_condtypz.
wa_conditem-cond_value = l_plndisamt.
wa_conditem-currency = l_poheader-currency.
APPEND wa_conditem TO it_conditem.
CLEAR wa_conditem.
build condition item change parameter table.
wa_conditemx-itm_number = wa_items-po_item.
wa_conditemx-itm_numberx = 'X'.
wa_conditemx-cond_type = 'X'.
wa_conditemx-cond_value = 'X'.
wa_conditemx-currency = 'X'.
wa_conditemx-change_id = 'X'.
APPEND wa_conditemx TO it_conditemx.
CLEAR wa_conditemx.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = wa_ekpo_u-ebeln
TABLES
return = it_return
poitem = it_poitem
poitemx = it_poitemx
pocond = it_conditem
pocondx = it_conditemx
EXCEPTIONS
OTHERS = 1.
I tried using the internal tables POCONDHEADER and POCONDHEADERX but this doesn't seem to insert anything.
Can anyone guide me how to insert a new service condition?
thanks,
ShafiqFound a SAP note 499626 quoted below. So it seems that it's not possible to use BAPI_PO_CHANGE.
"Can I create or change conditions on the service level with BAPI_PO_CREATE1 or BAPI_PO_CHANGE?
Answer:
Such a function is currently not available."
Anybody know any FM to do this?
Edited by: shafiq shamsuddin on Mar 16, 2011 4:38 AM -
Inserting new line item into existing delivery using BAPI
Hi
can you send me the code for inserting new line item into existing delivery either using BAPI or
Function module.
We are using SAP 4.7 versionHi Sreekanth,
Refer to this links
New item for outbound delivery via FM/BAPI?
/message/3976349#3976349 [original link is broken]
BAPI_OUTB_DELIVERY_CHANGE Help - Add new line item
hope it is useful to you.
Regards! -
Assigning of excess sequence to condition and adding New condition in Prici
Hi,
We have different pricing procedure for our baisc price present there is no excess sequence assign to it now as per our requirement i have created a new contion table and have assign that to a excess sequence I want to know is there any problem if i assign that Access sequence to conddition what can be the problem ,
and 2nd case
I want to create new condition what is the total process to assign that new condition to our exsiting pricing procedure.
regards,
zafarDear Friend,
there is no problem when you assign the access sequence to the condition at the time you are going to maintain the condition in MEK1 transaction it will ask the different combination
for example material /vendor combination, or material plant combination, or else what accesses your maintained for that access sequence it will ask
in the case of maintaining the conditions in the pricing procedure check the on what the value has to be calculated which step and which counter your assigning the condition based on that it will calculate the value for that condition
Regards
Pramod -
FM or BAPI to create new condition type / record for material - VK11
Hi All,
I need to copy condition records from one material to another material, to do that using the below FM. For the below values even its not raising any exception or creating pricing record. Could any one tell me am i missing any other parameters ?
Please let me know.
*& Report Z_TEST292011
REPORT Z_TEST292011.
data: ls_komg type KOMG,
ls_komv type komv,
lt_komv TYPE TABLE OF komv,
lv_new_record.
*ls_komg-kunnr = '0001000008'. " Cust number
ls_komg-matnr = 'A0168L1600100006'. " Mat number
ls_komg-VKORG = '3101'.
ls_komg-vtweg = '10'.
clear: Lt_komv,LS_KOMV.
ls_komv-kappl = 'V '. " Application V = Sales
ls_komv-kschl = 'ZR00'. " Condition type
ls_komv-krech = 'B'. " calculation type; B -Fixed amount
ls_komv-waers = 'USD'. " Currency
ls_komv-kpein = '100'.
ls_komv-kmein = 'EA'. " Unit of measurement
ls_komv-kbetr = '121.50'. " new condition value
append ls_komv to lt_komv.
CALL FUNCTION 'RV_CONDITION_COPY'
EXPORTING
application = 'V'
condition_table = '005'
condition_type = 'ZR00'
* DATE_FROM = '20110629'
* DATE_TO = '99991231'
ENQUEUE = 'X'
* I_KOMK = ' '
* I_KOMP = ' '
key_fields = ls_komg
MAINTAIN_MODE = 'A'
NO_AUTHORITY_CHECK = 'X'
NO_FIELD_CHECK = 'X'
* SELECTION_DATE = '00000000'
KEEP_OLD_RECORDS = 'X'
* MATERIAL_M =
* USED_BY_IDOC = ' '
* I_KONA =
OVERLAP_CONFIRMED = 'X'
NO_DB_UPDATE = ' '
* USED_BY_RETAIL = ' '
IMPORTING
* E_KOMK =
* E_KOMP =
NEW_RECORD = lv_new_record
* E_DATAB =
* E_DATBI =
* E_PRDAT =
tables
copy_records = lt_komv
* COPY_STAFFEL =
* COPY_RECS_IDOC =
EXCEPTIONS
ENQUEUE_ON_RECORD = 1
INVALID_APPLICATION = 2
INVALID_CONDITION_NUMBER = 3
INVALID_CONDITION_TYPE = 4
NO_AUTHORITY_EKORG = 5
NO_AUTHORITY_KSCHL = 6
NO_AUTHORITY_VKORG = 7
NO_SELECTION = 8
TABLE_NOT_VALID = 9
NO_MATERIAL_FOR_SETTLEMENT = 10
NO_UNIT_FOR_PERIOD_COND = 11
NO_UNIT_REFERENCE_MAGNITUDE = 12
INVALID_CONDITION_TABLE = 13
OTHERS = 14
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
break jdonepud.
call function 'RV_CONDITION_SAVE'.
call function 'RV_CONDITION_RESET'.Hello ,
why dont you try LSMW -RV14BTCI ?
regards
Prabhu -
New Condition type for pricing
Hi,
I have a requirement wherein I want to create new condition type for add on cost of material with manaual entry . this condition is to be given in inforecord.
How to proceed? also, this contion type to be inserted in pricing schema??Dear Smitha,
You may ask what is the condition type?
For example:
- discounts, surcharges or tax taxes add to net price
- delivery costs, cash discounts add to effective price
Discounts or surcharges may be percentage based, quantity dependent, or absolute.
Best Regards,
ian, Wong Loke Foong -
Creating new conditions for a material
Hi,
I need to create new price conditions massively for materials. The conditions I'm talking about are manually editable via transaction COMMPR01 -> choose a material -> "Conditions" tab -> Conditions for BBP Purchasing; there it shows the condition records with their validity interval.
I need to add new conditions for many materials via ABAP by adding a new record with a new price and a new validity interval for each material. I was wondering if there is a FM that does the job.
Can you help me?
Thanks in advance!!No one knows of a function module/bapi that updates the product conditions in srm?
it should do massively what you can do with transaction COMMPR01 -> choose a material -> "Conditions" tab -> Conditions for -> BBP Purchasing (dropdown) -> edit condition records -> save -
Issue with new Condition type..
Hi,
I want to create a Condition Type for VAT %, where we can insert value like...
5% on 60% of Basic Price OR
3% on 70% of Basic Price OR
1% on 80% of Basic Price
Note: - We have try with New Tax code and it's working... But through it, we require mew Tax code as per change condition..
That's why we require a Condition Type for variable %...
Please guide...Hi,
You can do this through two ways.
Option 1
Add new condition type in tax procedure and Make access sequence say with doc type and tax code.
So for old PO's make the variable condition as 100% and for the new ones you need to create that many tax codes.
Option 2:
Write a routine for alternate base that is to be attached in tax procedure. Make a condition type in MM pricing procedure that is statistical and calculates value on base price. Read this base price in the routine. So with this you will not make that many tax codes.
Regards
Sangeeta -
Creation of New Condition Type
Hello SAP Folks,
I have one issue related to pricing. See the case is i have to produce an extra cost in the Sales Order which is actually depended
upon the net price. This condition type is percentage based and calculation works in the following way:
Let the new condition type be Z123 and Net price be PR00.
So for year variation 1-2 year, the condition type Z123 will be 1.5 times of PR00
2-3 year, the condition type Z123 will be 2.0 times of PR00
3-5 year, the condition type Z123 will be 3.0 times of PR00
Can anyone throw light on how to configure this condition type ???
Regards,
SarthakHi,
For Z123 Condition type make (V/06)
Cond. class A Discount or surcharge
Calculat.type A Percentage
Plus/minus A Positive
and all other settings are same as Discount condition Type
For making Z123 customize an Discont Condition Type (EX:K004,)
Then while creating the condition record give the percentage as 150% 1-2 yearin valid from and to date,
give the percentage as 200% 2-3 yearin valid from and to date, give the percentage as 300% 3-4 yearin valid from and to date, and save the record. (VK11)
In the pricing procedure For step z123 condition type from which you want the % that is step of PR00 should be mentioned in the FROM and TO column.(V/08)
This will result as per your requirement -
How to update the condition price in the sales order for all the items
Hi,
How to update the condition price for all the itmes in the sales order to carry out the new price automatically through a stand alone program, for all the orders in the billing due list table?
Thanks,
BalaramHi,
There is a change in the requirement.
Scenario:
I have created a sales order with some 4 condition types, in that 2 condition types are of class A & B and the other two is of class C. Here I need to update the condition price of class A & B only and the remaining condition types should not get update even though there is an updated price is available.
For the above scenario, I need to write a standalone program. Do we have any function modules to update the price of the single condition in the sales order? Please tell me how we can update the sales order at item condition level.
Thanks.
Balaram -
How to update the condition price in sales order while creating the invoice
Hi,
How to update the condition price in the sales order to carry out the new price while creating the invoice?
While creating the invoice it should update the condition price in sales order.
Thanks,
BalaramNo, pricing is not there in delivery.
I found an exit for VF01transaction where we can update the price in order.
Can you please tell me how to update the price if I have the order, material numbers and conditions number?
Thanks,
Balaram -
Creation of new condition type: MWST
Hi, Everyone.
I would like to ask for some help regarding this issue: Creation of new condition type: MWST with the following details:
1. For the country French Polynesia, Create a new VAT condition of 10%.
2. Create a new one called : Class : Z u2013 Designation : France : TOM corresponding to 10 % of VAT to be invoiced
and then associate this new VAT code u201CZu201D to the applicant Nr 221860
If you could provide me a step by step process on how to resolve this, it would be very much appreciated. Thank you so much.Hello
What type of condition type you want.
It is always advisable to create a new conditon type copying a standard condition type.
For gross price condition types select PB00/PBXX
For freight charges, Copy FRA1/FRB1
Regards
Maybe you are looking for
-
Hi, I upload a website and I have problems with the preloader did it in AS3. It starts after two or three minutes. I have a MC with an animation of 100 frames and the dynamic text of the percent. The preloader is located in the 1 frame to the 10, I m
-
HP Officejet Pro 8500 Wireless (DUPLEXER MISSINN)
Hi, can anbody help me please?? I just bought a 2nd hand printer HP Officejet Pro 8500 Wireless. The printer doesnt feed the paper (it does not pick it up). However, the paper goes pass by the printer and leaves through the back. There is no duplexe
-
UTF-8 encoding Funny characters in DB
Dear All, I am Facing a Critical issue which has been lagging, dragging from 3 days, still couldn't figure out an issue I've an XML file which am Getting it from a Server using <cffile action="READ" file="#application.settings.paths" variable="xml" c
-
Hi i applied patch and it show error so i cant able to come out from that session so closed telnet session and i used adctrl all the worker are running so i given 3 option in adctrl (i,e) Tell the worker to quit and i given 5 (i.e) tell the manager t
-
Loading a SWF inside another SWF question
Hello friends, 1. (IMPORTANT) As all we know when putting some Flash SWF inside an HTML page, normally it starts playing as soon as its first frame is loaded. Now in my case I have to load a SWF (let call it Flash A) inside another Flash, I used mx.c