How to check 2 condition types (kschl)
Hi,
READ TABLE i_komv WITH KEY kposn = ekPo-ebelp kschl EQ 'JEC1' OR
KSCHL EQ 'JMO1'.
how to write this above stmt? I have to check 2 condition types with a single read stmt?
regards,
Star Shankar
I guess Kishan wants to refer as:
READ TABLE i_komv WITH KEY kposn = ekPo-ebelp .
if <b>i_komv-</b>kschl EQ 'JEC1' OR
<b>i_komv-</b>KSCHL EQ 'JMO1'.
....<code>
endif.
As KSCHL is part of internal table I_KOMV.
or
READ TABLE i_komv WITH KEY kposn = ekPo-ebelp .
check i_komv-kschl EQ 'JEC1' OR i_komv-KSCHL EQ 'JMO1'.
....<code>
Kishan,
Correct me if i am wrong.
Regards
Eswar
Similar Messages
-
Find condition type (kschl) for a particular material document no (mblnr)
hiiiiii
How to find condition type (kschl) for a particular material document no (mblnr).Hello,
<b>Check the table A017 and KONV.</b>
Vasanth -
How to update Ztable from Excel file and how to check conditions ,
HI this uday,
pls help me how can i update Ztable from Excel file and how to check conditions .
regards
uday
Moderator message: please (re)search yourself before asking.
Edited by: Thomas Zloch on Jul 13, 2010 12:00 PMHi
Use Fm : ALSM_EXCEL_TO_INTERNAL_TABLE.
L_INTERN : internal table with your fields .
make sure that the fields in the Excel should be formatted (as numeric , characher ) depending upon the data types .
LOOP AT L_INTERN INTO WA_LINTERN .
MOVE WA_LINTERN-COL TO L_INDEX.
ASSIGN COMPONENT L_INDEX OF STRUCTURE WA_INREC TO <FS> .
IF SY-SUBRC = 0.
MOVE WA_LINTERN-VALUE TO <FS>.
ENDIF.
AT END OF ROW . "#EC *
APPEND WA_INREC TO IT_DATA. "
CLEAR WA_INREC.
ENDAT.
ENDLOOP.
Regards
Swapnil -
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 -
How to check data type of the field symbol at run time
Hi,
My code is as following:
LOOP AT <fs> ASSIGNING <wa_covp_ext>.
ASSIGN COMPONENT 86 OF STRUCTURE <wa_covp_ext> TO <f_zzname>.
IF sy-subrc = 0.
ASSIGN COMPONENT 158 OF STRUCTURE <wa_covp_ext> TO <f_pernr>.
IF sy-subrc = 0.
SELECT SINGLE sname INTO <f_zzname> FROM pa0001
WHERE pernr = <f_pernr>
AND endda GE sy-datum
AND begda LE sy-datum.
ENDIF.
ENDIF.
ENDLOOP.
This query is giving dump when <f_zzname> is type P length 8 and decimals 2, because it tries to put PA0001-sname into it which is type C length 30. So I want to check the type of <f_zzname> before the select statement. If it is character 30, then I will write the select statement else not.
How to check data type of the field symbol at run time? If it's not possible, then can somebody suggest a workaround? Thanks.check this ...
write describe statement ...
field-symbols : <f_zzname> .
data : sname like pa0001-sname,
typ(10).
assign sname to <f_zzname>.
describe field <f_zzname> type typ.
write : typ. <-- typ contains character type in this case ..
U can check if typ is of character(C) if so .. write the select statement ... -
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 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 check the type of uploaded file
Hi, experts,
how can I check the type of the uploaded file? I am dealing with exception handling now: when user uploads a type of file which is not allowed, then error msg shows up. So first I have to retrieve the type of the uploaded file.
Best regards,
FanBest approach would be to control the file upload program. Here in force user to chose only the kind of file supported.
If you are using WD4A & fileupload UI element, then after user select a file to upload, before processing the file you can check the file name and get its MIME TYPE as shown below.
example
data type file string.
data dot_offset type i.
data extension type mimetypes-extension.
data mimetype type mimetypes-type.
file = 'Image.jpg'.
" Find out file name extension
find first occurrence of regex '\.[^\.]+$' in file match offset dot_offset.
add 1 to dot_offset.
extension = file+dot_offset.
" Get mime type
call function 'SDOK_MIMETYPE_GET'
exporting
extension = extension
importing
mimetype = mimetype.
later using if/else or CASE statement define your logic.
Greetings
Prashant
P.S. Points Welcome -
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 check variable type?
Hi,
How to get variable type if I want to check variable
type.which function or class do thsi.Thanks
MarkI believe you use the function typeof()
ie
var myString:String = "test";
trace(typeof(myString)); //should output string -
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 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
Maybe you are looking for
-
HD or Booting problem on MSI K7N2 Delta 2 Platinum
Hi all, Ive a weird issue which i cant figure out myself. I've 2 HD's..lets call them A and B where A = 60Gb (Master) and B = 80Gb (Slave) It's is like this: A and B are connected to the primary IDE-slot. A will boot when set as Master and B wont sta
-
Occasional MacBook Pro 8,1 / Feb 2011 trackpad button fails to work
Having this really annoying problem on occasion with a new 13" MBP (purchased a month ago in Toronto from the Apple Store Eaton) - every once in a while the trackpad button will fail to work. The trackpad will function just fine, but the button will
-
Can we rename the system generated constraint_name as per our convenience ?
I created a table by CREATE TABLE table_name AS (SELECT * FROM existing_table_name WHERE 1=2); and got the all constraints of the existing table with default names. I want to rename those constraints as per current table data. thank you in advance Ed
-
How Manage MySQL Databases on Leopard Server?
How can i work with MySQL I like to setup a Wordpresspage. What do i need to manage the Database for that case? I am a beginer! Thx in advance
-
I have been using iDVD successfully for quite a few years now, and I am having trouble for the first time. I have v. 4.0, and everytime I try to burn it quits as soon as the multiplexing starts, or it will burn the entire content of the video, then o