Problem in sd routines (billing)
Hi
i created a routine in vofm-> condition value.and asssigned it to a alternating calculation type.... this routine is to change the pricing during returns credit billing.
the value is getting change in xkomv but when passing out the value is not changed,,,
by standard debugging i found that its being called by a routine in LV61AA55 which will not change the value......
is thr any method to change the condition values of the pricing during billing??????
I think you need to change the xkwert field, not XKOMV structure. Take a look at the existing SAP routines.
Similar Messages
-
I have been trying to download apps from the app store and every time it tells me there is a problem with my previous billing and direct me to put in new billing information and every time i do that it still will not let me download any apps.
Have a look here > http://support.apple.com/kb/TS1646
-
Problem in Save the Billing Document
Hi,
We have a problem while saving the Billing Document i.e.
Document 83034087 saved (error in account determination)
Message no. VF051
when we saw it;s Revenue accounts, found there -
Condition type............Message.................Description
ZM05............................121.......................No G/L account found in Account determination type KOFI
Access Message Description
08 121 No G/L account found in Account determination type KOFI
10 121 No G/L account found in Account determination type KOFI
20 121 No G/L account found in Account determination type KOFI
30 121 No G/L account found in Account determination type KOFI
40 121 No G/L account found in Account determination type KOFI
50 121 No G/L account found in Account determination type KOFI
Plz guide...Hello Anil.Sap321,
Your problem has to do with ACCOUNT DETERMINATION.
Step 1: Check which account determination procedure is assigned to your billing type i.e. SPRO>SD>Basic Functions> Account Assignment/Costing>Revenue Account Determination>Define and Assign Account Determination
HINT: normally, this is KOFI00 in standard sap
Step 2: Check the Condition Types in your account determination in the control data in the same path as in step 1 for the Definition (e.g. KOFI, KOFK)
Step 3: Check your accesses e.g. for KOFI (this should correspond to your VKOA tables). Here, you can see the sequence in which your accounts are determined. Plus, at field level you can see where the data are taken from and then you can check your master data etc. during troubleshooting.
Step 4: Identify in which combination your G/L should be in and you or your FI counterpart should configure the G/L in the designated VKOA table (transaction VKOA).
TIP: To know which G/L account you need to input, you need the help of Financial guys as different companies have their different set of G/Ls or Chart of Accounts.
Step 5: When this is configured in your VKOA, you can re-test. Look at your Revenue Account determination analysis to see if your "access" in which you made your VKOA entry is successfully read during account determination.
NOTE: The G/L you or your FI contact have configured must exist in the Company Code involved in your accounting process.
Good luck and let me know if this helps you,
Eva -
Problem with standard Routine "Seniority"
Hi gurus,
I have a problem with the routine "Seniority" that evaluate the length of service for the infoObject 0SRVCLEN - Length of Service. It is a standard routine in the update rule 0HR_PA_0.
The problem occurs when the Employee has less than a year of service. The result of the routine is "0" but in the BW query "0" is interpreted like "#" - Not assigned.
How can I change the value of the Not assigned result?
This is the main part of the routine:
IF NOT EMPLOYEE_WA-ENTRYDATE IS INITIAL.
RESULT = ULTIMO0(4) - EMPLOYEE_WA-ENTRYDATE0(4).
IF ULTIMO4(4) LT EMPLOYEE_WA-ENTRYDATE4(4).
RESULT = RESULT - 1.
endif.
ENDIF.
Thanks
AlbertoSonal,
To find the number of items please correct the code as below:
Determine number of PO item lines
LOOP AT TKOMV WHERE<b> KNUMV = TKOMV-KNUMV</b>
AND NOT KPOSN IS INITIAL.
AT NEW KPOSN.
I = I + 1.
ENDAT.
ENDLOOP.
Keep rest all code as it is.
Let me know if this works,
Thanks. -
Problem with Printing the Billing date...
Hi Experts...
Here im facing the problem in printing the billing date.
The scenario is as follows.
The posting date of Billing is 10.10.2008
The document date of Billing is also 10.10.2008.
At the time of printing the Billing document it is taking another date otherthan 10.10.2008,where it should be 10.10.2008.
What modifications should i do to rectify the problem.
Please advice.
Regards,
Y P.Prasad,
Ask your ABAPer do debug and find out what date (Table-Field) is used in the Invoice Output program. You will know the reason and if you think that the date being used is incorrect, you can ask your ABAPer to change it to VBRK-FKDAT which is the billing date.
Chandan -
Authorization problem with VF01 "Create Billing Documents"
Dear All,
We face following problem with VF01 "Create Billing Documents".
Transaction: VF01
User: Joe
Authorization of Joe:
VKORG Sales Organization: A, B (authorization object V_VBRK_VKO)
FKART Billing Type: 1, 2 (authorization object V_VBRK_FKA)
The objective for Joe:
Joe is qualified to create bills in
sales org A only for billing type 1 and in
sales org B only for billing type 2.
Joe should not be able to create bills for
sales org A with billing type 2 and in
sales org B with billing type 1.
How can we solve this problem?
We already searched for userexits without any success.
Any help or ideas are very appreciated.
Regards
Markus Wilhelm
Project Manager ERPDear,
There are standard authority-checks based on Sales organization (authorisation object V_VBRK_VKO) and/or Billing type (V_VBRK_FKA).
An option would be to create a new billing type, define specific authorisations and use the new billing type for these documents.
The bad thing is that you would also need a special (new) sales order type, because the billing document type is unique per sales order.
So maybe it is easier to have a different sales organization.
Another option would be to create a new authorization object and check it in the billing documents.
If you wish, you could modify program LV60A005 & LV60A006.
Then you might check various user/customer exits.
Some functions to check: EXIT_SAPLV60A_001/002,
EXIT_SAPLV60B_001 - 008, EXIT_SAPLV60B_010 - 011.
Regards,
R.Brahmankar -
Just can't download apps or music or anything as it always says previous billing problem had this problem for a long time and I'm finally getting to the point of giving up on apple :( tried everything!! Please does anyone know what I need to do for it to work?
It never let's me save my card details when I put them in therefore it won't work!
Any help would be greatly appreciated thank you!http://www.apple.com/support/itunes/contact/
In countries where the iTunes Store only sells apps, the accepted payment methods are Visa, MasterCard, and American Express. Other payment types such as gift cards, store credit, monthly allowances, ClickandBuy, and PayPal are not accepted. Depending on your App Store country, prices may be listed in your local currency, US Dollars, or Euros. http://support.apple.com/kb/HT5552 -
Problem in Pricing and Billing
Hi Friends,
A bit challenging issue please help me
My Issue starts when there is a special pricing condition type maintained for a material.
For example
Basic Price--- 100 per product(1)
Special price
100 to 200 --- 50 rs per product
200 to 300 -- 25 rs per product
Created a sales order FOR 300 Products -Doc Type OR Price has taken according to scale --25 per product-Item Cat-TAN
Created Delivery -
Doc Type LF
Created Invoice with ref to Delivery -
Doc Type F2--
Created Credit memo req with refrence to billing doc- Doc Type RE-----quantity for 5 , I can see for 5 quantities it has taken 25 rs per product.
Created a Return Delivery -
Doc type LR Item Catagory --REN
Created a Credit Memo with refrence to Delivery--- Doc Type RC
Problem is that in the Credit Memo the system has taken the Basic Price i.e, 100 rs per 1 for 5 products instead of taking the Special price.
In the Credit Memo request(Return Sales order) the system has taken the Special price 25 rs per 1.
The Credit memo is behaving differently.
I have checked the copy controls of LR to RC which has the pricing type as G-- Copy pricing elements unchanged and redetermine taxes.
I have checked copy controls from Sales order to Billing, since it is deliery related billing the item cat Tan and Ren is not availible.
Please advice me why the Credit Memo is taking the basic price instead of special price even though its credit memo request has taken the special price.
Thanks and Regards,
RajSuhas
9866282911Can you please check have you maintained any value in the price source.
Compare the copy controls with LR to RE is there any difference excist or not.
Try to sit with abaper is there any hard code written in any exit or enhancement place also impact the procedure.
Other wise please try with pricing type D. It would serve your requirement.
Hope it would helps.......
Raj....... -
Problems in Start Routine of Transfermations (DTP)
Hi Abap OO Gurus,
I am migrating the 3.x data source to BI 7.0 ,here I am getting problems in DTP especially in the start routine . we are using the SP10, pls see the below code . I have fixed some code still I am getting problems at the below loop statement .
PROGRAM trans_routine.
CLASS routine DEFINITION
CLASS lcl_transform DEFINITION.
PUBLIC SECTION.
TYPES:
BEGIN OF tys_SC_1,
InfoObject: 0MPOINT Measuring point.
MPOINT TYPE /BI0/OIMPOINT,
InfoObject: 0MDOC Measurement Document.
MDOC TYPE /BI0/OIMDOC,
InfoObject: 0MPOBJ Object Number of Measuring Point Object.
MPOBJ TYPE /BI0/OIMPOBJ,
InfoObject: 0MPTYP Type of Measuring Point.
MPTYP TYPE /BI0/OIMPTYP,
InfoObject: 0PSORT Position Number of Measuring Point in Object (
*Sort Field).
PSORT TYPE /BI0/OIPSORT,
InfoObject: 0ASSEMBLY Assembly.
ASSEMBLY TYPE /BI0/OIASSEMBLY,
InfoObject: 0ATINN Internal Characteristic Number.
ATINN TYPE /BI0/OIATINN,
InfoObject: 0MDATE Date of Measurement.
MDATE TYPE /BI0/OIMDATE,
InfoObject: 0TIME Time.
TIME TYPE /BI0/OITIME,
InfoObject: 0DESIRSI Target Value for Measuring Point in SI Unit.
DESIRSI TYPE /BI0/OIDESIRSI,
InfoObject: 0TVIND Target Value for Measuring Point Is Defined.
TVIND TYPE /BI0/OITVIND,
InfoObject: 0MRMINI Lower Measurement Area Limit Is Defined.
MRMINI TYPE /BI0/OIMRMINI,
InfoObject: 0MRMINSI Lower Meas. Limit or Min. Total Counter Read
*ing in SI Unit.
MRMINSI TYPE /BI0/OIMRMINSI,
InfoObject: 0MRMAXI Upper Measurement Area Limit Is Defined.
MRMAXI TYPE /BI0/OIMRMAXI,
InfoObject: 0SIUNIT SI unit.
SIUNIT TYPE /BI0/OISIUNIT,
InfoObject: 0CJUMPSI Counter Overflow Reading in SI Unit.
CJUMPSI TYPE /BI0/OICJUMPSI,
InfoObject: 0PYEARSI Annual Performance in SI Unit.
PYEARSI TYPE /BI0/OIPYEARSI,
InfoObject: 0CREATED_BY Created By.
CREATED_BY TYPE /BI0/OICREATED_BY,
InfoObject: 0READSI Measured Value/Total Counter Reading in SI Un
*it.
READSI TYPE /BI0/OIREADSI,
InfoObject: 0READEU Measured Value in Document Entry Unit.
READEU TYPE /BI0/OIREADEU,
InfoObject: 0RECDU Unit of Measurement for Document Entry.
RECDU TYPE /BI0/OIRECDU,
InfoObject: 0CNTRRSI Counter Reading in SI Unit.
CNTRRSI TYPE /BI0/OICNTRRSI,
InfoObject: 0CDIFFSI Counter Reading Difference in SI Unit.
CDIFFSI TYPE /BI0/OICDIFFSI,
InfoObject: 0CAT_TYPE Catalog.
CAT_TYPE TYPE /BI0/OICAT_TYPE,
InfoObject: 0CAT_GROUP Code group.
CAT_GROUP TYPE /BI0/OICAT_GROUP,
InfoObject: 0FI_STATUS Processing Status.
FI_STATUS TYPE /BI0/OIFI_STATUS,
InfoObject: 0DIM_ID Dimension Key.
DIM_ID TYPE /BI0/OIDIM_ID,
InfoObject: 0CNTIND Measuring Point is Counter.
CNTIND TYPE /BI0/OICNTIND,
InfoObject: 0EQUIPMENT Equipment Number.
EQUIPMENT TYPE /BI0/OIEQUIPMENT,
InfoObject: 0FUNCT_LOC Functional Location.
FUNCT_LOC TYPE /BI0/OIFUNCT_LOC,
InfoObject: 0CAT_CODE Code.
CAT_CODE TYPE /BI0/OICAT_CODE,
InfoObject: 0MRMAXSI Upper Meas. Limit or Max. Total Counter Read
*ing in SI Unit.
MRMAXSI TYPE /BI0/OIMRMAXSI,
InfoObject: 0DOCAF Measurement Document Included for Associated T
*ask.
DOCAF TYPE /BI0/OIDOCAF,
InfoObject: 0RECORDMODE BW Delta Process: Update Mode.
RECORDMODE TYPE RODMUPDMOD,
Field: RECORD.
RECORD TYPE RSARECORD,
END OF tys_SC_1.
TYPES:
tyt_SC_1 TYPE STANDARD TABLE OF tys_SC_1
WITH NON-UNIQUE DEFAULT KEY.
DATA:
p_check_master_data_exist
TYPE RSODSOCHECKONLY READ-ONLY,
*- Instance for getting request runtime attributs;
Available information: Refer to methods of
interface 'if_rsbk_request_admintab_view'
p_r_request
TYPE REF TO if_rsbk_request_admintab_view READ-ONLY.
PRIVATE SECTION.
TYPE-POOLS: rsd, rstr.
$$ begin of global - insert your declaration only below this line -
TABLES: ...
DATA: ...
*constants: c_tabname type rstlogotab value '/BI0/MEQUIPMENT'.
$$ end of global - insert your declaration only before this line -
METHODS
start_routine
IMPORTING
request type rsrequest
datapackid type rsdatapid
EXPORTING
monitor type rstr_ty_t_monitors
CHANGING
SOURCE_PACKAGE type tyt_SC_1
RAISING
cx_rsrout_abort.
METHODS
inverse_start_routine
IMPORTING
i_th_fields_outbound TYPE rstran_t_field_inv
i_r_selset_outbound TYPE REF TO cl_rsmds_set
i_is_main_selection TYPE rs_bool
i_r_selset_outbound_complete TYPE REF TO cl_rsmds_set
i_r_universe_inbound TYPE REF TO cl_rsmds_universe
CHANGING
c_th_fields_inbound TYPE rstran_t_field_inv
c_r_selset_inbound TYPE REF TO cl_rsmds_set
c_exact TYPE rs_bool.
ENDCLASS. "routine DEFINITION
$$ begin of 2nd part global - insert your code only below this line *
... "insert your code here
data: lt_data type ref to data.
data: ls_data type ref to data.
field-symbols: <G_T_0EQUIPMENT> type standard table.
field-symbols: <G_S_0EQUIPMENT> type any.
field-symbols: <FUNCT_LOC> type any.
field-symbols: <DATEFROM> type any.
field-symbols: <DATETO> type any.
constants: c_tabname type rstlogotab value '/BI0/MEQUIPMENT'.
$$ end of 2nd part global - insert your code only before this line *
CLASS routine IMPLEMENTATION
CLASS lcl_transform IMPLEMENTATION.
Method start_routine
Calculation of source package via start routine
<-> source package
METHOD start_routine.
*=== Segments ===
FIELD-SYMBOLS:
<SOURCE_FIELDS> TYPE tys_SC_1.
DATA:
MONITOR_REC TYPE rstmonitor.
$$ begin of routine - insert your code only below this line -
fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
to make monitor entries
In this start routine missing functional location for
an equipment is added to a Data Package record, if it is available
create data lt_data type table of (c_tabname).
assign lt_data->* to <G_T_0EQUIPMENT>.
create data ls_data type (c_tabname).
assign ls_data->* to <G_S_0EQUIPMENT>.
assign component 'FUNCT_LOC' of structure <G_S_0EQUIPMENT> to
<FUNCT_LOC>.
assign component 'DATE_FROM' of structure <G_S_0EQUIPMENT> to
<DATEFROM>.
assign component 'DATE_TO' of structure <G_S_0EQUIPMENT> to
<DATETO>.
CALL FUNCTION 'RSAU_READ_MASTER_DATA'
EXPORTING
I_IOBJNM = '0EQUIPMENT'
I_FLG_WHOLE_TABLE = 'X'
IMPORTING
E_TABLE = <G_T_0EQUIPMENT>
EXCEPTIONS
READ_ERROR = 1
NO_SUCH_ATTRIBUTE = 2
WRONG_IMPORT_PARAMETERS = 3
CHAVL_NOT_FOUND = 4
OTHERS = 5.
CASE SY-SUBRC.
WHEN 0.
LOOP AT <G_T_0EQUIPMENT> INTO <G_S_0EQUIPMENT>.
IF <FUNCT_LOC> IS INITIAL.
DELETE <G_T_0EQUIPMENT>.
ENDIF.
master data collected and condensed
ENDLOOP.
<b>LOOP AT SOURCE_PACKAGE ASSIGNING <SOURCE_FIELDS>.
IF ( SOURCE_PACKAGE-FUNCT_LOC IS INITIAL ) AND
( SOURCE_PACKAGE-EQUIPMENT IS NOT INITIAL ).
READ TABLE <G_T_0EQUIPMENT> WITH KEY
('EQUIPMENT') = SOURCE_PACKAGE-EQUIPMENT INTO <G_S_0EQUIPMENT>
IF SY-SUBRC = 0.
IF ( SOURCE_PACKAGE-MDATE >= <DATEFROM> )
AND ( SOURCE_PACKAGE-MDATE <= <DATETO> ).</b>* record for equipment exists and valid
SOURCE_PACKAGE-FUNCT_LOC = <FUNCT_LOC>. MODIFY SOURCE_PACKAGE.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
WHEN 4.
master data is not (yet) loaded
WHEN OTHERS.
problem occured, output as warning
MONITOR-MSGID = SY-MSGID.
MONITOR-MSGTY = 'W'.
MONITOR-MSGNO = SY-MSGNO.
MONITOR-MSGV1 = SY-MSGV1.
MONITOR-MSGV2 = SY-MSGV2.
MONITOR-MSGV3 = SY-MSGV3.
MONITOR-MSGV4 = SY-MSGV4.
APPEND MONITOR.
ENDCASE.
if abort is not equal zero, the update process will be canceled
DEL :ABORT = 0.
Please adjust the syntax manually.
- Automatically replaced: COMM_STRUCTURE with SOURCE_FIELDS
- Included the new Exception Handling (instead of ABORT)
$$ end of routine - insert your code only before this line -
ENDMETHOD. "start_routine
Method inverse_start_routine
This subroutine needs to be implemented only for direct access
(for better performance) and for the Report/Report Interface
(drill through).
The inverse routine should transform a projection and
a selection for the target to a projection and a selection
for the source, respectively.
If the implementation remains empty all fields are filled and
all values are selected.
METHOD inverse_start_routine.
$$ begin of inverse routine - insert your code only below this line-
... "insert your code here
$$ end of inverse routine - insert your code only before this line -
ENDMETHOD. "inverse_start_routine
ENDCLASS. "routine IMPLEMENTATION
here I am getting the error like ""SOURCE_PACKAGE" is a table without a header line and therefore has no component called "FUNCT_LOC". I tried many ways to fix this problem.
Could you some kind soul educate how to fix the problem .
Thanks in advacne ,RP.Since the MONITOR is a table without header-line, u can no longer use it as a workarea for record entry. You can use MONITOR_REC defined in the data-section of this method to fill in the record and then append it to the table.
MONITOR-MSGID = SY-MSGID.
MONITOR-MSGTY = 'W'.
MONITOR-MSGNO = SY-MSGNO.
MONITOR-MSGV1 = SY-MSGV1.
MONITOR-MSGV2 = SY-MSGV2.
MONITOR-MSGV3 = SY-MSGV3.
MONITOR-MSGV4 = SY-MSGV4.
APPEND MONITOR.
has to be replaced with
clear MONITOR_REC.
MONITOR_REC-MSGID = SY-MSGID.
MONITOR_REC-MSGTY = 'W'.
MONITOR_REC-MSGNO = SY-MSGNO.
MONITOR_REC-MSGV1 = SY-MSGV1.
MONITOR_REC-MSGV2 = SY-MSGV2.
MONITOR_REC-MSGV3 = SY-MSGV3.
MONITOR_REC-MSGV4 = SY-MSGV4.
APPEND MONITOR_REC to MONITOR. -
ABAP Code Problem in Start Routine to Fill the value from Look-up Table ???
Hi all,
I am trying to fill the values of DOC_NUMBER & PLANT from look-up table /BIC/AZSD_O0700 (Billing Item ODS) for each BILL_NUM in Start Routine for Update Rules of Billing Header ODS and modify the data_package.
What is wrong with the below ABAP code, PLEASE ???
data: it_data type standard table of data_package_structure
with header line
with non-unique default key initial size 0.
types: begin of billing_item_type,
BILL_NUM like /BIC/AZSD_O0700-BILL_NUM,
DOC_NUMBER like /BIC/AZSD_O0700-DOC_NUMBER,
PLANT like /BIC/AZSD_O0700-PLANT,
end of billing_item_type.
refresh it_data.
clear it_data.
it_data[] = DATA_PACKAGE[].
refresh DATA_PACKAGE.
clear DATA_PACKAGE.
loop at it_data.
select DOC_NUMBER PLANT into (it_data-DOC_NUMBER, it_data-PLANT)
from /BIC/AZSD_O0700
where BILL_NUM = it_data-BILL_NUM
and FISCVARNT = it_data-fiscvarnt.
endselect.
if sy-subrc = 0.
move-corresponding it_data to DATA_PACKAGE.
endif.
endloop.
modify DATA_PACKAGE.
Thanks,
Venkat.Hi Venkat,
Two things -One is the performance and the other ... there is no Append within the loop.
Try moving the select statement ousdie the loop to improve performance and move the modify statement into the loop ... change modify to append. Code below.
Let me know if you need more help.
Best regards,
Kazmi
data: it_data type standard table of data_package_structure
with header line
with non-unique default key initial size 0.
types: begin of billing_item_type,
BILL_NUM like /BIC/AZSD_O0700-BILL_NUM,
DOC_NUMBER like /BIC/AZSD_O0700-DOC_NUMBER,
PLANT like /BIC/AZSD_O0700-PLANT,
end of billing_item_type.
refresh it_data.
clear it_data.
it_data] = DATA_PACKAGE[.
refresh DATA_PACKAGE.
clear DATA_PACKAGE.
loop at it_data.
select DOC_NUMBER PLANT into (it_data-DOC_NUMBER, it_data-PLANT)
from /BIC/AZSD_O0700
where BILL_NUM = it_data-BILL_NUM
and FISCVARNT = it_data-fiscvarnt.
endselect.
if sy-subrc = 0.
move-corresponding it_data to DATA_PACKAGE.
Append DATA_PACKAGE.
endif.
endloop. -
Problem with pay a bill by MyMeteor
I log in into MyMeteor, click "Pay now", fill all the informations and go with "Make secure payment...". Unfortunately, I see "Sorry, we have a problem with processing your card". It happens with both Visa Debit cards I use everyday, on both accounts there is enough money to pay and they are both working without problems. I don't want to set up direct debit. Is it a temporary problem with card payments, or I have to visit Meteor branch every month to pay a bill?
Hi there nika
Thank you so much for getting in touch.
They are currently updating MyMeteor and a few features will be temporarily be inactive. Apologies for the inconvenience.
You can still pay at the Post Office or in store now if you like.
-Kyle -
Problem in account determination_Intercompany billing
Dear Expert,
i am facing account determination problem in intercompany billing.
at the time of invoicing end customer billing system showing account determination error but in intercompany invoice
system not giving any error & document is posted properly.
error is Account 310100001 requires an assignment to a CO object
regards
ajitYou controlling object, i.e., cost center/element is missing.
Either you can default Cost Center into cost element using transaction KA02 under the Default account assignment tab in order this error to be discontinued.....later you can allocate cost to different cost center if wanted...
Or take the assistance of your FICO guy for this. As this totally depends on, where business wants to report this kind of expenses,If this is COPA then change FSG or else post to remaining appropriate cost objects like cost center,internal order etc.
For further assistance refer following link:
Account "XXXXX" requires an assignment to a CO object
Account 5248654 requires an assignment to a CO object---Message no. KI235
Thanks & Regards
JP -
Hi,
i have a problem
There is a key fig called quantity, if we post the values for one day then it showz the value of quantity key fig but if we are giving the duration like 02.02.2007 to 04.02.2007 its displays the quantity for first date only.
What i have to do is i have to copy the same values of quantity as it is for first date to all other dates.plz let me know the solution
my approach is.
hw i can rite the routine so that it will copy the values for all dates
points will b assigned.
Regards
VanyaHi,
please create a routine with result table at the update rule for KF quantity.
Then add some code:
$$ begin of routine - insert your code only below this line -
fill the internal table "MONITOR", to make monitor entries
*start od insertion
DATA: BEGIN OF I_TAB OCCURS 10,
DATE TYPE SY-DATUM,
END OF I_TAB.
DATA: YDATE-LOW TYPE SY-DATUM.
DATA: YDATE-HIGH TYPE SY-DATUM.
MOVE YOURDATE-LOW TO YDATE-LOW.
MOVE YOURDATE-HIGH TO YDATE-HIGH.
DO.
MOVE YDATE-LOW TO I_TAB-DATE.
APPEND I_TAB.
IF YDATE-LOW = YDATE-HIGH.
EXIT.
ENDIF.
YDATE-LOW = YDATE-LOW + 1.
ENDDO.
LOOP AT I_TAB.
RESULT_TABLE = ICUBE_VALUES.
MOVE I_TAB-DATE TO RESULT_TABLE-YOURDATE.
APPEND RESULT_TABLE.
ENDLOOP.
*end of insertion
if the returncode is not equal zero, the result will not be updated
RETURNCODE = 0.
if abort is not equal zero, the update process will be canceled
ABORT = 0.
$$ end of routine - insert your code only before this line -
At first an internal table is filled with date form duration interval.
Then this table is looped and records are multipilied and provided
with required date. Rest of record isn't modified in any way.
Please change coding according to your scenario.
Regards
Joe -
Problem with Transformation Routine
Hi all
I am using a DSO 0FIGL_O02 taking data from the DataSource 0FI_GL_4 . I have a field 0Customer to the DSO & for that i´m taking data from the another DSO ZPCA_EC3 .
The folllowing is the Tranformation Routine i have tried
Routine 1,
Data : zcustomer type /BIC/AZPCA_EC300-CUSTOMER.
select single customer
from /BIC/AZPCA_EC300
into ZCUSTOMER
where AC_DOC_NO = SOURCE_FIELDS-BELNR.
RESULT = zcustomer.
Routine 2.
Data : zcustomer type /BIC/AZPCA_EC300-CUSTOMER.
select single customer
from /BIC/AZPCA_EC300
into ZCUSTOMER
where AC_DOC_NO = SOURCE_FIELDS-BELNR
and COMP_CODE = SOURCE_FIELDS-bukrs
and FISCYEAR = SOURCE_FIELDS-gjahr.
RESULT = zcustomer.
I dont get any errors for this Routine , But when i run the DTP it is going on Running & Running for hours, with no results , But again no errors also.
What could be the problem ?
Could anyone help me write a better routine .here is my requirement
I want to pick up 0Customer field data from ZPCA_EC3 based on 0AC_DOC_NO in both ZPCA_EC3 & 0FI_GL_4 DataSource.
Regards
RameshHi,
well I don't know the key of your ods. But the first check would be to use fields in the where clause which are in the key or a additional index. Another option might be to select the data for the complete data package at once into a internal table and access the internal table in the routine. May be you can also do the whole thing in the start routine.
regards
Siggi -
Transformation transport problems when containing routine
Hi Gurus,
I'm facing a transport problem.
When i want to transport a transformation that contains routines, the transport says syntax error in routine. The routine in DEV is tested and correct. I realised, that the transport does not bring the routines. After transport, i open the transformation, and the routines contain the default routine: RESULT = .
I found some answers in some posts, but no exact answer how can i get rid of this transport problem. I don't like copy - paste into prod system with manually editing....
If you have any idea, please let me know.
Thanks
LaszloThanks for your help, it worked now, but i think it should work without owerwrite originals. Sometimes it seems that the routines is not included in the transport request, when i modify a routine in a transformation.
But thanks anyway, problem solved now
Maybe you are looking for
-
% Wildcard selection - extract data via Query as a Web Service
Hello all, I am using Query as a Web Service to extract data through to my Xcelsius document. I have a series of charts that display summed data according to user selections within some combo boxes. Is there any way to send through a wildcard selecti
-
Hello, everyone: I am not an expert in PHP and I have used DWC4 to create my login page. What I would like to do and I am not sure how the structure works in PHP coding is that if a user logs into lets say "Computer A" and does not sign out, then goe
-
Why do the times for each event or appointment appear on the phone calendar exactly 5 hours later than the correct times entered into the Yahoo calendar on my P.C? Is there a way of rectifying this, either on the Yahoo calendar site, or on the iPhon
-
Get Axis range for 3D Ribbon Plot
When I plot something in a 3D Ribbon Plot with autoscale enable, the scale ranges (minimum and maximum) are automatically set in the proper way. But after that, I can't read their values. See the attached example: if I read Axis Range Maximum, I get
-
Illustrator CS5 is crashing every time I open the Font Menu
I'm using one of the new Mac Book pro Retinas. Every time I open the Type>Font menu the program crashes. Sometimes I can scroll down a little ways but sometimes it crashes immediately. Photoshop is loading the previews fine so I believe this is an