Regarding Logic for below statements
Hi,
What can be the logic for 2nd statement below:
1. Capture the user entered zip code in to a variable
2. Check the Variable[Code] if it is not 10 digits then
convert it into format ZZZZZ-XXXX by padding it with zeros.
EX: if user enters only 65549 convert it to 65549-0000
Thanks in advance.
Thanks,
Deep.
HI,
let lv_bar has the value '65549'..
Now define
data: lv_len type i,
lv_len1 type i,
lv_char(10) type c.
lv_len = STRLEN( lv_bar).
if lv_len < 10.
lv_len1 = 10 - lv_len.
do lv_len1 times.
concatenate '0' to lv_char.
enddo.
CONCATENATE lv_bar '-' lv_char.
endif.
Similar Messages
-
Need solution for below requiernment
Hi,
Please tell me flow logic for below requiernment:
1. Read actual payroll period from T569V for ABKRS set in infotype 0001
2. Read actual payroll result from cluster RD using german standard functions
3. Loop through table RT and check for wagetype 9000
4. create a batch-input to infotype 0015 wagetype 9000
ANZHL = 1
ZEINH = piece
BEGDA = actual month - 1 (e.g. actual month 06/2008 enter 01.05.2008)
5. allow option for direct or delayed start of batchinput
My confusion is: 1) Why do we need to Read actual payroll period from T569V for ABKRS set in infotype 0001.
2) To update IT 0015 , do we need to write a BDC or we can use FM HR_INFOTYPE_OPERATIONS.
regardshi,
1.this requirement may be cause of mid year go live in the past.
2. BDC for IT 15 makes sense as it is easier to maintain a BDC program.
Regards
Sameer. -
How to desighn a table for below logic
Hi all,
Could any body help me , how to design a table for below requirements
Ticketing Status
Departure Date/Time
Domestic Point of Sale
International Point of Sale
Yes
Outside of 24 hours
Immediate
Immediate
Yes
Inside of 24 hours
Immediate
Immediate
No
Outside of 24 hours
24 hours after Project review or 20 hours prior to departure, whichever is earlier
72 hours after Projectreview or 20 hours prior to departure, whichever is earlier
No
Inside of 24 hours
4 hours after Projectreview or 4 hours before departure, whichever is earlier; Immediate if within 4 hours
4 hours after Projectreview or 4 hours before departure, whichever is earlier; Immediate if within 4 hoursCREATE TABLE [dbo].[POS_Table](
[POSID] [int] IDENTITY(1,1) NOT NULL,
[Ticketing Status] [varchar](3) NULL,
[Departure Type] [varchar](7) NULL,
[Departure DateTime Hr] [int] NULL,
[POSType] [varchar](15) NULL,
[POSAfterProject Review Hr] [int] NULL,
[PriorToDeparture Hr] [int] NULL,
[Immediate Hr] [int] NULL,
CONSTRAINT [PK_POS_Table] PRIMARY KEY CLUSTERED
[POSID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
The rows will look like as below,
POSID
Ticketing Status
Departure Type
Departure DateTime Hr
POSType
POSAfterProject Review Hr
PriorToDeparture Hr
Immediate Hr
1
Yes
Outside
24
Domestic
0
0
0
2
Yes
Inside
24
Domestic
0
0
0
3
Yes
Outside
24
International
0
0
0
4
Yes
Inside
24
International
0
0
0
5
No
Outside
24
Domestic
24
20
0
6
No
Outside
24
International
72
20
0
7
No
Inside
24
Domestic
4
4
4
8
No
Inside
24
International
4
4
4
Regards, RSingh -
Regarding for Submit statement
Hi,
am Using below statement in my called program .i should use this statement in my called program it's must. if we use this statement am not able to come back to called program.
how to returm from calling program to called program by using the below statement.
SUBMIT rqmell10 WITH FREE SELECTIONS
it_texpr .Hi,
<li>Your wording seems to be not correct.
<li>Lets say we have two programs A and B. If we call program B in program A. We call A as Calling program and B as called program.
<li>Try this way to use SUBMIT statement.
REPORT zcalling_program.
DATA: it_rsparams TYPE STANDARD TABLE OF rsparams,
wa_rsparams LIKE LINE OF it_rsparams.
wa_rsparams-selname = 'S_MATNR'. "Screen field name of called program
wa_rsparams-kind = 'S'. "S=Select-options P=Parameters
wa_rsparams-sign = 'I'.
wa_rsparams-option = 'EQ'.
wa_rsparams-low = '11010'.
wa_rsparams-high = space.
SUBMIT zcalled_program VIA SELECTION-SCREEN WITH SELECTION-TABLE it_rsparams AND RETURN.
Thanks
Venkat.O -
Logic for carry forward of previous stock to current period stock.
Hi Experts,
Client is using already MC.9 for see the stock analysis report, however as per there requirement we are exploring BOM as well as fetching quantity from table level as well. in my report I am experiencing difficulty to carry forward previous period closing stock quantity to current period stock quantiy, if there is no received for current period, however the same is happens in MC.9
Could any one tell me what is the logic behind MC.9 which is do carry forward previous period closing stock to current period stock quantity in report.
As per the requirement I am using S031, S032,S033, however unable to get logic for carry forward the previous month stock quantity to current month.
have a requirement of creating a report of showing material stock period wise for each plant in below mention format.
Header 1
Header 2
Header 3
Header 4
LFGJA/LFMON
ROH (MT)
HALB (MT)
FERT (MT)
11.2013
100.000
121.000
121.00
12.2013
50.000
12.000
123.00
01.2014
23.231
.23.234
45.342
02.2014
23.231
34.094
45.098
03.2014
34.098
98.983
00.000
04.2014
00.000
69.093
98.098
05.2014
00.000
89.098
00.000
For Example Break up of ROH material plant wise in below mention format.
LFGJA/LFMON
WERKS
MENGE (MT)
11.2013
P001
30.000
11.2013
P002
50.000
11.2013
P003
20.00
Thanks in advance,
SKNHi,
The last period closing stock = current period opening stock. You may get the details from MBEWH and S032 tables. Refer the doc: Material Stock and Valuation History tables - how to read them
Regards,
AKPT -
Dynamic sql for select statement
Hi,
Please help me with the below code:
It is updating null if the select statment returns one values. If it fetches multiple values then it throughs the below error msg when running the program.
Please let me know how to modify the below code. Or let me know is there anyother way to write this code.
Logic for development:
* View name should be passed as dynamic.
CREATE OR REPLACE
PROCEDURE "PKEP_LOAD_SO_EU" (p_var1 IN VARCHAR2)
IS
lv_sql VARCHAR2 (4000);
lv_name VARCHAR2 (20);
BEGIN
lv_sql :=
' SELECT DISTINCT LEVEL2
FROM BIIO_SALES_OB_IMPORT_'|| p_var1;
EXECUTE IMMEDIATE lv_sql
INTO lv_name;
BEGIN
UPDATE BIIO_SALES_OB_IMPORT_NA2 --table name for updation
SET SOB_1 = NULL,
SOB_DATE_1 = NULL
WHERE level2 = lv_name; -- validation ( eg. Select distinct level2 from biio_sales_ob_import_'||p_var1)
COMMIT;
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line (SQLERRM);
NULL;
END;
END;
BEGIN
PKEP_LOAD_SO_EU ('NA1');
end;
Error report:
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "DEMANTRA.PKEP_LOAD_SO_EU", line 11
ORA-06512: at line 2
01422. 00000 - "exact fetch returns more than requested number of rows"
*Cause: The number specified in exact fetch is less than the rows returned.
*Action: Rewrite the query or change number of rows requested
Thanks.
PadmaPadu wrote:
Please let me know whether is anyother way to write this code as im a beginner for SQl.You dont need to have a seperate SELECT statement. Just a single UPDATE will do the job for you.
create or replace procedure pkep_load_so_eu
p_var1 in varchar2
as
begin
lSql := ' update biio_sales_ob_import_na2 ' ||
' set sob_1 = null ' ||
' , sob_date_1 = null ' ||
' where level2 in ( ' ||
' select level2 ' ||
' from biio_sales_ob_import_' || p_var1 ||
execute immediate lSql;
end; -
Need Logic for Inserting data into table from another table
Hi,
Could you please give me some logic on below:
TABLE_A has columns A,B,C,D
What i did
==========
Created new table
TABLE_1_A with columns A1,A2,B1,B2,B3
Requirement
===========
I should populate columns A1,A2 (table TABLE_1_A) with the data from column A (table TABLE_A)
& simillarly populate columns B1,B2 with the data from B.
the data is huge in the table_a.
Database: 10g
Thanks.Hi,
Here's one way:
INSERT INTO table_1_a
(a1, a2, b1, b2)
SELECT a, a, b, b
FROM table_a
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
If you're asking about a DML statement, such as INSERT, the sample data will be the contents of the table before the DML, and the results will be state of the changed table(s) when everything is finished.
Explain, using specific examples, how you get those results from that data.
See the forum FAQ {message:id=9360002} -
Hi ,
I would like to know one logic for preparing functional specification for one MM report. This report should fetch all materials that are below safety stock.
Please help me.HI,
The logic is you take the current unresticted stock of a material from MARD table, field name is LABST.now you check for the safety stock of the particular in MARC table Field name-EISBE.
Now compare the current stock with the safety stock,generate a report for the materials whose present stock is less than the safety stock.
for this requirement safety stock should be maintained in the material master,other wise your report will not work.
Regards,
velu -
Hi Guys,
I am trying to write a logic for comparison....Can you plz help me on this....
I have data like below.. I need to compare value which is comming from file with the data in SAP, If it fall under data maintained in sap 'Accept record' otherwise I need to reject. How can i check (write logic) for this checking....
data maintained in SAP , Data from file , Result
<10 , <8 , Accept
>5 and <10 , =8 , Accept
>5 and <10 , >15 , Reject
=15 , >10 and <30 , Accept
Thanks & Regards,
Rays
Message was edited by: rayudu p
Message was edited by: rayudu pHi Guys,
I am trying to write a logic for comparison....Can you plz help me on this....
I have data like below.. I need to compare value which is comming from file with the data in SAP, If it fall under data maintained in sap 'Accept record' otherwise I need to reject. How can i check (write logic) for this checking....
data maintained in SAP , Data from file , Result
<10 , <8 , Accept
>5 and <10 , =8 , Accept
>5 and <10 , >15 , Reject
=15 , >10 and <30 , Accept
Thanks & Regards,
Rays
Message was edited by: rayudu p
Message was edited by: rayudu p -
Need the Logic for this Prg issue Pls
Hi Friends,
i have an urgent requirement..
i am develop the report that is :
Based on Selction Critirea kunnr(knvv-kunnr)
i want Delete the
Internet mail (SMTP) address FROM ADR6-MTP_ADDR
AND Teletex number FROM ADR4-TTX_NUMBER..
USING TABLES ARE KNVV , ADR6 AND ADR4.
please how to Write the LOGIC For this Program .
help me.. it is an urgent.. anyone.
regards,Hi Alchermi,
thanks for your reply soon.
based on selction kunnr .. i want deete the ADR4-TTX_NUMBER..and ADR6-SMTP_ADDR From these 2 tables
for these 2 fields..
kunnr from knvv, selection field..
below fields want be DELETED..
ttx-number from adr4,
smtp_addr from adr6.
it is an urgent. help me .
regards, -
Can anyone please give me the logic for this....
I have a database table and in it i have a field department code. now, that department code might have '00' or ' ' (blank) or anyother value. now i want to add up all the currency amounts with department code '00' and ' ' (blank) which have same company code and currency type. I called all the entries with '00' into one internal table and enrties with ' ' (blank) to other internal table.
can anyone give me the logic for adding all the entries at a time.
thanks in advance.....HI Srinivas
i have a solution for this question.
Use At control break statement for this.
Loop the internal table.
Use at Event AT LAST. In that use SUM Statement. U will get sum of all the numeric fields.
Or else u can use ON CHANGE OF Currency type
then find the total amount by adding previouse value with ur current value.
Like itab1-amount = total + itab1-amount.
Appent this into ur internal or write it into ur report.
Reward me if its useful.
Regards
Ravi -
Can you give a document link for script logic for NW version7??
Hi all,
who can give a document link for script logic for nw version7??
thanks in advance!!Hi Sheldon,
I read through your "HOW to...Custom BADI for replicating Destination_App...." and it was great. However, Can this call also be used with WHEN/ENDWHEN statements? In the MS version, when using Destination_App, I was also able to map source accounts into the correct destination accounts as well as source E type dim to desination E type dim with the following script (the mapping to destination ID was stored as properties within the source dimensions).
*INCLUDE SYSTEM_CONSTANTS.LGL
*SELECT(%OPACCT%, "[ID]", "OPACCOUNT", " [TRF_FPA] = 'Y'")
*SKIP_DIM = COSTCTR
*ADD_DIM = BRANDS
*RENAME_DIM OPAccount = Account_F
*RENAME_DIM CATEGORY = CATEGORY_F
*RENAME_DIM ENTITY = MARKET
*RENAME_DIM DATASRC = DATATYPE
*XDIM_MEMBERSET ENTITY = %ENTITY_SET%
*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
*XDIM_MEMBERSET TIME = %TIME_SET%
*XDIM_MEMBERSET OPACCOUNT = %OPACCT%
*DESTINATION_APP = FPA
*CLEAR_DESTINATION
*DESTINATION OPACCOUNT = %OPACCT%
*DESTINATION TIME = %TIME_SET%
*DESTINATION CATEGORY = %CATEGORY_SET%
*DESTINATION CURRENCY = LC,USD
*WHEN ENTITY
*IS %ENTITY_SET%
*REC(ENTITY=COSTCTR.FPA_MKT,OPAccount=OPAccount.Consol_FPA)
*ENDWHEN
*COMMIT
I have tried the following code in the NW version, and it won't validate. Do you know if there's a way to achieve this?
*XDIM_MEMBERSET CATEGORY<>ACTUAL
*XDIM_MEMBERSET ACCOUNTHR =BASE_ANNL_SAL,BONUS,BENEFITS_TAX
*XDIM_MEMBERSET CURRENCY=LC
*START_BADI DAPP
DESTINATION_APP=CC_PLAN
RENAME_DIM="ACCOUNTHR=ACCOUNTCC"
WRITE=OFF
*END_BADI
*WHEN ACCOUNTHR
*IS "BASE_ANNL_SAL","BONUS","BENEFITS_TAX"
*REC(ACCOUNTCC=ACCOUNTHR.CCPLANACCT)
*ENDWHEN
Regards,
Karen -
What value should be for below parameters
Dear all,
Please suggest what value should be for below parameters in Win 2003 ,ecc6 and oracle 10g and 16 gb ram.
Parameters Description Current value
fixcontrol Bug fix control parameter
For information about the recommended settings for parameter FIXCONTROL, version of Oracle release 10.2.0.4 a number of values must be set.
Parameters Description Current value
max_dump_file_size Maximum size of the optimizer trace file UNLIMITED
optimizer_index_caching Adjust the usage of nested loops 0
optimizer_index_cost_adj Percentage of the calculated index costs 100
parallel_max_servers Parallel Query: Maximum number of parallel execution servers 150
PARALLEL_MAX_SERVERS.
Parameters Description Current value
parallel_threads_per_cpu Number of parallel execution processes/threads per CPU 2
shared_pool_reserved_size Part of Shared Pool for large statements 128676003
pushjoin_union_view Enable pushing join predicate inside a union all view
Regards,
KumarHello Kumar,
The following should be the recommended parameters for your case. Always take a backup of initSID.ora and spfileSID.ora file before making the changes.
fixcontrol Bug fix control parameter
*._fix_control='5705630:ON','5765456:3','6221403:ON','6329318:ON','6399597:ON','6430500:ON','6440977:ON','6626018:ON','6670551:ON','6972291:ON','7325597:ON','7692248:ON','7891471:ON'
max_dump_file_size = 20000
optimizer_index_caching Adjust the usage of nested loops 0
optimizer_index_caching (do not set)
optimizer_index_cost_adj Percentage of the calculated index costs 100
optimizer_index_cost_adj = 20
parallel_max_servers=20
parallel_threads_per_cpu = 1
shared_pool_reserved_size
CPUs Shared_Pool_Size
4 500M
6 1G
10 1G
32 2G
64 2G
128 3G
Resize db_cache depending on your needs. For your case, I would recommend at least 2GB of RAM for db_cache
pushjoin_union_view
pushjoin_union_view = false
Set this as true if 6917874 fix is implemented.
In addition Oracle processes should be calculated as follows
Oracle Processes =
{ ABAP WP X 2 +
J2ee Server Processes*MaxConnection + Parallel_Max_Servers + 40 }
Hope I am clear.
Thanks,
Venkatesh Pydi. -
ORA-24333 An iteration count of zero was specified for the statement
Hi all,
in example below oracle generate error ORA-24333,
Cause: An iteration count of zero was specified for the statement
Action: Specify the number of times this statement must be executed
On Error GoTo errHandler:
Dim pOraStmt As OraSqlStmt 'obiekt OO4O
Dim stat As Long
aWystapilBlad = False
gOraDatabase.LastServerErrReset
gOraDatabase.BeginTrans
Set pOraStmt = gOraDatabase.CreateSql("begin " & _
NAZWA_PAKIETU & "." & NAZWA_PROCEDURY & _
"; END;", ORASQL_NONBLK)
stat = pOraStmt.NonBlockingState
While stat = ORASQL_STILL_EXECUTING
DoEvents
stat = pOraStmt.NonBlockingState
Wend
'>>>>>>>>>>>>>>>>>ERROR ORA-24333 zero iteration count!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
If gOraDatabase.LastServerErr > 0 Then
aWystapilBlad = True
GenerujKomunikaty BLAD_SYSTEMOWY_NR & Err.Number & vbNewLine & BLAD_OPIS_BLEDU & gOraDatabase.LastServerErrText, WyswietlNaEkran, blad, TYTUL_APLIKACJA
PrzeniesDanychCODGiK = False
End If
gOraDatabase.CommitTrans
PrzeniesDanych = True
Exit Function
errHandler:
aWystapilBlad = True
gOraDatabase.Rollback
PrzeniesDanych = False
Can anybody help me?
Regards
ZbyszekHello get this from executing the following.
Occurs intermitently.
select MAX(LENGTH(lxVal)) from lxString_74501fb6 where lxType=910231053
Find the MaxLenght(LxVal) returned is null for this query.
Did google it but says the iterator not initialized. But not the case here
Thanks -
Provide Logic for Day,week,month,year..
Hi Experts,
My Requirement is as follows...
The field is for plant maintenance cycle in days/weeks/months/yrs. The table shows it as a floting number for MMPT-ZYKL1.
But the transaction IP02 shows this field as a numeric field. There is some background method being done on this field before display.Can i have the logic for Day,week,month,year..
Could any one please provide logic for this...............will appreciated..
Thanks ,
vamsilakshman.pHi..
try below code.
CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'
EXPORTING
char_unit = <W_MMPT-ZYKL1>
decimals = 0
exponent = 0
fltp_value_si = <W_MMPT-ZEIEH >
indicator_value = ‘X’
masc_symbol = ' '
IMPORTING
char_value = <res__number_days>.
regards.
laxman
Maybe you are looking for
-
Hi, When we do the Gr the Stock account gets debit and GR/Ir, customs clearing, Purchasing frieght gets credit. As per requirement when the material is sent back to vendor (122 mov) before invoice, we do not want the Freight and customs clearing acco
-
I bought a Powermac G5 used (barely used for a year) and when I brought it home, I thought I was changing the account name, etc., to my own, but instead I ended up adding myself as a second admin account. I didn't think anything was really wrong unti
-
Plan driven procurement - P.O created with existing number in SRM
We are into SRM 7.0 with ECC 6.0 as backend. Scenario is classic We are testing PDP process, the business scenario starts with "Reservation" in R3---PR is then generated via MRP in MM ->Transferred to SRM---> SC created through PDP channel in SRM
-
In my project am going to migrate windows server 2003 to 2012 r2 by using IIS 6.0? what are the parameters are changed and what are the parameters are not supported and what are the modules need to change? Please give the related answer as soon as po
-
I can get into a bank's website, but i cannot do any other transactions
i do not get any error messages. I send a message using their website, but they do not get it. I can click on the tabs, but i cannot open an account for example. It works with IE. Any suggestions please?