How to retrive rate field in taxinvoice
hi Guru ,
i Write following code but rate field not retrive.
select kbetr kwert kschl from konv INTO CORRESPONDING FIELDS OF table it_konv
FOR ALL ENTRIES IN IT_VBRk where KNUMV = IT_VBrK-KNUMV and kschl = 'ZRPR'.
loop at it_konv.
endloop.
select kbetr kwert kschl from konv INTO CORRESPONDING FIELDS OF table it1_konv
for all entries in IT_VBRk where KNUMV = IT_VBRK-KNUMV and kschl eq 'ZFAB'.
loop at it1_konv.
endloop.
select kbetr kwert kschl from konv INTO CORRESPONDING FIELDS OF table it2_konv
for all entries in IT_VBRk where KNUMV = IT_VBRK-KNUMV and kschl eq 'ZRLB'.
loop at it2_konv .
endloop.
loop at it_vbrp.
read table it_konv with key knumv = it_vbrk-knumv .
read table it1_konv with key knumv = it_vbrk-knumv.
read table it2_konv with key knumv = it_vbrk-knumv.
itabfinal-amount1 = it_konv-kbetr + it1_konv-kbetr + it2_konv-kbetr .
itabfinal-value = it_konv-KWERT + it1_konv-KWERT + it2_konv-KWERT .
append itabfinal.
refresh itabfinal.
endloop.
this code get same rate in different material.
please help.
Hi,
Why you r writing so many times a select query on KONV.
I think you can write the logic as follows
select kbetr kwert kschl from konv INTO CORRESPONDING FIELDS OF table it_konv
for all entries in IT_VBRK
where KNUMV = IT_VBRK-KNUMV
and ( kschl eq 'ZRPR'
or kschl eq 'ZFAB'
or kschl eq 'ZRLB' ) .
loop at IT_VBRP.
read table IT_VBRK with key ebeln = IT_VBRP-VBELN.
if sy-subrc = 0.
loop at IT_KONV where knumv = IT_VBRK-KNUMV
sum the condition values as required.
endloop.
endloop.
With Regards,
Dwarakanath.S
Similar Messages
-
Retrive Rate and Amount field in Taxinvoice
Hi Guru's,
i want to retrive rate and Amount in Taxinvoice . i write follwing code
select kbetr kwert kschl from konv INTO CORRESPONDING FIELDS OF table it_konv
where KNUMV = IT_VBrK-KNUMV and kschl eq 'ZRPR'.
loop at it_konv.
endloop.
select kbetr kwert kschl from konv INTO CORRESPONDING FIELDS OF table it1_konv
where KNUMV = IT_VBRK-KNUMV and kschl eq 'ZFAB'.
loop at it1_konv.
endloop.
select kbetr kwert kschl from konv INTO CORRESPONDING FIELDS OF table it2_konv
where KNUMV = IT_VBRK-KNUMV and kschl eq 'ZRLB'.
loop at it2_konv .
endloop.
loop at it_vbrp.
itabfinal-amount1 = it_konv-kbetr + it1_konv-kbetr + it2_konv-kbetr .
itabfinal-value = it_konv-KWERT + it1_konv-KWERT + it2_konv-KWERT .
append itabfinal.
clear itabfinal-amount1.
clear itabfinal-value.
endloop.
but this code get me output is 0.
please Help Me send me code how to retrive value.
Regards
samHi,
Why you r writing so many select query's on KONV.
I think you can write the logic as follows
select kbetr kwert kschl from konv INTO CORRESPONDING FIELDS OF table it_konv
for all entries in IT_VBRK
where KNUMV = IT_VBRK-KNUMV
and ( kschl eq 'ZRPR'
or kschl eq 'ZFAB'
or kschl eq 'ZRLB' ) .
loop at IT_VBRP.
read table IT_VBRK with key ebeln = IT_VBRP-VBELN.
if sy-subrc = 0.
loop at IT_KONV where knumv = IT_VBRK-KNUMV
sum the condition values
endloop.
endloop.
With Regards,
Dwarakanath.S -
How to activate the "Set Exchange Rate" field in billing document header?
Dear All,
I would like to get the exchange rate at the time of the billing without changing the sales order exchange value.
The set exchange rate field is grayed off.
Thanks in adavance.
Regards,
NiketanHi,
This can be achieved using the copy control setting for billing at the Item level. The field is: PricingExchRate type
and the possible values relevant for you are:
C Exchange rate determination according to billing date
E Exchange rate determination according to current date
Hope this helps!
Thanks
Siva -
Hi eveybody
I´ve got the next scenario:
JDBC---->PI-(Idoc)----->SAP
SAP -(Aleaud)--->PI--
>JDBC.
How could I retrive a field from reference Idoc when the Aleaud Idoc is processed??
Im going to try to explain it better.
In the Outbound Idoc travel a field called FIELD_A.
Before the Aleaud Idoc is sent to PI I need to retrive this FIELD_A that travelled in the reference Idoc and send this FIELD_A in the Aleaud Idoc because I need it in the query used in the JDBC adapter.
How can I do this????
Thanks everybody.
RegardsHi,
Refer to this link..it will help you.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
Regards,
Gaurav Jindal -
How to retrive the overwritten SAP Default Configuration
Hi There,
I was trying to enhance the component BT115IT_SLSO to add some new fields into the table view Items.
I copied the view configuration to my Z config key but by mistake & added the fields into the default view and saved the changes. Now the default configuration is screwed up.
Can some one point out how to retrive the SAP standard configuration( where it is stored ). In the configuration tab of the view the configuration looks ok but in Web UI I see all the columns available in the context node, and makes the view useless, when I go to the personlization of the view all fields shows the message < Error in Meta data > and I can not see the details of the fields.
I have already backed off my enhancement. Now I want to retrive the view configuration.
Your help will be highly appreciated.
Thanks,
Vikash.Issue resolved.
Solution was In BSP workbench when I went to choose configuration I saw that just next to std conf there was column for cust conf. and both were marked X so I deleted the conf and that gave me the standard conf back.
Thanks,
Vikash. -
HI Experts,
How to enable me to edit the exchange rate field in Ap Credit Memo? Coz i have diffrent rate in all transactions within a document....
Thanks.
Regards,
DannyHi Danny,
The field cannot be changed.
There should be no exchange rate difference posting as no money changed hands. You sent the Invoice, it was never paid, you clear it with a Credit Note.
For the stock in the movement, stock is always kept in Local Currency in B1, no exchange rate posting.
Hope it helps,
Jesper -
How to retrive G\L Account name in printlaylout designer
hai frnds,
how to retrive G\L Account name in printlaylout designer, i am able to capture the G\L account code ,by linking this field how to get the G\l account name in PLD
PLz help me .
Regards,
Naresh KU can try bringing the OACT Name field directly via DB field. if not created new DB Field, hold the Key 'ALT' and choose OACT - G/L Accounts table and select the account name field. make a relate to connection with ur Account code field.
shall i ask in which PLD r u now?
Regards,
Dhana. -
How operation (Activity No) field mandatory can be removed in Network.
Hi,
In CAT2 time entries screen for a person who worked on service order,
directly I can book time entries of the person with service order number without entry of operation (activity number) in CAT2 screen, no problem with service order case..
But in case of CAT2 time entries screen for a person who worked on PS network*, entry of network operation field (Activity number) is mandatory.
Please suggest how operation (Activity number) field mandatory can be removed in case of time entries to PS network in CAT2 screen.
I want to book time entries of the person only to the Network number don't want to include operation number in CAT2 screen.
Thanks & Regards
SR .I dont think it would be possible to book timesheet entries directly against a network. Moreover i haven't come across any business scenario that demands timesheet entry against the network header.
Moreover, how do you think the system will calculate the cost if you book timesheets against a network? In a standard scenario, when timesheet is booked against a network activity system calculates cost based on the work center maintained in the activity. Work center has the cost center and the activity type combination for which rates are maintained in KP26.
Lastly, could you please explain the business need behind booking timesheets against a network header? -
Can you please how to retrive the new netprice from the new validity period
Hi,
When you display a contract using ME33K and you click on a item and view its conditions(shift+F6), there might be 2 validity periods for a given item.
and each period will have different netprice in it.
One will be old date before the PO was created and the other new one which has validity till 31.12.999..We want to fetch the netprice for the new validity date but currently the program is fetching this data from the table EKPO which is having the netprice of the old date only..
Can you please how to retrive the new netprice from the new validity periodThank you so much.
But I need more help specific to my problem.
Let me describe the same.
Suppose the PO creation date is 04.07.2007
The conditions for an item in a contract for the PO are as follows;
1. Validity from 04.07.2007 validity to 04.07.2007 Netprice = 100.00
2. Validity from 05.07.2007 validity to 31.12.9999 Netprice = 200.00
We need to always fetch the netprice from the validity period which always matches with the PO creatio date. here the value 100.00 should be the correct netpr as the PO creation date matches with the first validity period.
But the program is fetching the netprice 200.000 which belongs to the second validity period. That is beacuse the select statement which fetches the data for contracts collects on the basis of EKKO-kdate and ekko-kdtab.the fields kdate and kdtab retrieves the validity period of the contract which is from 04.07.2007 to 31.072007. This data is then used to retrieve the netpr data from EKPO and it fetched 200.00 as it retrives the netprice of current data in contract validity and h not with respect to PO creation date.
This data is then used to fetch the get the netpr data from EKPO.
<u>what we need is the netprice for that validity period of item(Conditions) that matches with the PO creation date</u>..
Below is the code where I'm selecting the data from ekko and ekpo for the contracts data..Can you please add the code snippet to the below attachesd subroutine to get the required data from KONV and KONP so that we can retrieve the correct Netprice.
FORM select_contracts USING p_s_cebeln LIKE s_cebeln[]
p_c_k_bstyp TYPE ebstyp
p_p_bukrs TYPE bukrs
p_p_ekorg TYPE ekorg
p_p_ekgrp TYPE bkgrp
*Begin of Mod-004
fp_p_cernam type ty_r_ernam
p_p_cernam TYPE ernam
*End of Mod-004
p_s_werks LIKE s_werks[]
p_s_matnr LIKE s_matnr[]
p_s_lifnr LIKE s_lifnr[]
p_s_val_dt LIKE s_val_dt[].
*mod-002
data : l_amount type BAPICURR_D, " Net price
l_waers TYPE waers, " Currency Key
l_eff_amount type BAPICURR_D. " Effective value
data: l_v_netpr type bprei.
*mod-002
SELECT ebeln
bukrs
bstyp
aedat
ernam
lifnr
zterm
ekorg
ekgrp
waers
wkurs
<b>kdatb
kdate</b>
inco1
INTO TABLE i_ekko
FROM ekko
WHERE ebeln IN p_s_cebeln
AND bstyp EQ p_c_k_bstyp
AND bukrs EQ p_p_bukrs
AND ekorg EQ p_p_ekorg
AND ekgrp EQ p_p_ekgrp
*Begin of Mod-004
AND ernam EQ p_p_cernam
AND ernam IN fp_p_cernam
*End of Mod-004
AND lifnr IN p_s_lifnr
AND ( kdatb IN p_s_val_dt OR kdate IN p_s_val_dt ).
IF sy-subrc EQ 0.
Populates internal table i_ekpo using EKPO table.
SELECT ebeln
ebelp
loekz
txz01
matnr
werks
ktmng
menge
meins
bprme
netpr
peinh
webaz
mwskz
uebto
untto
erekz
pstyp
knttp
repos
webre
konnr
ktpnr
ean11
effwr
xersy
aedat
prdat
INTO TABLE i_ekpo
FROM ekpo
FOR ALL ENTRIES IN i_ekko
WHERE ebeln = i_ekko-ebeln
and aedat = i_ekko-aedat
AND werks IN p_s_werks
AND matnr IN p_s_matnr.
LOOP AT i_ekpo INTO rec_ekpo.
MOVE rec_ekpo-ebeln TO rec_contr-ebeln.
MOVE rec_ekpo-ebelp TO rec_contr-ebelp.
MOVE rec_ekpo-loekz TO rec_contr-loekz.
MOVE rec_ekpo-txz01 TO rec_contr-txz01.
MOVE rec_ekpo-matnr TO rec_contr-matnr.
MOVE rec_ekpo-werks TO rec_contr-werks.
MOVE rec_ekpo-ktmng TO rec_contr-ktmng.
MOVE rec_ekpo-menge TO rec_contr-menge.
MOVE rec_ekpo-meins TO rec_contr-meins.
MOVE rec_ekpo-bprme TO rec_contr-bprme.
MOVE rec_ekpo-netpr TO rec_contr-netpr.
move l_v_netpr TO rec_contr-netpr.
mod-002
read table i_ekko into rec_ekko with key
ebeln = rec_ekpo-ebeln.
l_waers = rec_ekko-waers.
CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
EXPORTING
currency = l_waers
amount_internal = rec_contr-netpr
IMPORTING
AMOUNT_EXTERNAL = l_amount.
rec_contr-netpr = l_amount.
mod-002
MOVE rec_ekpo-peinh TO rec_contr-peinh.
MOVE rec_ekpo-webaz TO rec_contr-webaz.
MOVE rec_ekpo-mwskz TO rec_contr-mwskz.
MOVE rec_ekpo-uebto TO rec_contr-uebto.
MOVE rec_ekpo-untto TO rec_contr-untto.
MOVE rec_ekpo-erekz TO rec_contr-erekz.
MOVE rec_ekpo-pstyp TO rec_contr-pstyp.
MOVE rec_ekpo-knttp TO rec_contr-knttp.
MOVE rec_ekpo-repos TO rec_contr-repos.
MOVE rec_ekpo-webre TO rec_contr-webre.
MOVE rec_ekpo-konnr TO rec_contr-konnr.
MOVE rec_ekpo-ktpnr TO rec_contr-ktpnr.
MOVE rec_ekpo-ean11 TO rec_contr-ean11.
MOVE rec_ekpo-effwr TO rec_contr-effwr.
mod-002
CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
EXPORTING
currency = l_waers
amount_internal = rec_contr-effwr
IMPORTING
AMOUNT_EXTERNAL = l_eff_amount.
rec_contr-effwr = l_eff_amount.
*mod-002
MOVE rec_ekpo-xersy TO rec_contr-xersy.
APPEND rec_contr TO i_contr.
CLEAR: rec_ekpo,rec_contr.
mod-002
CLEAR : rec_ekko,l_amount, l_eff_amount,l_waers.
mod-002
ENDLOOP.
Modifying i_contr using i_ekko.
SORT i_ekko BY ebeln.
LOOP AT i_contr INTO rec_contr.
READ TABLE i_ekko INTO rec_ekko WITH KEY
ebeln = rec_contr-ebeln
BINARY SEARCH.
MOVE rec_ekko-bukrs TO rec_contr-bukrs.
MOVE rec_ekko-bstyp TO rec_contr-bstyp.
MOVE rec_ekko-aedat TO rec_contr-aedat.
MOVE rec_ekko-ernam TO rec_contr-ernam.
MOVE rec_ekko-lifnr TO rec_contr-lifnr.
MOVE rec_ekko-zterm TO rec_contr-zterm.
MOVE rec_ekko-ekorg TO rec_contr-ekorg.
MOVE rec_ekko-ekgrp TO rec_contr-ekgrp.
MOVE rec_ekko-waers TO rec_contr-waers.
MOVE rec_ekko-wkurs TO rec_contr-wkurs.
MOVE rec_ekko-kdatb TO rec_contr-kdatb.
MOVE rec_ekko-kdate TO rec_contr-kdate.
MOVE rec_ekko-inco1 TO rec_contr-inco1.
MODIFY i_contr FROM rec_contr.
ENDLOOP.
ENDIF.
REFRESH: i_ekko,
i_ekpo.
CLEAR : rec_ekko,
rec_ekpo,
rec_contr.
ENDFORM. "select_contracts
Thanks. -
How can I pass field value betwen view in ICWC?
Hi experts,
I am new to this BSP programming. I have some requirements to modify standard ICWC in CRM 5.0
Hope can get some advices and helps here.
I have added a new field called <status> to context note SEARCHCUSTOMER in BupaSearchB2B view and also the same field name to context note CUSTOMER in BupaCreate view.
I have added the field into both the HTM views and able to execute thru WebClient. However, I have one problem in passing the <status> value from BupaSearchB2B view to the BupaCreate view when I click on the 'create' button.
I do search and saw this thread How can I pass field value beetwen view in IC Web Client? , but i cant figure out how it works.
Do I need to create the field <status> to context note CUSTOMER in BupaSearchB2B? Currently the context note does not have any attributes.
Really appreciate for any help.
Edited by: mervyn tay on Apr 7, 2009 11:42 AMsolved by myself...
code in the CREATE_ACCOUNT method.
ev_entity->set_property( iv_attr_name = 'ZZICNO'
iv_value = lv_icnum1 ). -
How to add more fields at level task for importing to MsProject
Hi everyone,
We would like to have the same number of fields either for importing as exporting; or at least, the fields that we need.
The problem is when we are configurating the fields for exporting from cProjects to MsProject, we found 81 available fields and then we don't find the same amount for importing (34). So, in some cases we don't find fields which were configurated for exporting and it is no posible to upload the information back because the field is no available for importing.
Does anyone knows how to add more fields for importing at the cProjects side?
Thanks a lot,
CAMILO URIBESome fields can not be migrated because of MsProject designe. The above is the reason why cProjects' customizing does not offer the
mapping of the same nuember of fields. -
How to Add parameter fields in BI publisher fields
Hi,
I'm creating xml report for Apps standard Trial Balance Summary, here i cant able to run the .rdf locally due to SRW.UserExit .
So i got the XML file from output of the report.
Then i added the xml data in BI publisher and then i have created the .rtf for that.
Here i need to add some fields which is not available in fields list (in BI Publisher).
How to add that fields, or is possible to add fields manually.
That fields are given as parameters while running the .rdf file.
Please tell me how to solve this problem.
Is possible to add fields manually means tell me how to do that.If those fields are input parameters to the concurrent program then you can display them in RTF by declaring and printing it as
<?param@begin:P_CONC_PARAM?>
and display it as <?$P_CONC_PARAM?> - Note P_CONC_PARAM should match your parameter token -
How to add new fields in Reduced message ( in BD53 )
Hi Experts,
How to add new fields in Reduced message ( in BD53 ), when the required field iis available in Table or Structure and need to be added in BD53 so that we can ALE.
Thanks,
NinadHello,
I think of something like:
First, you create extension, with transaction WE30.
Then, reduce your idoc, your extension should also be proposed.
Do not forget to add this extension in outbound we82, and/or we57 in inbound, and WE20, and find BTE or exit to populate extension.
regards.
F.S. -
I have added a new field to the dso and i have replicated the datasource as well which is showing the new field newly added in ecc. how can i map the new keyfigure in the transformation between the datasource and ods. its showin in the ds, can u pls tell me how to map now.
Ya but the problem is I have an infosource in between and its not showing in the transformation between the dso and infosource.....nor the infosource and the datasource. But its there in the first transformation on the dso side, not on the inforsource side..... but how to get that field in the infosource side...so that i can map the field between both the transformations....between infosoucre and dso and infosouce and ds.....You know what I mean. the zfield is showin in the dso field structure in the first level mapping between dso and infosouce....but where do i map it.
Edited by: Daniel on Nov 28, 2011 9:59 AM -
PLz Help me its urgent, how to add new field in mm01 basic data screen
Hi everyone,
plz tell me how to add new field in mm01 basic data screen,i added that field in basic data screen but when i create a material the data for that field will not save in database table.
Thanks,
murali.Hi Murali,
when created added a field on the screen by using user exit then after that you have add the field in main table where you will be getting these table in the userexit only, please make sure about this. And i am sure defenitly it will get updated in to the table.
reward if useful.
thanks
abdulsamee.
Maybe you are looking for
-
How to open a file in the finder using only the keyboard?
Hello, I use the arrow keys a lot in the finder (I do a lot of renaming) but I can't find a way to open a document with the keyboard. Only the mouse double-click seems to work. Anyone knows a shortcut? Thanks
-
SDK install problems on Redhat 7.1
Hi I'm having problems getting the SDK to work on Redhat 7.1. My path variable is set up corectly, and get the following errors when I do a java -version java: /usr/bin/cut: No such file or directory usr/lib/jdk1.3.0_02/bin/i386/native_threads/java:
-
Can I still backup my HD after s.m.a.r.t. failure?
I have an early 2009 iMac. A couple weeks ago it began to act very stuttery and slow and then would eventually freeze. I booted into safe mode and was told the HD had problems and needed to be repaired. I booted from the osX snow leopard install disc
-
I get the following error when trying to open iTunes
I get the following error when trying to open iTunes: iTunes.exe - Entry Point Not Found The procedure entry point AVCFAssetCreateWithByteStreamAnd Options could not be located in the dynamic link library AVFoundationCF.dll. Any help would be much ap
-
Using DTW to update the Item Master Data attachment tab
Hi Experts, Has anyone tried using DTW to update the Attachments Tab on the Item Master Data please? I tried a few things (similar to importing an attachment to an activity) and couldn't get it to work. I couldn't see that anything to do with the At