Function Module for getting the Sales Price for a condition type
Hi,
I am looking for a standard function module to which I can pass my condition type(new customizing) and it will return the sales price. The customer is going to create some new condition type to manitain the sales price. I'll have the necessary information like material/sales org/distribution channel, customer and need the standard function module to read the condition records for that condition type(as configured) and give me the price. PLease help if you know of a standard function module performing this.
Thanks in advance.
Regards
Malthi
Hi malthi ,
welcome to sdn
for material sales area u can look for the validations is table MVKE.
the classification of the conditions is in tables like A901, a902 etc which in my opinion holds the condition types per classification .
put a A* in se11 and this will give the list of tables per classification .
u need to get the conditions as per kschl and dmbtr and
etc..
like this ..
Get Condition Values for Material/Plant combination
IF NOT i_a916[] IS INITIAL.
SELECT knumh kappl kschl krech
kbetr konwa kpein kmein
INTO TABLE i_konp
FROM konp
FOR ALL ENTRIES IN i_a916
WHERE knumh EQ i_a916-knumh AND
kappl EQ i_a916-kappl AND
kschl EQ i_a916-kschl AND
loevm_ko NE 'X'.
ENDIF.
Get Condition Values for Material/Plant/Ordertype/
Customer combination
IF NOT i_a925[] IS INITIAL.
SELECT knumh kappl kschl krech
kbetr konwa kpein kmein
APPENDING TABLE i_konp
FROM konp
FOR ALL ENTRIES IN i_a925
WHERE knumh EQ i_a925-knumh AND
kappl EQ i_a925-kappl AND
kschl EQ i_a925-kschl AND
loevm_ko NE 'X'.
ENDIF.
just check this Fm if u can apply ur condition over here ..
ME_GET_PRICE_CONDITION
regards,
VIjay.
Similar Messages
-
Function module to get the BOM details for a material-plant combination
hi
Is there any function module to get the BOM details such as
BOM Usage -STLAN
Alternative BOM -STLAL
Items -POSNR
Required Quantity-EMENG
Resulting Quantity-MENGE
Unit of measure -BMEIN
Base unit of measure-MEINS
for a given material-plant combination
if so please suggest me some FMs.................
Awaiting for ur reply..............try the below fm it may be useful for you
DATA : BEGIN OF I_BOM OCCURS 0.
INCLUDE STRUCTURE STPOX.
DATA : END OF I_BOM.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
DATUV = SY-DATUM
MEHRS = 'X'
MTNRV = P_MATNR
WERKS = P_WERKS
TABLES
STB = I_BOM
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
CONVERSION_ERROR = 8
OTHERS = 9.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
just befor use it check your application area.for my case it is PP01. you can find it in CS12 when you are exploding the bom the value you are giving in BOM application that is the value for CAPID.
Just go to se37 and checkout the fm it has lot of options here I am using the minimum things.
regards
shiba dutta -
Function module to get the payment details for PO
Hi,
Is there any standard function modlue to get the payment details for specific purchase order or is there any table where we can get the payment details till date.
My requirement is purchase order wise how much already paid to vendor and what is the balance amount to be paid vendor.
thanks in advance....
Regards,
SreeHello
BAPI_PO_GETDETAIL will help you.
Look at structures PO_ITEM_HISTORY and PO_ITEM_HISTORY_TOTALS
Also you may use table EKBE -
Copying the sales price data into Condition type
Dear SD Gurus,
Iam in a typical situation. my client is into Electrical Installation and services, so based on the tender documents, they quote the project.
they are doing costing (ie arriving at a supply rate) in quotation. To arrive at a supply rate, they are entering the cost price of the material ie (PR00) in the quotation and adding the profit (for eg : ZPRF condition type) for it. now my problem is i have to add these two condition types into one condition type to arrive at a selling price. how can i achieve this.
And also while creating the sales order with reference to quotation, these two condition types (ie cost price(PR00) and profit (ZPRF) should not get displayed in the sales order.
Is there any solution for this method.
eagerly waiting for your replies.
Thanking you all in advance
rgdsHi SD
First of all for project quotation the best practice documentation is available in SAP Discrete Manufacturing ,please go through it . that will help.
Secondly for getting costs in quotation level pricing u can use either of 2 conditions EK02 or VPRS that will give cost .
Add Profit condition to it .
U can use different pricing procedure for quotation and sales order and in copy controls give routine to redetermine manually.
Else if u r using the same pricing procedure ,take help of Abap developer for changing table controls in program.
Check whether u can use Transaction SHD0.
Hope this helps
Regards
Mandar -
How do I get the subsidized price for a new phone when I already have a plan?
I have been a Verizon customer since September. I have a dumb phone, and I'm really having trouble keeping up with my life. Now that the Droid 4 is coming out in February I've decided that it's time to upgrade. The Droid is coming out at $199 with a two year contract, I think. My question is, what do I have to do to get the subsidized price for the phone? In my current contract I can't upgrade until 2013. Should I cancel that contract all together and just pay the ETF? Then get a new contract with the new phone? Can I even do that? Also, would there be any way to keep my phone number in this situation?
Thanks for your help, Verizon Community!koddienj wrote:
Ok I kno it ***** but here is what i have done in the past when i had your same situation I have been a VW customer for about 13 years so i had old equipment lying around that i could use but If you are a new verizon customer you will have to find an older phone that does not require a monthly data package. You say you have a dumb phone so your old equipment mite all ready work for this. Here is what you do
Go to Verizon and get the new phone you want tell them you will be adding a line to your account so you can sign up and get the new Droid 4 phone for the discounted price of $199 tell them you want to add the phone to your plan and convert your existing plan to a family plan this should be around the same price as you are currently paying unless you have an unlimited plan. But there is an extra monthly charge of $10 more per month per xtra phone on the plan up to 4 + the 1 original phone. so you are allowed 5 total on a family plan.
Then the following day you transfer the new phone to your old number and vise versa.
You now shut off the old phone and put it in a draw. You now have the new phone you want and dont have to pay the early term fee. the early term fee is pro rated so every month it will go down by $5-$10 per month im not sure exactly how much. You can call verizon and ask exactly how much it is
Although this way it will end up costing you $240 24mo x $10 you do not have to pay it all up front and if you ever have a problem with your droid ie (breaks,stolen,loss) you have a back up that will be ready to go Plus you get to keep your current number
Hope this helps
Actually, if you are not ALREADY on a Family Plan, it WILL end up costing you more than this extra $10/month. For example, if you are on the 450 minute Individual Plan, you are paying $40/month and possibly $20/month for unlimited texting. The smallest Family Plan(700 minutes/month) would put you at $70/month and if you want the same unlimited texting, it would be an additional $30/month. This is $100/month vs $60/month on an Individual Plan which comes out to an additional $40/month x 19 months(24 months - 5 months you have already completed on your original line) = $760 ADDITIONAL you would pay until you could cancel your original line. If you wanted to keep your original #, though, you would instead pay an ADDITIONAL $960($40 x 24 months) until you could cancel your new line. Either way, it would MUCH cheaper to just pay full retail for the new phone.
Remember, this is ONLY if you are currently on an Individual Plan and change to a Family Plan with 2 phones. If you are currently on a Family Plan with others, and have the ability to add an additional line, your additional payments would not be this high. -
Bapi or Function Module to do the availability check for Planned Orders
Hi all,
I need a Bapi or a Function Module to do the availability check for a Planned Orders. Anyone knows how?
I will use it in an Exit.
Thanks in advance
Points will be givenI think I found it.
If anyone is searching for it too, we will use these one:
CO_ZA_AVAIL_CHK_ORDER_MULTI -
Function module to find the attachment list for an accounting document?
Is there a function module to find the attachment list for an accounting document? Or which table stores such references?
I know I can find this info from the transaction FB03, but is there a function module to find the attachments for an accounting document? So far I only found the attachments are stored in the table SOOD, and archived documents in table TOA03, but I can't find the table that stores the links between the accounting document and its attachments?
<b><REMOVED BY MODERATOR></b>
Thanks,
Ning
Message was edited by:
Alvaro Tejada GalindoHi,
i_object1-typeid = 'YARSATTA'. "<<< Give your Object id name
i_object1-catid = 'BO'.
i_object1-instid = i_yarsitem-docno. "<<<< Document Number
call method cl_gos_attachment_query=>count_for_object
exporting
is_object = i_object1
ip_arl = space
receiving
rt_stat = i_stat1.
read table i_stat1 into wa_stat1 index 1.
if sy-subrc eq c_0.
move wa_stat1-counter to v_attno1.
endif.
For link you need to check for table SRGBTBREL
and also please check class CL_GOS*
a® -
Function Module to get the TIMESTAMP
Hi,
Is there any function module to get the TIMESTAMP as Outout , if i give input Time and Date.
Or,
If I go for the concatenate statement.. Do I need to concate the commas in to the target field?
Because,
I am not getting the proper result with this concatenate statement where I concatenated the YYYYMMDDHHMMSS in to the DECIMAL 15 Variable.
Thanks,
Naveen Inuganti.Hi use
IB_CONVERT_INTO_TIMESTAMP' or IB_CONVERT_FROM_TIMESTAMP'
Example:
* Declaring the work variables.......................
DATA :
timestamp like TZONREF-TSTAMPS,
time like sy-uzeit,
date like sy-datum.
* The following function module is used to convert the
* time and date into GMT timestamp
CALL FUNCTION 'IB_CONVERT_INTO_TIMESTAMP'
EXPORTING
i_datlo = sy-datum
i_timlo = sy-uzeit
I_TZONE = 'INDIA'
IMPORTING
E_TIMESTAMP = timestamp.
* The following function module is used to convert the
* above obtained timestamp to PST time zone date and time.
CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'
EXPORTING
i_timestamp = timestamp
I_TZONE = 'PST'
IMPORTING
E_DATLO = date
E_TIMLO = time.
write :/ 'Date and Time at PST zone is ',date, time. -
Function module to get the sequence numbers based on PERNR & payroll period
Hi,
Right now i am using the function module 'CU_READ_RGDIR' to get the sequence number based on the PERNR. Once i get the data i am filtering based on payroll periods (begin date and end date). Is there any function module to get the sequence number directly based on PERNR and payroll period dates? if so could you let me know.
Thanks
SatyaI think thats the only way
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
persnr = p0001-pernr
TABLES
in_rgdir = it_rgdir
EXCEPTIONS
no_record_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
check whether "Pay date for payroll result" with in Start Date and
End date, and "Reason for Off-Cycle Payroll" is initial
LOOP AT it_rgdir WHERE paydt >= v_begda
AND paydt <= v_endda AND
void IS INITIAL
AND ocrsn IS INITIAL
AND srtza = 'A'.
v_seqnr = it_rgdir-seqnr.
ENDLOOP.
Hope this helps.
Thanks
Kiran -
Function module to get the configuration of Individual objects
Hi all,
Is there is any std function module to get the data of individual object configuration.
In table COM_TA_R3_ID, I can able to get the PRODUCT_GUID (for material and serial number) and I dont know how to get the configuration of the product by using the PRODUCT_GUID.
Pl through some light on this.
Regards
A.Sureshbabu.Hi,
You can get the item configuration using FM CRM_CONFIG_READ_OW.
This is used to read the product configurations for IPC calls.
Just pass the configured item guid and it will return the configuration data.
Use FM CRM_PRODUCT_I_READ_OW to get the product configurations but this FM checks whether any item has this product guid.
Regards,
Arun Kumar
Edited by: Arun Kumar on May 12, 2010 10:20 AM -
Function module to get the difference of dates ..
Hi ,
Can somebody pls help me with the function module to get the difference between two dates?
I need to find the difference value and delete records if >1.
Thanks in advance.
Regds,
Leeza.Leeza,
When I tested the FM in my Program, it is <b>working</b>!!!!!
Note that the Two Input Dates are to be in the format of <b>DATS</b> type (Eg: <b>vimimv-dmibeg</b>).
U can want the Day which u have specified in the parameter I_DATUM_BIS (eg: 20050101) to be included for
the calculation , then put X in the parameter I_KZ_INCL_BIS.
Sample Code :
report zkam01.
data:
<b>sav_nlaufz like rf60v-nlaufz,
date1 type vimimv-dmibeg,
date2 type vimimv-dmiend.</b>
date1 = '20050101'.
date2 = '20051001'.
call function 'MONTHS_BETWEEN_TWO_DATES'
exporting
i_datum_von = date1
i_datum_bis = date2
i_kz_incl_bis = 'X'
importing
e_monate = sav_nlaufz.
write:
date1,
/ date2,
/ sav_nlaufz.
Please allot points if the problem is solved.
Thanks
Kam
Message was edited by: Kam -
Function Module to update the sales order header status
Hi,
I am looking for a function module to update the Sales order header status.
Pls. let me know if anybody has used any FM to update the SO status.
Thanks,By mentioning status do you mean Object status or Document status??
For Object status you may use FM: STATUS_MAINTAIN
For document status it changes according to flow.
Regards
Eswar -
Report for analyse the sales realisation for a particular period
Hi guys,
Is there any report for analyse the sales realisation for a particular period.
thanks
muraliAble to find the solutin the report S_AHR_61016532 it self.
-
Function Module to get the Screen
Hello All,
Can anybody provide me a Function Module to get the Screen by giving Program Name and Screen Number.
Thanks,Hello
check FM RS_IMPORT_DYNPRO
CALL FUNCTION 'RS_IMPORT_DYNPRO'
EXPORTING
dylang = pmlang
dyname = programname
dynumb = screen
IMPORTING
header = header
TABLES
ftab = ifields
pltab = iflowlogic.
or you have to create join b/w table reposrc and tadir .
Thanks
Anirudh -
How to get the sales price of sales SET
Hi,
I want to get the sales price of a sales set, is ther any fm bapi our class to doe that?
thanzs in advanced to all
JaimeProblem Solved
Maybe you are looking for
-
MouseListener event not triggering sometimes
lineTable = atmBean1.getReturnTable(); //remove the other columns lineTable.removeColumn(lineTable.getColumnModel().getColumn(21)); lineTable.removeColumn(lineTable.getColumnModel().getColumn(20
-
Can you use Quicktime Pro on more than one computer?
I'm thinking about buying a Quicktime Pro 7 key, but I couldn't tell if it is just for one computer, or if I could use it for both my iMac and labtop. Anyone know? Thanks. -Ed
-
I tried to organise my iphoto originals to it would be easier to back them up onto my hard drive, so I renamed them and grouped them in the orinigal file. Now when I go onto iphoto to view the photos in a slide show a big exclamation mark comes up an
-
Decision Step outcomes in English language only
Hi, My issue is little bit different, In my workflow template (WF) i have one user Decision step and currently outcomes are coming in Logon language. but my requirement is to display in English language only. I am working on 4.6c version. When i try
-
E-mail problems I'm experiencing
I don't know if they're related, but here are some things that I have noticed recently. (1) No more whoosh when I send an E-mail. (2) I can no longer send an E-mail to myself, at least I can't receive it. (3) I think that some of my E-mail to others