In Loop how to move condition type data
Hello Experts,
In loop while i am collecting data in final loop,
I have different pack sizes in pricing procedures viz. p10kg,
p20kg., p15kg.....like wise along with BED, EDU CESS,
Sec & High & VAT . i have fetch data from KONV.
for this i have written two select queries for pack size only in it_konv and other for taxes in it_konv1.
now, for one item no. i have three pack sizes 10, 20 40.
see the following.
FORM GET_ITEM.
DATA: QUANT TYPE KONV-KWERT.
CLEAR QUANT.
CLEAR WA_FINAL-BEDTX.
CLEAR WA_FINAL-EDUTX.
CLEAR WA_FINAL-SECTX.
CLEAR WA_FINAL-VATTX.
LOOP AT IT_VBRK INTO WA_VBRK.
WA_FINAL-VBELN = WA_VBRK-VBELN.
WA_FINAL-FKDAT = WA_VBRK-FKDAT.
WA_FINAL-KUNAG = WA_VBRK-KUNAG.
READ TABLE IT_KNA1 INTO WA_KNA1 WITH KEY KUNNR = WA_VBRK-KUNAG.
WA_FINAL-ADRNR = WA_KNA1-ADRNR.
READ TABLE IT_ADRC INTO WA_ADRC WITH KEY ADDRNUMBER = WA_KNA1-ADRNR.
WA_FINAL-NAME1 = WA_ADRC-NAME1.
WA_FINAL-STREET = WA_ADRC-STREET.
WA_FINAL-STRET1 = wa_adrc-STR_SUPPL1.
WA_FINAL-STRET2 = WA_ADRC-STR_SUPPL2.
WA_FINAL-CITY1 = WA_ADRC-MC_CITY1.
WA_FINAL-POSTAL = WA_ADRC-POST_CODE1.
WA_FINAL-TIMEZ = WA_ADRC-TIME_ZONE.
LOOP AT IT_VBRP INTO WA_VBRP WHERE VBELN = WA_VBRK-VBELN.
WA_FINAL-ITEM = WA_VBRP-POSNR.
WA_FINAL-SALQT = WA_VBRP-FKIMG.
WA_FINAL-SALUN = WA_VBRP-VRKME.
WA_FINAL-MATNR = WA_VBRP-MATNR.
WA_FINAL-DESCP = WA_VBRP-ARKTX.
WA_FINAL-ORDNO = WA_VBRP-AUBEL.
LOOP AT IT_KONV INTO WA_KONV WHERE KNUMV = WA_VBRK-KNUMV.
WA_FINAL-PACKSZ = WA_KONV-KSCHL.
WA_FINAL-EXVALUE = WA_KONV-KWERT.
WRITE : / WA_FINAL-PACKSZ,
WA_FINAL-EXVALUE.
LOOP AT IT_KONV1 INTO WA_KONV1 WHERE KNUMV = WA_VBRK-KNUMV.
IF SY-SUBRC = 0.
IF WA_KONV1-KSCHL = 'JEXP' .
WA_FINAL-BEDTX = WA_KONV1-KWERT.
ELSEIF WA_KONV1-KSCHL = 'JECS'.
WA_FINAL-EDUTX = WA_KONV1-KWERT.
ELSEIF WA_KONV1-KSCHL = 'JA1X'.
WA_FINAL-SECTX = WA_KONV1-KWERT.
ELSEIF WA_KONV1-KSCHL = 'JIVP'.
WA_FINAL-VATTX = WA_KONV1-KWERT.
ENDIF.
ENDIF.
ENDLOOP.
ENDLOOP.
ENDLOOP.
APPEND WA_FINAL TO IT_FINAL.
ENDLOOP.
ENDFORM.
plz experts giv me solution.
Thaanks In Advance,
Ashish.
>
sunny vaswani wrote:
> yeh kya code kyu paste kiya hai
>
> there is no solution for this question kindly close this thread.
use common language, which is english.
Similar Messages
-
How to change condition type data on header of a sales order
Hi Guys,
I have a requirement, where i want to change the value of particular condition type at header lever of sales order.
How to do it.If i am not wrong , this can be achived by CRM ORDER MAINATAIN .But how to do it i dont know.
So please help me for this requirement
Regards
PGHi PG,
Can you please let me know if you were able to do this. I have a similar requirement where in I need to change the value of a condition type.
I am new to CRM , so it will be great if you can please explain me the steps.
Thanks in advance.
Regards,
Vivek -
How to find condition type for a particular material document no.
hiiiiii
How to find condition type for a particular material document no.Hi
Condition types are maintained at PO level
Take the EKKO-KNUMV and pass to
KONV-KNUMV field and take the different condition types values from KONV
Take the Material Document No (MBLNR) and pass to MSEG table and take the EBELN field and from EKKO table take EKKO-KNUMV field and pass to KONV
see the table T685 for different condition types.
<b>Reward points for useful Answers</b>
Regards
Anji -
How to find condition type for a material???
How to find condition type for a material??
Hi Suman.
Refer the following
tcodes:http://www.tcodesearch.com/sap-tables/search?q=condition+types
and http://wiki.scn.sap.com/wiki/display/Snippets/Get?original_fqdn=wiki.sdn.sap.com
Please search for condition type with pricing condition/pricing procedure.
Regards,
Kannan -
Condition type date should be same to the pricing procedure date
hi
i have an problem
the problem is that condition type date is not same to the pricing procedute date
details of the problem
1. created a sales order the pricing date is 01.04.2006
2. when i go conditions in the sales order, as i go for details of the condition type date the is 04.04.2006
this date should be same ie 01.04.2006
give the solutions and relevant fields or procedure for this i will be greatful to all of u
byeBraja,
Check this
Goto the billing plan tab in the corresponding line item and check the rule that is determined. Now go to the configuration of this rule table by using the path
SPRO>SD> Billing> Billing Plan> Define rules for determining dates and choose your Applicable rule and click on the details.
There you will see the Calendar ID field where you will have to maintain the applicable factory calendar. I think this should work and your billing date on the item relevant for billing plan should be the same as the other item.
Hope this helps,
Ravin -
Can we move char type data to packed decimal
Hi
can we move char type data to packed decimal??
Thanks
DeviHi..
that depends on the data in the character variable..
if that character variable contains onli numbers then it is possible.
<b>data c type c value '1'.
data p type p.
p = c.
write p.</b>
here the output is 1.
If it contains even a single Alphabet , then it goes for a dump.
<b>data c type c value 'A'.
data p type p.
p = c.
write p.</b>
here u will get a short dump.
hope u understood.
regards,
sai ramesh -
How to send condition types from one client to other ?
Hi ,
I have a requirement to send condition types (VK13) from one client to other exp : 350 to 320
In Vk13 we have one button send condition when we press that data need to move to specified client.
I have no idea about this please help me.
It is very urgent plz thanks in Adv.
Regards,
Raj.Hi,
YOu can do with ALE and EDI by configuring the systems as per the requirement.
You can create 2 Logical systems for sending and receiving in two different clients and can continue with idocs by sending them to the clients.
You can go thru the below links to get more info about ALE and EDI.
http://www.sapgenie.com/ale/index.htm
http://www.sapgenie.com/sapedi/index.htm
regards
Rakesh -
How to move all app data from one user to another? (One mac)
Hi. I've been having this problem for a while. So recently, I've made a new account for myself, since I was using my mom's user account. I don't want to keep all of my files, emails, and icloud on her user, since it's used by everyone in my family. I use iMail now because hotmail blocked my email because "Someone hacked me" and they kept it locked for all these months, and I can't give enough proof to show it was mine, since I forgot every email I've sent now.
And iMail is pretty cool, adding your own rules and stuff. Except you don't need a password to log in. I just deactivate my iMail via system preferences as a log-out, and then re-activate it as a log-in.
So, back to the question.
How can I move ALL app data from my mom's user account to my new one? Her acount also has pictures of our germany vacation. So not every file.
You see, I game on my mac mostly because steam is really complicated, using internet just to play a game that doesn't need internet and stuff.
And steam doesn't have a lot of casual games.
So I want to move my game data, save files and every little piece of application info that my games have on my mom's account to mine. I've asked this question on Yahoo answers, and all I got was an answer of "File IS data, or datum itself, You are wrong. I cannot give you an answer." -.-
I'm not experienced with terminal either, so I'll need a ton of explanation of how to use it if that's how it can be done. It really really confuses me and I'll just give up.
Thanks in advance.
Oh and, side question, When will OS X Mavericks be open to public and how much will it cost?Nour j wrote:
Oh and, side question, When will OS X Mavericks be open to public and how much will it cost?
http://www.apple.com/osx/preview/
Will be released sometime in the fall. Cost unknow at this time as Apple has not released this info to the public. -
HOW TO DEFAULT CONDITION TYPES FROM INCO TERMS?
Hi,
I want to Default Condition types based on the Inco terms selected. once the user selects the Inco terms the Corresponding Condition types should default in the Purchase Order.
Ex: For Inco Terms EXW: Ex Works the Condition type Frieght should not Appear whereas For FOB(free on board) frieght Condition should appear.
Is there a Config for this?
How can we do it?
NSIn pricing, please create Price Determination Process based on
incoterms
SPRO -> Materials Management -> Purchasing
-> Conditions -> Define Price Determination Process ->
Maintain Condition Table
create a new condition table (Maintain Condition Table->Create condition table)
for INCOTERM combination and go ahead ! -
How to attach condition type to a vendor
hi
this problem is related to import procurement.
for import procurement we have one condition type ZDUT - (copy of custom duty). we have defined custom official as one vendor (xyz) to whom we pay custom duty. we want this condition type ZDUT to be attached to this vendor (xyz) to whom we pay custom duty.
while making import PO we select condition type ZDUT and change the default vendor to the vendor to whom we want to pay this duty but by default system takes material supplier as default vendor for this duty.
we want system to pick vendor (xyz) as a default vendor for this custom duty (ZDUT) not material supplier so that even if we forgot to change this vendor, system takes vendor (xyz) for custom duty.
how this can be made.
thanks & regards'
manoj guptaHi,
Incorporate this ZDUT in suitable position in Supplementary pricing procedure ( for Inforecords , in standard RM0002 ) then maintain info record , in inforecord maintainance against your condition ZDUT Enter value , click on details and maintain vendor. While creating the Purchase order this vendor will get defaulted.
Thanks & Regards,
Sridhar.G -
How to include condition types in tax codes
Hi
can anyone help me in including the user defined condition types in the tax codes creation ..
that is in FTXP i would like to add my condition types so that i can specify the % of tax against my condition types..
and also how these amounts get updated in PO after giving the respective tax code in PO
regards,
RajaHi Raja,
As per below mail it seems that you are using TAXINJ.
I assume that for your country setting you have assigned TAXINJ procedure.
After the above setting you can go and add your customer defined condition types in TAXINJ procedure or be it any procedure combination you have selected.
Once you have added your condition types in TAXINJ the same would be available in FTXP for its Rate maintenance as system picks all the condition types for the procedure as per Country and Tax procedure assignment.
Trust it helps to sort the issue out.
Rgds,
Rajeev Ganju -
How to get condition type for invoice
How to get the condition type for invoice.
i want tables and corresponding fieldsSunil,
KONV ,T685T and the following are related tablesVBAK,VBRP,VBAP,VBFA.
K.Kiran. -
How get the condition type of PO's item
Dear All,
I want to get the condition type of PO's item.
I have checked the EKPO, there is Purchasing Info Record but no Purchasing info record category(esokz) that is the key of in table A017.
How can i get the Purchasing info record category(esokz) of PO's item?
Thank you in advance.Hi,
Purchase info records are stored in EINA and EINE table. The field you are looking for is in table EINE.
Hope this helps.
ashish -
How to change condition type of Markdown price?
Dear Expert,
When I active markdown price, the system create price with condition type VKP0 (same as article regular retail price). Now I want system create price with other condition type, for example ZXXX.
Could you give any help or tips? Thank you very much!!
Robin HuXiaowei Hu
You solved the problem?
Tks
Filipe Borges -
How to move full repair data from DSO1 (soruce) to DSO2(target)?
Hello experts,
I doing full repair for po in first level ods, Do i have to move this data from first level ods to second leve ods? or the daily nightly delta from first leve ods to second level ods will take care of it?
If i have to load the data from first level ods to second level ods how to do it?
do i have to delete the data first from first level ods before i do the full repair for the po? or just run the infopackage for the po's with the full repair option checked?
note:we don't use dtp here to load data from bi to bi here.
Thanks in advance.
Sharat.Delete the first level and second level DSO' s data and set a full repair in the infopackage. the delte will take take all data to second level as ur deleting the data from second level.
Maybe you are looking for
-
Hi, new to the forums and apple tbh. Moving into a new house and want to set up a sound system, thought apple would be the way to go as I have iPads, iPhones, iPod touch and nanos. I also have a few sets of Bose speakers which I would like to incorpo
-
My husband and I are divorcing and we have used his apple ID for our 2 apple tv's. He changed his password and now I no longer have access to the 300 or more movies, tv shows and music. He keeps telling me that , there is no way for us both to hav
-
How to read data from external memory
Hi all, I am using MB5B report in my program to get Current stock. So, I have submitted MB5B report in background and i have exported the result to SAP memory. Now i want to read some of the values of exported output. I don want to use complete MB5B
-
SPOTLIGHT NOT WORKING PROPERLY
Hello all--- I have noticed for the past few weeks that my Spotlight is not working properly. I can put in a search term for a file I **KNOW** is on my HD but it returns no results. During a search for a fix on this site, I found one person's fix by
-
Dashboard Links At the top of Screen visibility
Hi, When I enter as a Presentation Catalog Administrator to Answers, I can not see the some dashboard links at the top of screen. But I have access right to enter them. Is there any configuration about the visibility of the links of dashboards at the