Simple Correction to the code
Hi
Data : V1(10) type c value ' 123-',
sign_flag(1).
IF V1 < 0.
V1 = V1 * -1 .
sign_flag = 'X'.
ENDIF.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = V1
IMPORTING
OUTPUT = V1.
IF sign_flag = 'X'.
V1 = - ( V1 ).
ENDIF.
Write : V1.
<b>Above code is for Padding Leading Zeroes to Negative Number stored in field V1 with Data type C(10).</b>
Output of above code is = 123-
But I want it to be = 000000123-
How I can do that.
Do the correct modifications in the program.
Points will be given to the good ones.
Regards
Message was edited by:
Tulip Shah
use this code/.....
Data : V1(10) type c value ' 123-',
v2(10) TYPE n,
v3(11) TYPE n,
sign_flag(1).
IF V1 < 0.
V1 = V1 * -1 .
sign_flag = 'X'.
ENDIF.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = V1
IMPORTING
OUTPUT = V1.
IF sign_flag = 'X'.
V1 = - ( V1 ).
ENDIF.
*v2 = v1.
move v1 to v2.
CONCATENATE v2 '-' into v3.
Write :/ V1, / v3.
With Regards,
S.Barani
Similar Messages
-
Please suggest a correction in the code: Urgent
I am capturing the Material Document No., Material No., Material Description, Quantity etc. into a main_table in my code so as to write/print labels containing GRN details (movement type '105') using se38. These labels are to be pasted on the material received in stores, the exact requirement is 100% material identification sticker on all items to maintain FIFO. Obviously the no. of these stickers, to be printed, shall solely depend on the Quantity of a particular material received.
I have written the following piece of code to print the captured information of GRN. The problem is that my code is unable to track the change in material document number. For example if I have 10 nos of quantity for a particular material say 1001 and 5 no.s of quantity for a subsequent material 1002. I should get 10 labels for 1001 and 5 for 1002 but my code is giving me 10 labels for 1002 also.
Hope you got it.
Please suggest the necessary correction on the following code.You can execute the following code and get a real time feeling of my problem.
REPORT ZMM_GRN_LABEL_REPORT_38.
TABLES : MKPF, MSEG, MAKT.
DATA : BEGIN OF I_MKPF OCCURS 0,
MBLNR LIKE MSEG-MBLNR,
BLDAT LIKE MKPF-BLDAT,
MJAHR LIKE MKPF-MJAHR,
END OF I_MKPF.
DATA : BEGIN OF I_MSEG OCCURS 0,
MBLNR LIKE MSEG-MBLNR,
MATNR LIKE MSEG-MATNR,
EBELN LIKE MSEG-EBELN,
LIFNR LIKE MSEG-LIFNR,
MENGE LIKE MSEG-MENGE,
END OF I_MSEG.
DATA : BEGIN OF I_MAKT OCCURS 0,
MATNR LIKE MAKT-MATNR,
MAKTX LIKE MAKT-MAKTX,
END OF I_MAKT.
DATA : BEGIN OF I_LFA1 OCCURS 0,
LIFNR LIKE LFA1-LIFNR,
NAME1 LIKE LFA1-NAME1,
END OF I_LFA1.
DATA: BEGIN OF MAIN_TABLE OCCURS 0,
MBLNR LIKE MSEG-MBLNR,
MATNR LIKE MSEG-MATNR,
BLDAT LIKE MKPF-BLDAT,
MAKTX LIKE MAKT-MAKTX,
MENGE LIKE MSEG-MENGE,
MJAHR LIKE MSEG-MJAHR,
EBELN LIKE MSEG-EBELN,
LIFNR LIKE MSEG-LIFNR,
NAME1 LIKE LFA1-NAME1,
END OF MAIN_TABLE.
DATA : N LIKE MSEG-MENGE.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_MBLNR FOR MSEG-MBLNR.
PARAMETERS : P_GJAHR LIKE MSEG-GJAHR.
SELECTION-SCREEN END OF BLOCK B1.
select MBLNR MJAHR BLDAT
into corresponding fields of
table I_MKPF
from Mkpf
where
MBLNR in S_MBLNR and
MJAHR EQ p_GJAHR.
LOOP AT I_MKPF.
MAIN_TABLE-MBLNR = I_MKPF-MBLNR.
MAIN_TABLE-MJAHR = I_MKPF-MJAHR.
MAIN_TABLE-BLDAT = I_MKPF-BLDAT.
APPEND MAIN_TABLE.
CLEAR MAIN_TABLE.
ENDLOOP.
IF I_MKPF[] IS NOT INITIAL.
SELECT MBLNR MATNR EBELN LIFNR MENGE
INTO CORRESPONDING FIELDS OF
TABLE I_MSEG FROM
MSEG
FOR ALL ENTRIES IN I_MKPF
WHERE
MBLNR = I_MKPF-MBLNR.
ENDIF.
LOOP AT I_MSEG.
LOOP AT MAIN_TABLE WHERE MBLNR = I_MSEG-MBLNR.
MAIN_TABLE-MATNR = I_MSEG-MATNR.
MAIN_TABLE-EBELN = I_MSEG-EBELN.
MAIN_TABLE-LIFNR = I_MSEG-LIFNR.
MAIN_TABLE-MENGE = I_MSEG-MENGE.
MODIFY MAIN_TABLE INDEX SY-TABIX.
ENDLOOP.
ENDLOOP.
IF I_MSEG[] IS NOT INITIAL.
SELECT MATNR MAKTX
INTO CORRESPONDING FIELDS OF
TABLE I_MAKT FROM MAKT
WHERE
MATNR = I_MSEG-MATNR.
ENDIF.
LOOP AT I_MAKT.
LOOP AT MAIN_TABLE WHERE MATNR = I_MAKT-MATNR.
MAIN_TABLE-MAKTX = I_MAKT-MAKTX.
MODIFY MAIN_TABLE INDEX SY-TABIX.
ENDLOOP.
ENDLOOP.
IF I_MSEG[] IS NOT INITIAL.
SELECT LIFNR NAME1
INTO CORRESPONDING FIELDS OF
TABLE I_LFA1 FROM LFA1
FOR ALL ENTRIES IN I_MSEG
WHERE
LIFNR = I_MSEG-LIFNR.
ENDIF.
LOOP AT I_LFA1.
LOOP AT MAIN_TABLE WHERE LIFNR = I_LFA1-LIFNR.
MAIN_TABLE-NAME1 = I_LFA1-NAME1.
MODIFY MAIN_TABLE INDEX SY-TABIX.
ENDLOOP.
ENDLOOP.
******************************Problem lies somewhere here
N = MAIN_TABLE-MENGE.
DO N TIMES.
SORT MAIN_TABLE BY MBLNR.
LOOP AT MAIN_TABLE.
WRITE :/5 MAIN_TABLE-MBLNR.
WRITE :/5 MAIN_TABLE-MAKTX, 50 MAIN_TABLE-MATNR.
ENDLOOP.
ENDDO.Hello,
Take one new table with three fields ie. it_no with mblnr, matnr and menge.
collect data to new table form main_table.
and replace your doubtful code by
SORT MAIN_TABLE BY MBLNR.
loop at it_no.
N = it_no-MENGE.
DO N TIMES.
LOOP AT MAIN_TABLE where matnr = it_no-matnr.
WRITE :/5 MAIN_TABLE-MBLNR.
WRITE :/5 MAIN_TABLE-MAKTX, 50 MAIN_TABLE-MATNR.
ENDLOOP.
ENDDO.
endloop.
regards,
Naimesh -
HI All,
Please expalin the logic behind the code and how can we put it simpler this logic by reducing the number of lines of the following logic
FORM fisical_period.
data : l_start_month like v_start_month,
l_end_month like v_end_month.
data: l_current_year like t009b-bdatj,
l_variant like t009-periv.
call function 'CCODE_GET_FISCAL_YEAR_VARIANT'
EXPORTING
company_code = p_bukrs
IMPORTING
fiscal_year_variant = l_variant
EXCEPTIONS
company_code_not_found = 1
others = 2.
if sy-subrc <> 0.
message i368(00) with 'Unable to get Fiscal year'.
endif.
l_current_year = sy-datum(4).
call function 'FIRST_AND_LAST_DAY_IN_YEAR_GET'
EXPORTING
i_gjahr = l_current_year
i_periv = l_variant
IMPORTING
e_first_day = p_fiscal-low
e_last_day = p_fiscal-high
EXCEPTIONS
input_false = 1
t009_notfound = 2
t009b_notfound = 3
others = 4.
if sy-subrc <> 0.
message i368(00) with 'Unable to get the first and last day'.
endif.
if sy-datum < p_fiscal-low.
p_fiscal-low = p_fiscal-low - 365.
p_fiscal-high = p_fiscal-high - 365.
endif.
append p_fiscal.
v_start_month = p_fiscal-low+4(2).
v_end_month = p_fiscal-high+4(2).
if v_start_month >= 01 and v_start_month <= 03.
move 01 to fiscal_quarter_1-month.
append fiscal_quarter_1.
move 02 to fiscal_quarter_1-month.
append fiscal_quarter_1.
move 03 to fiscal_quarter_1-month.
append fiscal_quarter_1.
move 04 to fiscal_quarter_2-month.
append fiscal_quarter_2.
move 05 to fiscal_quarter_2-month.
append fiscal_quarter_2.
move 06 to fiscal_quarter_2-month.
append fiscal_quarter_2.
move 07 to fiscal_quarter_3-month.
append fiscal_quarter_3.
move 08 to fiscal_quarter_3-month.
append fiscal_quarter_3.
move 09 to fiscal_quarter_3-month.
append fiscal_quarter_3.
move 10 to fiscal_quarter_4-month.
append fiscal_quarter_4.
move 11 to fiscal_quarter_4-month.
append fiscal_quarter_4.
move 12 to fiscal_quarter_4-month.
append fiscal_quarter_4.
elseif v_start_month >= 04 and v_start_month <= 06.
move 04 to fiscal_quarter_1-month.
append fiscal_quarter_1.
move 05 to fiscal_quarter_1-month.
append fiscal_quarter_1.
move 06 to fiscal_quarter_1-month.
append fiscal_quarter_1.
move 07 to fiscal_quarter_2-month.
append fiscal_quarter_2.
move 08 to fiscal_quarter_2-month.
append fiscal_quarter_2.
move 09 to fiscal_quarter_2-month.
append fiscal_quarter_2.
move 10 to fiscal_quarter_3-month.
append fiscal_quarter_3.
move 11 to fiscal_quarter_3-month.
append fiscal_quarter_3.
move 12 to fiscal_quarter_3-month.
append fiscal_quarter_3.
move 01 to fiscal_quarter_4-month.
append fiscal_quarter_4.
move 02 to fiscal_quarter_4-month.
append fiscal_quarter_4.
move 03 to fiscal_quarter_4-month.
append fiscal_quarter_4.
elseif v_start_month >= 07 and v_start_month <= 09.
move 07 to fiscal_quarter_1-month.
append fiscal_quarter_1.
move 08 to fiscal_quarter_1-month.
append fiscal_quarter_1.
move 09 to fiscal_quarter_1-month.
append fiscal_quarter_1.
move 10 to fiscal_quarter_2-month.
append fiscal_quarter_2.
move 11 to fiscal_quarter_2-month.
append fiscal_quarter_2.
move 12 to fiscal_quarter_2-month.
append fiscal_quarter_2.
move 01 to fiscal_quarter_3-month.
append fiscal_quarter_3.
move 02 to fiscal_quarter_3-month.
append fiscal_quarter_3.
move 03 to fiscal_quarter_3-month.
append fiscal_quarter_3.
move 04 to fiscal_quarter_4-month.
append fiscal_quarter_4.
move 05 to fiscal_quarter_4-month.
append fiscal_quarter_4.
move 06 to fiscal_quarter_4-month.
append fiscal_quarter_4.
else.
move 10 to fiscal_quarter_1-month.
append fiscal_quarter_1.
move 11 to fiscal_quarter_1-month.
append fiscal_quarter_1.
move 12 to fiscal_quarter_1-month.
append fiscal_quarter_1.
move 01 to fiscal_quarter_2-month.
append fiscal_quarter_2.
move 02 to fiscal_quarter_2-month.
append fiscal_quarter_2.
move 03 to fiscal_quarter_2-month.
append fiscal_quarter_2.
move 04 to fiscal_quarter_3-month.
append fiscal_quarter_3.
move 05 to fiscal_quarter_3-month.
append fiscal_quarter_3.
move 06 to fiscal_quarter_3-month.
append fiscal_quarter_3.
move 07 to fiscal_quarter_4-month.
append fiscal_quarter_4.
move 08 to fiscal_quarter_4-month.
append fiscal_quarter_4.
move 09 to fiscal_quarter_4-month.
append fiscal_quarter_4.
endif.
IF NOT p_fiscal IS INITIAL.
perform get_fiscal_year.
ENDIF.
IF NOT p_fiscal IS INITIAL.
v_start_year = p_fiscal-low+2(2).
v_end_year = p_fiscal-high+2(2).
v_start_year = r_gfiscal-low+2(2).
v_end_year = r_gfiscal-high+2(2).
v_start_month = r_gfiscal-low+4(2).
v_end_month = r_gfiscal-high+4(2).
move 'Jan' to i_months-month.
append i_months.
move 'Feb' to i_months-month.
append i_months.
move 'Mar' to i_months-month.
append i_months.
move 'Apr' to i_months-month.
append i_months.
move 'May' to i_months-month.
append i_months.
move 'Jun' to i_months-month.
append i_months.
move 'Jul' to i_months-month.
append i_months.
move 'Aug' to i_months-month.
append i_months.
move 'Sep' to i_months-month.
append i_months.
move 'Oct' to i_months-month.
append i_months.
move 'Nov' to i_months-month.
append i_months.
move 'Dec' to i_months-month.
append i_months.
if v_end_month < v_start_month.
v_find_month = 13 - v_start_month.
do v_find_month times.
read table i_months index v_start_month.
move v_start_month to fiscal_months-month.
move i_months-month to fiscal_months-literal.
move v_start_year to fiscal_months-year.
append fiscal_months.
add 1 to: v_number_of_months, v_start_month.
enddo.
do v_end_month times.
read table i_months index sy-index.
move sy-index to fiscal_months-month.
move i_months-month to fiscal_months-literal.
move v_end_year to fiscal_months-year.
append fiscal_months.
add 1 to v_number_of_months.
enddo.
else.
v_find_month = v_end_month - v_start_month + 1.
do v_find_month times.
read table i_months index v_start_month.
move v_start_month to fiscal_months-month.
move i_months-month to fiscal_months-literal.
move v_start_year to fiscal_months-year.
append fiscal_months.
add 1 to: v_number_of_months, v_start_month.
enddo.
endif.
ENDIF.
ENDFORM.
form get_fiscal_year.
data : l_lst_day like sy-datum,
l_frst_day like sy-datum,
l_fisc_vnt like t009-periv, "fiscal year variant
l_fisc_prd like t009b-poper,
l_fisc_yr like t009b-bdatj,
l_lines like sy-index.
data : i_periods like table of periods with header line.
perform get_fiscal_year_variant using p_bukrs
changing l_fisc_vnt.
perform get_period_on_date using p_fiscal-low
l_fisc_vnt
changing l_fisc_prd
l_fisc_yr.
call function 'G_PERIODS_OF_YEAR_GET'
EXPORTING
variant = l_fisc_vnt
year = l_fisc_yr
IMPORTING
last_normal_period = l_fisc_prd
TABLES
i_periods = i_periods
EXCEPTIONS
variant_not_defined = 1
year_not_defined = 2
others = 3.
if sy-subrc <> 0.
message i368(00) with 'Unable to Convert Periods'.
endif.
describe table i_periods lines l_lines.
read table i_periods index 1.
move i_periods-datab to r_gfiscal-low.
read table i_periods index l_lines.
move : i_periods-datbi to r_gfiscal-high,
'I' to r_gfiscal-sign,
'BT' to r_gfiscal-option.
append r_gfiscal.
endform. " get_fiscal_year
form get_fiscal_year_variant using p_p_ccode like t001-bukrs
changing p_g_fisc_vnt like t009-periv.
call function 'CCODE_GET_FISCAL_YEAR_VARIANT'
EXPORTING
company_code = p_p_ccode
IMPORTING
fiscal_year_variant = p_g_fisc_vnt
EXCEPTIONS
company_code_not_found = 1
others = 2.
if sy-subrc <> 0.
message i368(00) with 'Unable to retrieve fiscal year variant'.
endif.
endform. " get_fiscal_year_variant
form get_period_on_date using p_p_dcfp like sy-datum
p_g_fisc_vnt like t009-periv
changing p_g_fisc_prd like t009b-poper
p_g_fisc_yr like t009b-bdatj.
call function 'DATE_TO_PERIOD_CONVERT'
exporting
i_date = p_p_dcfp
i_periv = p_g_fisc_vnt
importing
e_buper = p_g_fisc_prd
e_gjahr = p_g_fisc_yr
exceptions
input_false = 1
t009_notfound = 2
t009b_notfound = 3
others = 4
if sy-subrc <> 0.
message i368(00) with 'Unable to get period on date'.
endif.
endform. " get_period_on_date
ThanksHi,
Try to use FMs : (type quarter in fm name field and press f4.
FMs like follows will be dispalyed :
BKK_GET_QUARTER_DATE
HR99S00_TIME Generic time related functions
HR_99S_GET_DATES_QUARTER Get begin and end date of a qrtr
HR_99S_GET_QUARTER Get quarter
HRPAYBE_DMFA Function pool for DMFA
HR_BE_DAQ_CONDT_QUARTER Condition for declaring the Local Unit ID for DMFA
HR_BE_DAQ_QUARTER Get occupation line relevant data for DMFA
HRPAYBE_DMFA_WORKFLOW Workflow DMFA
HR_BE_DMFA_GET_QUARTER Retrieve quarter declared
KRGE
KR_GET_HEADQUARTER_BPLACE
SLIM_DATE_TOOLS
SLIM_GET_QUARTERLY_PERIODS
STS2 Time stream: Generate for periods
TSTR_PERIODS_QUARTERS Generate Time Stream for Quarters -
Hi there,
I am new in Project Siena. I need to start an app ASAP, a simple one, using Project siena, but I can´t find any information explaining the code.
What is the name of the code which is used in behaviors, properties etc? (html, jquery, jscript)
Where can i find documentation explaining how to write simple sentences using the code? For isntance, i need to know how to hide an image after click (on select) a button.
Many thanks,
MarcoHello Marco,
You can access all the documentation and visuals / function descriptions via the following page
http://www.microsoft.com/en-us/projectsiena/Documentation.aspx
As a starter and addressing your second question and to make that as "sexy" as possible
1. add an image control to the screen and select your image
2. click the image control and open the express view (bottom right) and look for the "Visible" property
3. change the value to
imgVisible
in order to declare a variable
4. add a button control to your screen
in the onSelect of the button add
If(imgVisible=true,UpdateContext({imgVisible:true});UpdateContext({imgVisible:false}),UpdateContext({imgVisible:false});UpdateContext({imgVisible:true}))
within the ifvalue and elsevalue the toggle is to be done twice as to make sure it is applied
5. in order to make sure your image is shown the moment you go on the screen, click somewhere in the screen and in the onVisible of the screen add the following
UpdateContext({imgVisible:false});UpdateContext({imgVisible:true})
This should answer your question.
Regards
StonyArc
http://www.stonyarc.com http://www.xboxlivenation.com Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This is beneficial to other community members
reading the thread. -
I am using Numbers on my iPhone5 and cannot get the app to do a simple (SUM) calculation. It shows the formula correctly in the cell, but all I get for my long list of numbers to add is 0. How can I get this to work?
Oaky, at least we got that far. Next step is to determine if all those "numbers" are really numbers. Changing the format to "number" doesn't necessarily change the string to a number. The string has to be in the form of a number. Some may appear to you and me as numbers but will not turn into "numbers" when you change the formatting from Text to Number. Unless you've manually formatted the cells to be right justified, one way to tell if it is text or a number is the justification. Text will be justified to the left, numbers will be justified to the right.
Here are some that will remain as strings:
+123
123 with a space after it.
.123 -
Best event handling way making the code simple
Hi all,
I want to develop a JFrame thats all the componets inside the JFrame have methods (that are owned by JFrame the class) like "compNameClicked", "compNameChanged", "compNameArranged". The JFrame would be like this below...
class MyFrame extends JFrame
//Datamembers
comp1Name declaration
comp2Name declaration
comp3Name declaration
//Methods
comp1NameClicked() {...}
comp1NameChanged() {...}
comp1NameArranged() {...}
comp2NameChanged() {...}
comp3NameClicked() {...}
How will i register this "event handling" methods to the componets? I want to use this techique to retain the simplicity of the code. If there is a more simple way for event hadling, please let me know about it.
thank you for advance, kostasThere cannot be a single approach which will apply to all the Programs or application.
You can try and refere to :
http://www-106.ibm.com/developerworks/edu/j-dw-javadeliv-i.html
This tutorial explains all the available approaches you can find out what best suits your need. -
ISO code 0 is not correct in the VAT registration number
Hello everyone!
Where can I adjust this error message so that I can make it as a Warning only? Thank you.
Message No. AR191 -- ISO code 0 is not correct in the VAT registration numberDear Marlon
Goto
IMG>SAP Netweaver>general setting>set countries>Define Countries in mySAP Systems>select the coutry and double click on it>u will get properties tab under which ISO code is defined. Here u have to enter country name in ISO CODE and ISO code 3 char [enter the relevant 3 char as per your country.
Also check Set Country-Specific Checks--> double click on country and check the length and checking rule (ex vat reg no)
Hope your problem will be resolved
Regards
Sandeep Bhowmick
Edited by: Sandeep Bhowmick on Sep 29, 2009 12:00 PM -
ISO code 57 is not correct in the VAT registration number
Hi Gurus,
When we are trying to upload the customer master data, while entering the VAT No it is saying the following error:
ISO code 57 is not correct in the VAT registration number
Message no. AR191
Could some body help me out.
regards
SrikanthHi,
Reason can be due to,
The length of the VAT number, which is important for this check,
is stored in field UINLN.
If the check comes across an invalid format, an incorrect country key, or an incorrect check digit, the exception NOT_VALID is triggered, and an error message is sent. If the check runs successfully, nothing will be drawn to the attention of the user.
The check rules are stored in table T005 in the field PRUIN.
There are few rules defined for
1 Maximum value length, without gaps
2 Maximum value length, numerical, without gaps
3 Length to be kept to exactly, without gaps
4 Length to be kept to exactly, numerical, without
5 Maximum value length
6 Maximum value length, numerical
7 Length to be kept to exactly
8 Length to be kept to exactly, numerical
9 Check against country-specific edit format
0 Deactivate Postal Code Check for USA -
My billing address is correct, but the i keep getting that my security code is incorrect and can't download apps. I have re-entered all of my information in my account, but still get error message. How to over-ride?
If you have American Express, your 4-digit security code is on the front. If you have VISA or MasterCard, your 3-digit security code is outside the signature block on the back of your credit card. It happens to me also.
-
How to subtotal in alv? Please correct the code!!!!
hi,
I have an alv layout like following:
ZZZ 300100089 1050
ZZZ 300100089 1050
subtoal 2100
90256243 300100000 193410
90256242 300100000 173250
90256241 300100000 173250
90256240 300100000 173250
90256239 300100000 173250
90256238 300100000 173250
90256237 300100000 173250
subtotal 1232910
when the second numbers are the same,
I need to sum up as
300100089 2100
300100000 1232910
I write the coding as the following, but it did not work. I go dump in function module. Please
help and correct it!!
DATA I_SORT TYPE SLIS_T_SORTINFO_ALV.
DATA WA_SORT TYPE slis_sortinfo_alv.
WA_SORT-fieldname = 'H_BETRG'. " speicfy field name..
WA_SORT-UP = 'X'.
WA_SORT-SUBTOT = 'X'.
APPEND WA_SORT TO I_SORT.
CLEAR WA_SORT.
IN FM.
it_sort = i_sort
I do not know what is the file name I should put into the WA_SORT-fieldname, I tried "wrbtr" and some other name, but I got the same dump when I excute the program. Please help me to correct the code.
Thank you.Hi,
The dump is as following:
What happened?
The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X).
Error analysis
Short text of error message:
Technical information about the message:
Message classe...... "0K"
Number.............. 000
Variable 1.......... " "
Variable 2.......... " "
Variable 3.......... " "
Variable 4.......... " "
Variable 3.......... " "
Variable 4.......... " "
Trigger Location of Runtime Error
Program SAPLSLVC
Include LSLVCU10
Row 36
Module type (FUNCTION)
Module Name LVC_SORT_COMPLETE
31 LOOP AT CT_SORT INTO LS_SORT.
32
33 READ TABLE IT_FIELDCAT ASSIGNING <LS_FIELDCAT>
34 WITH KEY FIELDNAME = LS_SORT-FIELDNAME BINARY SEARCH.
35 IF SY-SUBRC NE 0.
>>>> MESSAGE X000(0K).
37 ENDIF.
38
39 LS_SORT-SELTEXT = <LS_FIELDCAT>-SELTEXT.
40
41 * Zwischensummenstufen ermitteln
42 IF NOT LS_SORT-SUBTOT IS INITIAL.
43 L_COUNT = L_COUNT + 1.
Please help, thank you!! -
Error highlighted no lines of code to be corrected just the error code
When I run the macro I get this error:
"The attempted operation failed. An object could not be found."
The error highlighted no lines of code to be corrected just the error code.
Dim OLapp As New Outlook.Application
Dim OLns As Outlook.NameSpace
Dim Inbox As Outlook.MAPIFolder
Dim Bills As Outlook.MAPIFolder
Set OLns = OLapp.GetNamespace("MAPI")
Set PersonalFolder = OLns.GetDefaultFolder(olPublicFoldersAllPublicFolders)
Set Inbox = OLns.GetDefaultFolder(olFolderInbox)
Set BillsFolder = PersonalFolder.Folders("Bills")
If Inbox.Items.Count = 0 Then Exit Sub
For iLoop = Inbox.Items.Count To 1 Step -1
Set obj = Inbox.Items(iLoop)
If obj.SenderEmailAddress = "[email protected]" Then obj.Move BillsFolder
Set obj = Nothing
Next iLoop
Set BillsFolder = Nothing
Set PersonalFolder = Nothing
Set Inbox = Nothing
Set OLns = NothingAre you sure a folder named Bills exists in the PF store?
Dmitry Streblechenko (MVP)
http://www.dimastr.com/redemption
Redemption - what the Outlook
Object Model should have been
Version 5.5 is now available! -
Please suggest corrections to the following code
Hi,
Please find the error in following PL/Sql code and suggest the corrections.
I want to use this code on form-trigger level to display error messages in middle of the screen.
When I compile this code in ONERROR trigger, it is showing compiling errors.
Code:
ERR_VAL NUMBER(5):= NVL(ERR_IN,ERROR_CODE);
MSG VARCHAR2(150) := NVL(MSG_IN,SUBSTR(' '||ERROR_TYPE||'-'
||TO_CHAR(ERR_VAL)||': '||ERROR_TEXT,1,150));
Compilation time errors:
Error 103 at line 1,column9
Encountered the symbol NUMBER when expecting one of the following:
:= [ @ %
the symbol = was substituted for NUMBER to continue
Error 103 at line 1, column 27
Encountered the symbol= when expecting one of the following:
.[=%=.+</> in mod not rem an exponent(**)
<> or !=~=>=<=<> and or like between is null is not ||
is dangling
the symbol was inserted before= to continue.
Error 103 at line2, column5
Encountered the symbol VARCHAR3 to continue.
Error 103 at line2,column 20
Encountered the symbol= when expecting one of the following:
.[=%=.+</> in mod not rem an exponent(**)
<> or !=~=>=<=<> and or like between is null is not ||
is dangling
the symbol was inserted before= to continue.Here's the code I use in a Forms ON-Error trigger.
Dave
DECLARE
errnum NUMBER := ERROR_CODE;
errtxt VARCHAR2(80) := ERROR_TEXT;
errtyp VARCHAR2(3) := ERROR_TYPE;
BEGIN
Message(errtyp||'-'||TO_CHAR(errnum)||': '||errtxt);
Message(' ');
RAISE Form_Trigger_Failure;
END; -
I have made a very simple HTML page in text editor on my mac. I'm trying to view what the page would look like in firefox, but it just brings up the code, rather than the webpage, even though the extension in the address bar says .html.
Are you opening that file locally or have you uploaded the file to a server on the internet?
Can you post a link if you have uploaded the file? -
I NEED MY UNBLOCKING CODE FOR MY IPHONE 4S ,I HAVE BEEN INCONTACT WITH MY SERVICE PROVIDER AND THEY CONFIRMED THEY HAVE SENT AN EMAIL TO YOURSELF TO GET THE CODE AND NOW I NEED TO CONTACT YOU MYSELF IS THIS CORRECT AS VODAFONE DO NOT SEEM TO BE HELPING ME
There is no such thing as an unlock code for an iPhone. It's done by restoring the phone using iTunes
-
I put the code in correctly but it says, "The Gift certificate or prepaid code has not been properly activated." or "The code you have entered has not been recognized as valid." Help ?
You will need to contact the iTunes Store.
Maybe you are looking for
-
Production Order GR with Planned Price
Dear All, We are using following steps for production order= 1) Create BOM, for Semifinished material with Price control = "S" 2) Create Roting, with all Keys PP01, PP02 and PP03 with Material allocation to respective steps 3) Standard Cost Estimatio
-
How do I set up a permanent wifi network connection?
Hi all, I had been using my D-link wireless router for a couple of years, when it just gave up the ghost this week. I happened to have a spare linksys wireless router which I then set up, and it works fine. My desktop pc connects fine, and my visitin
-
Mac Burnt DVD-R Same As PC?
Hi. I have a beginner's question... If I burn a data DVD-R on my iMac, will it be exactly the same as a DVD-R burnt on a PC? Or will it be in some weird Mac format? I've done some tests, and the file system of a Mac burnt DVD-R, and a PC burnt DVD-R,
-
How to get Test Results to SQL w/o Coldfusion
Is there a way to get Captivate test results (or any results) to SQL. I was thinking of using the SCORM interface? A simple elegant solution would be great since I want to build it into to all my componants. Thanks in advance, Scott
-
I recently upgraded my iPod to iOS 6. Unfortunetaly, it did no good. I had to restore my iPod... over and over again. It is still "waiting on Ipod.....". The iPod's screen is black with the Apple logo, and a loading bar... with no percentage loaded.