Create records for missing periods in transformation
I need to create some routine that creates fical periods missing with 0,00 as value in de key figure and the characteristics remain the same. It is possible to create in the transformation something like this? Should put it in the initial routine or in the end one?
Source
Company 1; Account 1; Fiscper 012009; KF 345 Eur
Company 1; Account 1; Fiscper 032009; KF 123 Eur
Company 1; Account 1; Fiscper 062009; KF 678 Eur
Company 1; Account 2; Fiscper 012009; KF 987 Eur
Final destination
Company 1; Account 1; Fiscper 01.2009; KF 345 Eur
Company 1; Account 1; Fiscper 02.2009; KF 0 Eur
Company 1; Account 1; Fiscper 03.2009; KF 123 Eur
Company 1; Account 1; Fiscper 04.2009; KF 0 Eur
Company 1; Account 1; Fiscper 05.2009; KF 0 Eur
Company 1; Account 1; Fiscper 06.2009; KF 678 Eur
Company 1; Account 1; Fiscper 07.2009; KF 0 Eur
Company 1; Account 2; Fiscper 01.2009; KF 987 Eur
you are right, that's what I'm afraid of.
I already have a end routine:
PROGRAM trans_routine.
* CLASS routine DEFINITION
CLASS lcl_transform DEFINITION.
PUBLIC SECTION.
* Attributs
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.
* Rule specific types
TYPES:
BEGIN OF _ty_s_TG_1,
* InfoObject: ZIGCHENTI Magn_ci - Entity.
/BIC/ZIGCHENTI TYPE /BIC/OIZIGCHENTI,
* InfoObject: ZIGCHPART Magn_ci - Partner.
/BIC/ZIGCHPART TYPE /BIC/OIZIGCHPART,
* InfoObject: ZIGCHCTSH Magn_ci - CtShare.
/BIC/ZIGCHCTSH TYPE /BIC/OIZIGCHCTSH,
* InfoObject: ZIGCHCURR Magn_ci - Currency.
/BIC/ZIGCHCURR TYPE /BIC/OIZIGCHCURR,
* InfoObject: ZIGCHZONE Magn_ci - ZONE.
/BIC/ZIGCHZONE TYPE /BIC/OIZIGCHZONE,
* InfoObject: 0FISCPER Exercício / período.
FISCPER TYPE /BI0/OIFISCPER,
* InfoObject: 0FISCVARNT Variante de exercício.
FISCVARNT TYPE /BI0/OIFISCVARNT,
* InfoObject: ZIGKFCSAM Magnitude - Consolidated Amount.
/BIC/ZIGKFCSAM TYPE /BIC/OIZIGKFCSAM,
* InfoObject: 0CURRENCY Código da moeda.
CURRENCY TYPE /BI0/OICURRENCY,
* InfoObject: 0FISCYEAR Exercício.
FISCYEAR TYPE /BI0/OIFISCYEAR,
* InfoObject: 0FISCPER3 Período contábil.
FISCPER3 TYPE /BI0/OIFISCPER3,
* InfoObject: ZIGCHAINT Magn_ci - Audit ID.
/BIC/ZIGCHAINT TYPE /BIC/OIZIGCHAINT,
* InfoObject: ZIGCHFINT Magn_ci - Fluxo.
/BIC/ZIGCHFINT TYPE /BIC/OIZIGCHFINT,
* InfoObject: ZIGCHGLAC Magn_ci - Conta.
/BIC/ZIGCHGLAC TYPE /BIC/OIZIGCHGLAC,
* InfoObject: ZIGCHCINT Magn_ci - Categoria.
/BIC/ZIGCHCINT TYPE /BIC/OIZIGCHCINT,
* InfoObject: ZIGCHPINT Magnitude - Perímetro de Consolidação.
/BIC/ZIGCHPINT TYPE /BIC/OIZIGCHPINT,
* InfoObject: ZIGCHCCUR Magn_ci - Consolidation Currency.
/BIC/ZIGCHCCUR TYPE /BIC/OIZIGCHCCUR,
* InfoObject: ZIGCHVINT Magnitude - Versão de Consolidação.
/BIC/ZIGCHVINT TYPE /BIC/OIZIGCHVINT,
* InfoObject: ZIGCHPROD Magn_ci - PROD.
/BIC/ZIGCHPROD TYPE /BIC/OIZIGCHPROD,
* InfoObject: ZIGCHDEST Magn_ci - Dest.
/BIC/ZIGCHDEST TYPE /BIC/OIZIGCHDEST,
* InfoObject: ZIGKFCSAC Magn - Cons.Amount - CURR.
/BIC/ZIGKFCSAC TYPE /BIC/OIZIGKFCSAC,
* InfoObject: ZIGKFCAIP Magn - Cons.Amount - IVA - PMP.
/BIC/ZIGKFCAIP TYPE /BIC/OIZIGKFCAIP,
* InfoObject: ZIGKFCAIR Magn - Cons.Amount - IVA - PMR.
/BIC/ZIGKFCAIR TYPE /BIC/OIZIGKFCAIR,
* InfoObject: ZIGKFVLM Dados Magnitude - Valor Mensal.
/BIC/ZIGKFVLM TYPE /BIC/OIZIGKFVLM,
* Field: RECORD.
RECORD TYPE RSARECORD,
END OF _ty_s_TG_1.
TYPES:
_ty_t_TG_1 TYPE STANDARD TABLE OF _ty_s_TG_1
WITH NON-UNIQUE DEFAULT KEY.
*$*$ begin of global - insert your declaration only below this line *-*
... "insert your code here
*$*$ end of global - insert your declaration only before this line *-*
METHODS
end_routine
IMPORTING
request type rsrequest
datapackid type rsdatapid
EXPORTING
monitor type rstr_ty_t_monitors
CHANGING
RESULT_PACKAGE type _ty_t_TG_1
RAISING
cx_rsrout_abort.
METHODS
inverse_end_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
*$*$ end of 2nd part global - insert your code only before this line *
* CLASS routine IMPLEMENTATION
CLASS lcl_transform IMPLEMENTATION.
* Method end_routine
* Calculation of result package via end routine
* Note: Update of target fields depends on rule assignment in
* transformation editor. Only fields that have a rule assigned,
* are updated to the data target.
* <-> result package
METHOD end_routine.
*=== Segments ===
FIELD-SYMBOLS:
<RESULT_FIELDS> TYPE _ty_s_TG_1.
DATA:
MONITOR_REC TYPE rstmonitor.
*$*$ begin of routine - insert your code only below this line *-*
DATA: wa_result_fim type _ty_s_TG_1.
DATA: l_tabix type sy-tabix.
CLEAR wa_result_fim.
l_tabix = 0.
SORT RESULT_PACKAGE BY /BIC/ZIGCHENTI /BIC/ZIGCHAINT /BIC/ZIGCHGLAC
/BIC/ZIGCHPINT
/BIC/ZIGCHVINT FISCPER.
LOOP AT RESULT_PACKAGE assigning <RESULT_FIELDS>.
IF sy-tabix = 1.
<RESULT_FIELDS>-/BIC/ZIGKFVLM = <RESULT_FIELDS>-/BIC/ZIGKFCSAM.
ELSE.
l_tabix = sy-tabix - 1.
READ TABLE RESULT_PACKAGE INDEX l_tabix INTO wa_result_fim.
IF sy-subrc EQ 0.
IF wa_result_fim-/BIC/ZIGCHENTI =
<RESULT_FIELDS>-/BIC/ZIGCHENTI
AND wa_result_fim-/BIC/ZIGCHAINT =
<RESULT_FIELDS>-/BIC/ZIGCHAINT
AND wa_result_fim-/BIC/ZIGCHGLAC =
<RESULT_FIELDS>-/BIC/ZIGCHGLAC
AND wa_result_fim-/BIC/ZIGCHPINT =
<RESULT_FIELDS>-/BIC/ZIGCHPINT
AND wa_result_fim-/BIC/ZIGCHVINT =
<RESULT_FIELDS>-/BIC/ZIGCHVINT
AND wa_result_fim-FISCYEAR = <RESULT_FIELDS>-FISCYEAR.
Before I do this calculation I want it to validate if exist the period if not should append it with 0,00 and them do the subtraction.
<RESULT_FIELDS>-/BIC/ZIGKFVLM =
<RESULT_FIELDS>-/BIC/ZIGKFCSAM -
wa_result_fim-/BIC/ZIGKFCSAM.
ELSE.
<RESULT_FIELDS>-/BIC/ZIGKFVLM =
<RESULT_FIELDS>-/BIC/ZIGKFCSAM.
ENDIF.
ELSE.
EXIT.
ENDIF.
ENDIF.
ENDLOOP.
*-- fill table "MONITOR" with values of structure "MONITOR_REC"
*- to make monitor entries
... "to cancel the update process
* raise exception type CX_RSROUT_ABORT.
*$*$ end of routine - insert your code only before this line *-*
ENDMETHOD. "end_routine
* Method inverse_end_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_end_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_end_routine
Edited by: João Piçarra on Aug 13, 2009 12:18 PM
Similar Messages
-
How to Create records for n periods
hello,
Iu2019m new to script logic and MDX and need any help.
I would like to know how to do it:
Include a new information (100) for dimension account Sales, from time period 2008.NOV, 5 periods, like that:
2008.nov / 2008.dec/ 2009.JAN/ 2009.FEB/ 2009.MAR
100/ 100/ 100/ 100/ 100
Any suggestions?
Thanks in advance.
SueHello Kyle,
Thanks for your reply.
The application has a user-defined dimension, Emp. There is a property called date1 at the Emp dimension. Depending on the Emp selected, it will have a different initial time.
The number of periods (5 in the example) can be different. There is a member at the account dimension, period, that defines how many periods must be stored.
Information for Sales comes from other account, SalesTot. User inputs other values for SalesTot calculation.
So I have,
For emp1.dat1 = 2008.NOV
have to update Sales account, beginning from 2008.NOV and updating for the others periods. The biggest difficulty is because of the initial time and I have to create new records for the sequence, and I cannot have a hierarchy for this.
Hope this clarifies a bit.
Thanks again.
Sue -
Need single record for single period. Modify the select query.
Requirement
THere are 6 programs for each company for each billing period. If anyof the program for one billing period and period_balance>0 then display outstanding balance YES. if period_balance <=0 for all the programs for one period then outstanding balance=NO
Below is the query i have used but i have to modify the query to get single record for each period whether outstandignbalance yes or no. Please help to resolve this issue. OR modify the query.
select distinct B_Billing_key, B_COMPANY_ID company ,
to_char(to_date('01/'||trim(substr(B_REPORT_PERIOD,5,2))||'/'||
trim(substr(B_REPORT_PERIOD,1,4)),'DD/MM/YYYY'),'Month YYYY') Billing,
Max(to_char(P_RECEIVED_DATE,'MM/DD/YY')) lastPaymentdate,
SURCH_AMOUNT,ADJUST_AMOUNT,PI_AMOUNT,AMOUNT,
(nvl(SURCH_AMOUNT,0)+nvl(ADJUST_AMOUNT,0)+nvl(PI_AMOUNT,0))-(nvl(sum(AMOUNT),0))"Period_Balance",
decode(sign((nvl(SURCH_AMOUNT,0)+nvl(ADJUST_AMOUNT,0)+nvl(PI_AMOUNT,0))-(nvl(sum(AMOUNT),0))),1, 'Yes'
,'No'
) outstandingbalance
p.PROGRAM_NAME_ID programname
FROM tuff_balance_view,MV_PROG_SURCH S,MV_PAYMENT_HOLDING H,MV_PROGRAM_DICT P where
b_company_id = 'U-7052-C'
and B_Billing_key=s.BILLING_KEY
and S.PROGRAM_KEY = P.PROGRAM_KEY
and P.PROGRAM_KEY= H.PROGRAM_KEY
GROUP BY B_Billing_key,B_COMPANY_ID,B_REPORT_PERIOD,SURCH_AMOUNT,ADJUST_AMOUNT,PI_AMOUNT,PROG_SURCH_KEY,
S.PROGRAM_KEY,p.PROGRAM_NAME_ID,AMOUNT
order by B_Billing_key desc
B_Billing_key is the primary key. I am looking for the output only one record for each biling perid. there are 6 programs for each billing period. if any of the program has period balance >0 then outstanding balance should be yes. For sample i am giving 2 programs.
Actual output from the above
biling_key company billing period period_balance outstandingbalance programname
123 xyz January 2011 $4 Yes ABC
123 xyz January 2011 $-5 NO DEF
456 xyz February 2011 $-3 NO ABC
456 xyz February 2011 $- 2 NO DEF
Need the output as below from the above query. Can you please help to simplify query. If anyof theprogram having outstanding balance for that particular period show the outstandigbalance as yes. Else NO.
Expected output as below
company billing period outstandingbalance programname
xyz January 2011 Yes ABC
xyz February 2011 No DEF
Thanks,
viHi G,
With the same query i am gettting outs as NO for all months which is not true. can you pelase look at the following data.
SELECT DISTINCT B_BILLING_KEY,
to_char(to_date('01/'||trim(substr(B_REPORT_PERIOD,5,2))||'/'||
trim(substr(B_REPORT_PERIOD,1,4)),'DD/MM/YYYY'),'Month YYYY') Billing,
B_company_id company,
sum((nvl(T.B_ORG_SURCH_AMOUNT,0)+nvl(T.B_ORG_PI_AMOUNT,0))-(nvl(T.P_AMOUNT,0))) "PeriodBalance",
Max(to_char(P_RECEIVED_DATE,'MM/DD/YY')) LastPaymentDate,
decode(sign(
(nvl(T.B_ORG_SURCH_AMOUNT,0)+nvl(T.B_ORG_PI_AMOUNT,0))-(nvl(T.P_AMOUNT,0))), 1,'Yes','No') Outs
FROM mv_program_dict P, tuff_balance_view T WHERE
b_company_id = 'U-7052-C' group by B_REPORT_PERIOD,B_company_id,B_BILLING_KEY,B_ORG_SURCH_AMOUNT,
B_ORG_PI_AMOUNT,P_AMOUNT
order by B_BILLING_KEY desc
Actual
Billing key Billing company periodbalance lastpayment date outs
110631534073 November 2010 U-7052-C 270 Yes
110631534073 November 2010 U-7052-C 690 Yes
110631534073 November 2010 U-7052-C 66 Yes
110461533197 October 2010 U-7052-C 4740 Yes
110461533197 October 2010 U-7052-C 27000 Yes
110461533197 October 2010 U-7052-C 0 No
110251532527 September 2010 U-7052-C 0 09/13/10 No
110251532527 September 2010 U-7052-C 0 No
110251532527 September 2010 U-7052-C -18 09/13/10 No
110251532484 August 2010 U-7052-C 0 09/13/10 No
110251532484 August 2010 U-7052-C 2001 09/13/10 Yes
110251532484 August 2010 U-7052-C 0 No
Expectedoutput(need only following columns)
Billing key Billing company lastpayment date outs
110631534073 November 2010 U-7052-C Yes
110461533197 October 2010 U-7052-C Yes
110251532527 September 2010 U-7052-C 09/13/10 No
110251532484 August 2010 U-7052-C 09/13/10 YES
By using below query i am getting all output as NO. HOw to modify it.
SELECT company,
billing,LastPaymentDate,
CASE
WHEN SUM (DECODE (outs, 'YES', 1, 0)) > 0 THEN 'YES'
ELSE 'NO'
END Outstanding
FROM (
SELECT DISTINCT B_BILLING_KEY,
to_char(to_date('01/'||trim(substr(B_REPORT_PERIOD,5,2))||'/'||
trim(substr(B_REPORT_PERIOD,1,4)),'DD/MM/YYYY'),'Month YYYY') Billing,
B_company_id company,
sum((nvl(T.B_ORG_SURCH_AMOUNT,0)+nvl(T.B_ORG_PI_AMOUNT,0))-(nvl(T.P_AMOUNT,0))) "PeriodBalance",
Max(to_char(P_RECEIVED_DATE,'MM/DD/YY')) LastPaymentDate,
decode(sign(
(nvl(T.B_ORG_SURCH_AMOUNT,0)+nvl(T.B_ORG_PI_AMOUNT,0))-(nvl(T.P_AMOUNT,0))), 1,'Yes','No') Outs
FROM mv_program_dict P, tuff_balance_view T WHERE
b_company_id = 'U-7052-C' group by B_REPORT_PERIOD,B_company_id,B_BILLING_KEY,B_ORG_SURCH_AMOUNT,
B_ORG_PI_AMOUNT,P_AMOUNT
order by B_BILLING_KEY desc)
GROUP BY company, billing,LastPaymentDate;
Note:in the actual out put max(lastpayment date) is returing null values. if there is any date in one billing return that date only remove null example is september. in september it should return only 09/13/10 this date not null date. but if there is no other within one biling then consider that as null example november..
Thanks,
v -
Create values for analogous periods in the same table with DS
Hi,
in the course of a pilot we want to create additional columns with data for analogous periods.
We have values for a month and need to create new columns for values for last month and last year in order to compare.
Attached youu2019ll find a few sample rows resembling the basic concept of what we have
Region Country Year Month Value
Europe Spain 2009 1 285
Europe Spain 2009 2 129
Europe Spain 2009 3 153
Europe Spain 2008 1 288
Europe Spain 2008 2 284
Europe Spain 2008 3 125
Europe France 2009 1 135
Europe France 2009 2 125
Europe France 2009 3 284
Europe France 2008 1 208
Europe France 2008 2 221
Europe France 2008 3 220
In this case, new columns would be
LastMonth (125 for Spain month 1 year 2009, since this is the value for month 3 year 2008)
LastYear (288 for Spain month 1 year 2009, since this is the value for month 1 year 2008).
Can you help on what function to use in the DS query transformation?
thanks everybody, and enjoy!Hi David,
Probably the easiest way of resolving this would be to add extra columns which show the projected date each row should be shown on e.g.
Region Country Year Month Value LM_Year LM_Month LY_Year LY_Month
Europe France 2008 1 208 2008 2 2009 1
Europe France 2008 2 221 2008 3 2009 2
Europe France 2008 3 220 2008 4 2009 3
Europe France 2009 1 135 2009 2 2010 1
Europe France 2009 2 125 2009 3 2010 2
Europe France 2009 3 284 2009 4 2010 3
This would be written to a staging table then used as a source with the original source file to produce the target table. I've illustrated an example of how this could be achieved below:
Create two dataflows; DF 1 and 2.
In DF 1 read source, add additional columns to show the date (year, month, etc) this should be projected as. This would need to be done for both the last month and last year. Load staging table.
In DF 2 Read the source and outer join to the new staging table twice. Use the region, Country, Year, Month, to join and use the new additional projected date columns. Ensure the last month date fields are used on one staging table and last year date fields are used on the next staging table. The value from the two staging tables is then used in the last month and last year value.
Load into target table.
To calculate the projected date columns you would probably want to format the source fields into a date then add the required number of months. e.g. to_date('01' || month || year, 'DDMMYYYY') + 12
Obviously this would need the stage table to be truncated before each load and you would need to assess your load strategy. When doing these calculated fields if you have any retrospective updates on the source then these would then need recalculating, therefore this assumes it's a complete reload each time.
Edited by: Richard Saltern on Jul 16, 2010 2:01 PM
Edited by: Richard Saltern on Jul 19, 2010 10:10 AM -
Creating records for Partner function ?
Dear all,
I am creating partner function as a sales partner, can i maintain record for the same?
Bcoz in condition table there is no field for partner determination.
Can u plz send me some details regarding the same.
Thanks & Regards,
PMhi,
i have got the procedure for commission agent.. just transform the report to your sales partner requirement instead of comm agent requirement.
hope it helps you.
For creating commission agent, you have to follow below steps.
1) Establish Partner Functions for the Commissionee(s)
Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PARTNER DETERMINATION ->; DEFINE PARTNER FUNCTIONS
Transaction Code: VOPA
2) Assign the Partner Functions to Partner Procedures
Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PARTNER DETERMINATION ->; DEFINE PARTNER FUNCTIONS
Transaction Code: VOPA
3) Create a Partner Procedure for the Commissionees
Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PARTNER DETERMINATION ->; DEFINE PARTNER FUNCTIONS
Transaction Code: VOPA
4) Create New Customer Account Group(s) for Commission Agents
Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; LOGISTICS GENERAL ->; LOGISTICS BASIC DATA: BUSINESS PARTNERS ->; CUSTOMERS ->; CONTROL ->; DEFINE ACCOUNT GROUPS AND FIELD SELECTION FOR CUSTOMER
Transaction Code: OVT0
5) Assign the Partner Functions to the Customer Account Group(s)
Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PARTNER DETERMINATION ->; DEFINE PARTNER FUNCTIONS ->; GOTO ->; PARTNER FUNCTIONS ->; ENVIRONMENT ->; ACCOUNT GROUP ASSIGNMENT
Transaction Code: VOPA
6) Assign the Partner Functions to the Partner Procedure for the Sales Document Header
Menu Path: Tools ->; Business Engineer ->; Customizing ->; Sales and Distribution ->; Basic Functions ->; Partner Determination ->; Define Partner Functions
Transaction Code: VOPA
7) Assign the Partner Functions to the Partner Procedure for the Sales Document Item (OPTIONAL)
Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PARTNER DETERMINATION ->; DEFINE PARTNER FUNCTIONS
Transaction Code: VOPA
8) Edit the Pricing Communication Structure (KOMKAZ) to Hold the New Functions (Client Independent)
Menu Path: Menu Path: TOOLS ->; ABAP WORKBENCH ->; DEVELOPMENT ->; DICTIONARY
Transaction Code: SE11
9) Edit MV45AFZZ userexit_pricing_prepare_tkomk (Client Independent)
Menu Path: TOOLS ->; ABAP WORKBENCH ->; DEVELOPMENT ->; ABAP EDITOR
Transaction Code: SE38
10) Edit RV60AFZZ - userexit_pricing_prepare_tkomk (Client Independent)
Menu Path: TOOLS ->; ABAP WORKBENCH ->; DEVELOPMENT ->; ABAP EDITOR
Transaction Code: SE38
11) Edit MV45AFZB - userexit_new_pricing_vbkd changing new_pricing (Client Independent)
Menu Path: TOOLS ->; ABAP WORKBENCH ->; DEVELOPMENT ->; ABAP EDITOR
Transaction Code: SE38
The following code should be inserted into program MV45AFZZ to allow the system to re-execute pricing if the user makes a change to the relevant partner function (alteration, addition, deletion).
13) Add the KOMKAZ Fields to the Pricing Field Catalog (Client Independent)
Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PRICING ->; PRICING CONTROL ->; DEFINE ACCESS SEQUENCES ->; MAINTAIN ACCESS SEQUENCES
Transaction Code: OV24
14) Create Condition Tables (Client Independent)
Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PRICING ->; PRICING CONTROL ->; DEFINE ACCESS SEQUENCES ->; MAINTAIN ACCESS SEQUENCES
Transaction Code: V/03
15) Create an access sequence containing the new tables (Client Independent)
Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PRICING ->; PRICING CONTROL ->; DEFINE ACCESS SEQUENCES ->; MAINTAIN ACCESS SEQUENCES
Transaction Code: V/07
16) Create a new condition type
Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PRICING ->; PRICING CONTROL ->; DEFINE CONDITION TYPES ->; MAINTAIN CONDITION TYPES
Transaction Code: V/06
17) Add the Condition Type to the Pricing Procedure
Menu Path: TOOLS ->; BUSINESS ENGINEER ->; CUSTOMIZING ->; SALES AND DISTRIBUTION ->; BASIC FUNCTIONS ->; PRICING ->; PRICING CONTROL ->; DEFINE AND ASSIGN PRICING PROCEDURES ->; MAINTAIN PRICING PROCEDURES
Transaction Code: V/08
11) Create Commsission Report ZZCOMMISSION (Client Independent)
Menu Path: TOOLS ->; ABAP WORKBENCH ->; DEVELOPMENT ->; ABAP EDITOR
Transaction Code: SE38
regards,
Siddharth -
Creat Job for LSMW (periodical data transfer)- idoc BLAORD
Hi,
We are trying to create job for LSMW (thru frame program for periodic data transfer) for idoc BLAORD (Purchasing contract)
When I am running the job that I created, the job is cancelled and the error is:
"Upload from front-end is not possible in batch mode.
Message no. /SAPDMC/LSMW_OBJ_070 020"
How can I correct that? so I will be able to run a job (the job mast run background?)
Thanks,
Tal SassonHello,
I was also receiving the same message /SAPDMC/LSMW_OBJ_070 020 even though I specified in /SAPDMC/SAP_LSMW_INTERFACE the server path. The problem was that in LSMW->Specify Files you have to delete the definition of front-end files and define application server files.
That Flag File (Path and Name) (field /SAPDMC/LSOINP-FILENAME in program /SAPDMC/SAP_LSMW_INTERFACE) is kind of useless since it is ignored anyway and files defined in LSMW object are imported and they have to be read anyway if you use more than one file.
Regards,
Peter -
Create Records for each date in a range
I wish to create a report which will creat a record for every day between two dates:
Before:
==============================
Name Start Date End Date Car
Brown 01-10-2011 05-10-2011 Ford
Brown 06-10-2011 08-10-2011 Nissan
White 05-10-2011 09-10-2011 Kia
After:
==============================
Brown 01-10-2011 Ford
Brown 02-10-2011 Ford
Brown 03-10-2011 Ford
Brown 04-10-2011 Ford
Brown 05-10-2011 Ford
Brown 06-10-2011 Nissan
Brown 07-10-2011 Nissan
Brown 08-10-2011 Nissan
White 05-10-2011 Kia
White 06-10-2011 Kia
White 07-10-2011 Kia
White 08-10-2011 Kia
White 09-10-2011 Kia
Please advise how I should go about this
many thanks
Cheers
Davidhere's a formula to help you get started...this will create a text output formula that will have the dates displayed...you'll have to modify it to include the other info that you need in your display.
1) create a new formula that will be Basic Syntax...change the "ship date" field in the syntax below to your date field.
dim thisdate2 as date
dim nextdate2 as date
dim output as string 'output is the text display
dim daysbetween2 as number
dim looptimes2 as number
looptimes2 = 0
daysbetween2 = 0
thisdate2 = {Ship Date.DE_Ship_Date} + 1
nextdate2 = nextvalue({Ship Date.DE_Ship_Date})
if nextdate2 - thisdate2 > 0 then daysbetween2 = nextdate2 - thisdate2 else daysbetween2 = 1
do
output = output + monthname(month(thisdate2),true) + "/" + totext(day(thisdate2),0,"") + chr(10)
looptimes2 = looptimes2 + 1
thisdate2 = thisdate2 + 1
if thisdate2 in nextdate2 to {Ship Date.DE_Ship_Date} then formula = output
loop until looptimes2 = daysbetween2
2) put this formula in a new details section that is formatted to Supress Blank Section
3) format the formula so that it is Can Grow -
How do create records for packing instructions
Hello,
Can anyone tell me where and how to create condition records for packing instructions.
This is required for automatic packing
Regards
TapanUse transaction POP1 to create PAcking insturction.
Reward the points -
OWB !0g R2: Does OWB create records for higher levels in a dimension?
For example, if there are two levels PRODUCT_CATEGORY and PRODUCT, it looks like OWB populates the PRODUCT_CATEGORY records too in the dimension. Is this the default behaviour? Is there a way to turn this off, and only have the lowest level records populated?
I will expand on the prior example to ask another dimension related question.
ROW - 1
PRODUCT_CATEGORY - DAIRY, FARM_NAME
PRODUCT - NULL
ROW - 2
PRODUCT_CATEGORY - DAIRY, FARM_NAME
PRODUCT - 2L MILK, FAT_CONTENT
Q1: I need to join to another table on DAIRY, and to pull the FARM_NAME and the attributes from the second level (2L MILK, FAT_CONTENT). How do you guys do something like this in practical terms - check where the surrogate key for the second level is not null? One could also join on DAIRY where 2L MILK or FAT_CONTENT are not null?
Q2: The other area where I am unclear is whether to use in the mapping the dimension object or the bound table. If I try to use the dimension then OWB will not let me do this because you can not source from more than level at the same time. I guess I will have to use a join? The other option is to use the table, but witht a complex large dimension that can get messy. So ... what is the correct approach in general - use dimensions or the underlying tables in a mapping? -
Create Journals for Closed Period
HI,
In July, the user forgot to run journal entries in FA subledger, so the depreciation expenses didn't get posted to GL. So there were variances between FA and GL.
How to capture the July Depreciation journal entries, since the period is already closed.
Since the July period can't be opened, how to deal with these in August.
Thanks in advance.Hello.
Once you cannot open the GL period (which will be the best solution), note down the impact that it will cause. You can run the Journal Entry Reserve Ledger Report, where you wil find the total depreciation for the month and also the accumulated depreciation. Between this report and you GL Trial Blance for July you will have this difference. In August, post both the FA journals from July and August and, at that moment you shall have no differences.
Hope this helps.
Octavio -
Automatic Creation of Scheduled Master Record for Scheduled Master Data
Hi experts,
We know that MRU and Portion are Scheduled master data but Scheduled master record is transactional data. So it is obvious that we have to generate scheduled master record in every server wher we transport the master data manually. And we can generate records for a particular time span and after that time we have to generate the records again.
All I want to know that whether it is possible to get all the records generated automatically after certain period.
Thanks,
ArghyaHi,
Scheduled records do NOT get created automatically , altleast not by any sort of configuration, in case you are looking for it.
Your can always create custom program to do so, but it isn't worth the effort.
You can create records for upto 7yrs ( do need to check but definitely for a period long enough)
Hope that helps!!! -
Error in Forms while creating the trigger- WHEN-CREATE-RECORD
Hello,
Right now I am using 11g client side and 10g database.
I am constantly getting an error while creating triggers in 11g.
I have created a sequence in SQL developer using the following code:
create sequence loc_id_sequence
start with 14;
After creating the sequence. I am trying to write the PL/SQL code in forms builder for the trigger WHEN-CREATE-RECORD
declare
loc_id number;
begin
loc_id := loc_id_sequence.nextval;
end;
But I have been getting the following error constantly. Can anyone please help me?
"Error 0 at line 5, column 4
SQL statement ignored".
Can anyone please tell me why I am getting that errorIn fact, even I thought there might be some problem with the connectivity with the 10g database and 11g client but the other DB related code works.
I just have the problem with using sequence for the trigger WHEN-CREATE-RECORD.
In fact I also tried using WHEN-NEW-RECORD-INSTANCE smart trigger instead of WHEN-CREATE-RECORD for the same sequence. But even that doesn't work.
Do u have any idea of what that error means?
"Error 0 at line 5, column 4
SQL statement ignored"
Edited by: Pooja 1985 on Feb 26, 2013 5:43 PM
Edited by: Pooja 1985 on Feb 26, 2013 5:44 PM -
Error occured in creating record of subtype(Father) in IT0021
Hi,All
I have a question about IT0021,for satisfying our client's request,we design a subtype 02 which means "father" in IT0021,but when we creat record for it ,there's a error message like this"Birth date 1960-02-08 is earlier than date - -",so what's that for ? and how should we deal with it?
thanks a lot!Check P0002-GBDAT ( Date of Birth )
MODULE CHECK_FGBDT INPUT.
CHECK P0021-FAMSA EQ '2'. "Child in your case Father
CHECK P0021-FGBDT LT P0002-GBDAT.
MESSAGE ID '3L' TYPE 'W' NUMBER '023'.ENDMODULE. " CHECK_FGBDT INPUT
Good luck!
~Saquib -
How to create a loop to run total of records for before and after unconstant date
Post Author: Ann2
CA Forum: Formula
Here is the data sample:
ID period code date
1 00 I 01/01/1999
1 00 Z 01/02/1999
1 00 G 12/05/1999
1 00 M 01/01/2000
There are many students with many periods and many codes. I need to save a date when code = 'G' and count separateley records per student/period 2 times - before and equal that date and after that date, so in the end for period 00 I will have 2 values: 3 (before) and 1(after).
There are periods from 00 to 08. I am counting students abscencies before and after warning letter was sent (code G).
The result data should look : 00 01 02 03 04 05 06 07 08 00 01 02 03 04 05 06 07 08 Total
3 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 4
Please help me.
Thank you.
Ann2Post Author: Ann2
CA Forum: Formula
Thank you for your answer, but I do care about the date the 'G' happened, because I need to reset count.
The logic behind is this:if a student absent for more than 8 times per period - the letter will be sent out to the parents , that will be code 'G' with period '-1' (it may happen that there will never be code 'G' , but I need to track all absencies). Once the letter is sent, the count starts over (the count starts over the next day after code 'G'). The absencies which happened before or the date the letter sent should count toward 'previous' abscenices, all other - absenices after the letter.
So basically I need total per period and total per period before or the day with code 'G'. Running total with reset with formula code = 'G' does not work.
I created a formula field which has global date (when code 'G' happenned) and it says if globaldate >= periodDate then date (1900,01,01) else (2100,01,01) and that formula is ok, but I can not use it in running total or can not create group on it and insert total.
Please help me with this. Thank you.
Ann2 -
Problem in creating Info record for vendor -AFFI account group
Hi experts,
I am trying to create a info record for a material for a vendor -1000 which is of AFFI account group.
system in giving me an error saying that the material is not maintain in the plant 1000. However the plant i am working is for 2000 and the master data is maintained. I dont know why the system is giving a weird message taking the vendor code as the plant and giving the message " Material is not maintained in the plant"
I have created an info record for this same material with another vendor code of the same AFFI account group. I think i am missing something in the master data of the vendor.
Can anybody throw some lights on this.
regards
DPI got the solution. Thread closed.
Maybe you are looking for
-
Application no longer allowed access to the desktop in Mavericks
HI I have a particularly irritating problem. For a while now any application that attempts to access the desktop upon initial startup or to save a file to it will hang requiring a force quit from the finder. Installations go without a hitch. This
-
Hello, I am new to the RoboHelp world, but I am a Programmer by nature. I would like to know if I can create a toolbar for RoboHelp so that I can pre-load it with my own formatting and tags for Paragraphs, Tables, Headings, etc. I have to make it as
-
How do I disable sound ducking in FaceTime?
Is there a way to disable this feature when using facetime?
-
Configurate Safari for iPad with pages instead tabs
I've just Bogotá aun ipad2. Safari doesn't have the new page symbol, now there is a new tab symbol. I would prefer the page version because i like to see a little image of all the pages that i have opened instead just a title, that's what happen with
-
Why does firefox slow down when you reopen it whilst a file is still downloading?
If im downloading a file and close the browser so that only the download manager is left showing ion the taskbar and then attempt to reopen firefox to browse something new, it runs incredibly slowly. So slow in fact that I have to close it (which in