FPGA Sampling probe display error
In LabView 2014F1, I discovered a very disturbing bug. Take a sampling probe window I've been working with in order to ferret out issues with an FPGA sub-vi:
Scrolling left and right using the mouse results in changes to signal alignment! Which one is correct? It's difficult to know...
Re-running the simulation (DEN based using a CSV file as a vector input) without touching the probe window results in a identically aligned signal set to the original window (But signals still shift vertically which is highly irritating)
This should be considered a critical bug given that the behavior is unpredictable and results in incorrect signal display. The probe window is critical to debugging FPGA code in LV2014 and if it can’t be trusted to display actual data relationships, it is entirely useless. It should never have made it into the production release of LabView FPGA in this condition.
xl600
I understand your frustration, in order to be able to report this bug, we need to be able to reproduce the error. I have tried zomming in and out and moving the scroll in the Sampling Probe Watch Window in my computer (2014 FPGA Module), but the lines do not lose alignment.
I was wondering if you could post a zip file with a simplified version of your code, that behaves as you describe, and the steps you follow to reproduce the issue in that code, so we can see the same behavior in our side?
WenR
Similar Messages
-
LVFPGA - Sampling Probe Watch Window - Label format as Enum
Hi,
Although I doubt the answer is yes, I'm still gonna ask you guys
Is it possible, when using Sampling Probes when simulating FPGA code on the Dev computer to display information as an Enum (obviously, I'm probing an enum). There are three different "Label formats" called Decimal, Hexadecimal, Binary, but no way I guess to display as Enum.
Would save part of my brain at the end of the day
Thanks for replies and have a good weekend
Mathieu Steiner, Test System Engineer, Safran Engineering
CLD, ISTQBHi Mathieu
Unfortunately at this time values can only be displayed as numeric values. This was a limitation of the Digital Waveform Graph used for the dialog we were aware of when the feature was added, but was not something we could deliver a solution to on that release's timeframe.
Richard Bell
[email protected] -
BDC display Error while converting the Currency ..
Hi,
Using BDC i have to cal Transaction Vk15.
In this we have a field KONP-kbetr, which is a currency feild, with 2 decimals.
I have to converted the Currency to 'EUR' and has moved it in a variable "gv_char13".
______________+declaration part+_____________________
Data : gv_eurconv_vk(14) TYPE rkb1k-exchr,
gv_eurconv_vk TYPE konp-kbetr,
gv_char13(14) TYPE c.
_____________+Currency Conversion+________________
CALL FUNCTION 'RKC_SINGLE_EXCHANGE_RATE_GET'
EXPORTING
datum = gv_sydatum
kurst = 'P'
ncurr = 'EUR'
vcurr = 'CZK'
IMPORTING
exchr = gv_exchr_vk
EXCEPTIONS
no_rate_found = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
WRITE gv_exchr_vk NO-GROUPING CURRENCY 'EUR'.
MOVE gv_exchr_vk TO gv_eurconv_vk.
CLEAR gv_char13.
WRITE gv_eurconv_vk TO gv_char13.
_________+Passing Value IN BDC VK15+__________
wa_bdcdata_vk-fnam = 'KONP-KBETR(01)'.
wa_bdcdata_vk-fval = gv_char13.
SHIFT wa_bdcdata_vk-fval LEFT DELETING LEADING space.
APPEND wa_bdcdata_vk TO gt_bdcdata_vk.
CLEAR wa_bdcdata_vk.
----------+Calling the Transaction VK15+____
CALL TRANSACTION 'VK15' USING gt_bdcdata_vk MODE 'E' MESSAGES INTO gt_bdcmsg_vk.
**--Display the error message if the call transaction fails--**
IF sy-subrc EQ 0.
IF NOT gt_bdcmsg_vk IS INITIAL.
READ TABLE gt_bdcmsg_vk INTO wa_bdcmsg_vk INDEX sy-index.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = wa_bdcmsg_vk-msgid
lang = 'EN'
no = wa_bdcmsg_vk-msgnr
v1 = wa_bdcmsg_vk-msgv1
v2 = wa_bdcmsg_vk-msgv2
v3 = wa_bdcmsg_vk-msgv3
v4 = wa_bdcmsg_vk-msgv4
IMPORTING
msg = gv_text_vk
EXCEPTIONS
OTHERS = 0.
IF sy-subrc EQ 0.
APPEND gv_text_vk TO gt_mess_vk.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
**--Display the error message on the screen--**
IF NOT gt_mess_vk[] IS INITIAL.
LOOP AT gt_mess_vk INTO wa_mess_vk.
WRITE:/ wa_mess_vk.
CLEAR wa_mess_vk.
ENDLOOP.
ENDIF.
In the dispaly tabkle for error message "gt_bdcmsg_vk" we get the sucess message and in table "gt_mess_vk" we get the message as the "Condition records Saved."
The problem is when this report is executed it displayes the converted currency Value and in next line it dispalyes the ""Condition records Saved".
But idealy the converted currency value should not be dispalyed.
Actual Sample display:(shuld be this ):
xyz.. message
Condition Record Saved.
Sample display (Error Dispaly ):
xyz.. message
3,14E-02 -
(This shuold not be dispalyed)
Condition Record Saved.Use modified code...
*______________declaration part_____________________
Data : gv_eurconv_vk(14) TYPE rkb1k-exchr,
gv_eurconv_vk TYPE konp-kbetr,
gv_eurconv_vk TYPE p DECIMALS 2,
gv_char13(14) TYPE c.
*_____________Currency Conversion________________
CALL FUNCTION 'RKC_SINGLE_EXCHANGE_RATE_GET'
EXPORTING
datum = gv_sydatum
kurst = 'P'
ncurr = 'EUR'
vcurr = 'CZK'
IMPORTING
exchr = gv_exchr_vk
EXCEPTIONS
no_rate_found = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
WRITE gv_exchr_vk NO-GROUPING CURRENCY 'EUR'.
MOVE gv_exchr_vk TO gv_eurconv_vk.
gv_eurconv_vk = gv_exchr_vk.
CLEAR gv_char13.
WRITE gv_eurconv_vk TO gv_char13.
*_________Passing Value IN BDC VK15__________
wa_bdcdata_vk-fnam = 'KONP-KBETR(01)'.
wa_bdcdata_vk-fval = gv_char13.
SHIFT wa_bdcdata_vk-fval LEFT DELETING LEADING space.
APPEND wa_bdcdata_vk TO gt_bdcdata_vk.
CLEAR wa_bdcdata_vk.
Calling the Transaction VK15____
CALL TRANSACTION 'VK15' USING gt_bdcdata_vk MODE 'E' MESSAGES INTO gt_bdcmsg_vk.
*Display the error message if the call transaction fails*
IF sy-subrc EQ 0.
IF NOT gt_bdcmsg_vk IS INITIAL.
READ TABLE gt_bdcmsg_vk INTO wa_bdcmsg_vk INDEX sy-index.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = wa_bdcmsg_vk-msgid
lang = 'EN'
no = wa_bdcmsg_vk-msgnr
v1 = wa_bdcmsg_vk-msgv1
v2 = wa_bdcmsg_vk-msgv2
v3 = wa_bdcmsg_vk-msgv3
v4 = wa_bdcmsg_vk-msgv4
IMPORTING
msg = gv_text_vk
EXCEPTIONS
OTHERS = 0.
IF sy-subrc EQ 0.
APPEND gv_text_vk TO gt_mess_vk.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
*Display the error message on the screen*
IF NOT gt_mess_vk[] IS INITIAL.
LOOP AT gt_mess_vk INTO wa_mess_vk.
WRITE:/ wa_mess_vk.
CLEAR wa_mess_vk.
ENDLOOP.
ENDIF. -
Display error message from SLG1 on shopping cart screen
I have implemented a 'BBP_CATALOG_TRANSFER' badi. I am adding all the custom error messages in ET_SC_MESSAGES export parameter of this badi. As a result of this, all the custom error messages added in the above parameter, gets logged in the application log SLG1 automatically and I can see those custom messages in SLG1. Now how to display this message from SLG1 on the shopping cart screen on the top where you normally see standard error messages in red.
Can anyone please help me on this?
Thanks,
KrupaHi
Which SRM version are you using ?
I have not tried this... but I think this is not possible to display error messages
using BBP_CATALOG_TRANSFER BADI.
<u>Try to code your logic in using BBP_DOC_CHECK_BADI for filter type - BUS2121 (shopping cart). You need to add your custom message in ET_MESSAGES [] table.</u>
<b>For sample coding, refer to the link below -></b>
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/bbp_doc_check_badi-CheckPurchasingDocument&
<b>Hope this will definitely help.</b>
Do let me know.
Regards
- Atul -
As to display error message details
Hi Experts,
I would like to display error message's details via clicking on Details link as below, more information shall be displayed in a popped up dialog box. How can I implement it and add a link under Details word?
Kind Regards
AndieHi Andie,
Try using CRM_MESSAGE_COLLECT function module.
Sample code
CALL FUNCTION 'CRM_MESSAGE_COLLECT'
EXPORTING
iv_caller_name = 'ORDERADM_H'
iv_msgno = sy-msgno
iv_msgid = sy-msgid
iv_msgty = sy-msgty
iv_msgv1 = sy-msgv1
iv_msgv2 = sy-msgv2
iv_msgv3 = sy-msgv3
iv_msgv4 = sy-msgv4
iv_docnumber = iv_guid.
Best Regards,
Dharmakasi. -
Hi Team,
I implemented news carousel using display template concepts.
Its working.
But some times it shows like some thing went wrong
when clicke on show details
it showing the error like
Display Error: The display template had an error. You can correct it by fixing the template or by changing the display template used in either the Web Part properties or Result Types.
$(...).slick is not a function (OnPostRender: )
some times showing result and while refreshing the page am getting the error like below
How to fix the issue
Regards,
DhayanandHi Wendy Li,
Finally we fixed.
The prob is that we referring two different version of jquery files in master page and page layout.
We corrected by referring same version of jquery files in both pages
Regards,
Dhayanand -
Hi,
I have a while loop that reads data from hardware and sends it (via queue) to a processing loop. In parallel, but much slower, the processing loop averages and displays the data. Because I had some problems, I probed the error wire in the read loop. When adding a probe, I have read errors caused by data overflow, i.e. the read loop is not emptying the hardware buffers fast enough. How much does the probe slow down the read loop? If I can't use probes or highlights (as that slows down the loop even more, obviously) how can I debug this code?
Thanks,
Danielle
"Wisdom comes from experience. Experience is often a result of lack of wisdom.”
― Terry PratchettAttached the snippet as requested.
All the initialize etc. happens before the loop. In the loop, I read untill there is data in the buffer (inner loop) send the data to the display loop (in the subvi) and read again until done (until the boolean is TRUE). I tried to probe the error in the inner loop.
To begin with, we had some hardware problems. In order to debug and correct, I used probes. However, today I noticed that when I use the probe, I get an error relatively quickly. Sometimes the code runs well for a long time with the probe and casues no errors at all.
Now I'm mainly confused
Thanks,
Danielle
"Wisdom comes from experience. Experience is often a result of lack of wisdom.”
― Terry Pratchett
Attachments:
DTReadLoop.png 116 KB -
Hi Guys,
I am getting a Page can not be displayed error while uploading a COntract Document in SAP-E-soucing 7.0.
Maximum Size set in Our SYSTEM is :9765MB.
Approx size of the Document tried is more then 300MB.
Appreciate your help on this.
Regards
TarunHi Tarun,
Please check the below system properties using system user login
attachments.maxSizeKB.buyers - "Maximum size in KB of a employer-attached attachment file"
attachments.upload.enable.buyers- " Enable/Disable uploading of attachments by internal users"
Also Please check with other attachment, contracts related properties in the System.
Let me know if this helps.
Thanks,
Raj. -
Display error message in batch job log
Hello
I have a batch job running and I have an error coming during some validation logic.
The problem is I need to continue the batch job when this error message comes and it should not cancel the batch job as it is doing currently but display that error message in batch job log, there are more similar error messages coming in job log and job gets finished, but when my error message comes job gets cancelled.
I cannot give it as info message as it will give wrong idea about message type.
Is there any FM by which we can add message in job log?Sanjeev I have done that but problem is I do not want to give that as Information message but Error message only and continue processing.
If you see in screenshot 3rd message is given by me as information and you can see error messages also 6th and 7th and job continued till it is finished
Basically I want that 'I' to be displayed as 'E'.
Display error message in batch job log -
Hi,
Windows 7 or Windows Server 2008 R2 domain join displays error "Changing the Primary Domain DNS name of this computer to "" failed...."
DC:windows Server 2008 R2
Domain functional level:Windows Server 2003
When Winxp join domain, have no this error message.
I checked http://support.microsoft.com/kb/2018583?wa=wsignin1.0 does't work.
There have 3 suggestion in this article:
1.The "Disable NetBIOS over TCP/IP" checkbox has been disabled in the IPv4 properties of the computer being joined.
Doesnt's work.
2.Connectivity over UDP port 137 is blocked between client and the helper DC servicing the join operation in the target domain.
On my DC, I run netstat -an, reslut as below:
UDP 192.168.20.3:137 *:*
3.The TCP/IPv4 protocol has been disabled so that the client being joined or the DC in the destination domain targeted by the LDAP BIND is running TCP/IPv6 only.
We are not using IPV6.
This server recently updated from Windows Server 2003 to Windows Server 2008 R2. Before upgrade, when Win7 and Win2008 join this domain, also have the same error message.
Please help to check this issue.
Thank you very much.
BR
Guo YingHuiHi Guo Ying,
I have faced this critical error which makes over-writes the host names in the domain when you join.
For example: Already you had a host name called as PC.domain.com in the domain.com Domain.
When you try to add the another host name called as PC in the domain.com Domain, it doesn't give you the duplicate name error on the network it does over-write the existing host name called as PC.domain.com & it will add the new host name into the domain.
Host name which got over-written will get removed from the domain. I faced this issue in my project. My DPM host name got removed from the Domain & new host name got joined into the domain which halted my backups for one day.
Final Resolution is as follows:
You need to start the dns console on the DC & drop down the domain name.
Select the _msdcs when you click on _msdcs it will show the Name Server's list on the right hand side.
You need to add the Domain Naming Master under the _msdcs or add all the domain controllers which you had.
After you add the Name server's try joining the PC OR Laptop to the domain which is successfully joins it.
Regards
Anand S
Thanks & Regards Anand Sunka MCSA+CCNA+MCTS -
"XML page cannot be displayed" error
Using XML output on a table with more than a few rows falls over with a "XML page cannot be displayed" error. Sometimes only the error is displayed, sometimes some rows are displayed with this error at the end of the page (eg the DEMO_STATES table)
Can anyone advise if there is some sort of limiter at work here?
Thanks,
Barryi'm pretty sure that error comes up when your browser (ie, specifically, i believe) can't render the xml data it's received. i'm also pretty sure, as the full message implies, it's because it doesn't know what style sheet to use when you go to that page. in short, it's a browser config issue. one way to bypass it (to at least prove that it's a browser issue) would be to create a link to your page, right click the link, and do a "Save Target As...". the resulting file will be your valid XML one. fwiw, i've had better luck controlling the manner in which my xml data is received when i use mozilla or netscape (but i'd imagine there's just some setting you'd toggle in IE to avoid your issue).
hope this helps,
raj -
Editable alv: add custom validation and display "errors" in protocol list
Hi,
What I want to do:
PAI validation of editable alv with displaying error's in the protocol list by adding custom entries to the existing protocol object.
What is my problem:
After registering "data_changed event", the protocol list don't appear.
My understanding is, that the object "er_data_changed" is passed by the event "data_changed"
an so I thought I can add some more entries to the protocol list.
After "de-registering" the "data_changed" event, the protocol appears with the standard errros messages (e.g. "input to numeric" by enter charachters)
One more hint:
By creating a new object "er_data_changed" in the handler method the protocol list works, but I would like to append entries to the object that was passed with the event.
Probably I've misunderstand something, please help !
My coding:
PAI:
trigger event "data_changed" -> calls handler method
CALL METHOD r_myalv->check_changed_data
IMPORTING
e_valid = is_valid.
stop processing
IF is_valid NE 'X'.
MESSAGE 'invalid input' TYPE 'E' .
ENDIF.
handler method:
handle_data_changed FOR EVENT data_changed OF cl_gui_alv_grid IMPORTING e_ucomm
er_data_changed.
METHOD handle_data_changed.
data: ls_mod_cell type lvc_s_modi.
CALL METHOD er_data_changed->add_protocol_entry
EXPORTING
i_msgid = 'SU'
i_msgty = 'E'
i_msgno = '000'
i_msgv1 = 'This is a test !'
i_fieldname = ls_mod_cell-fieldname.
er_data_changed->refresh_protocol( ).
er_data_changed->DISPLAY_PROTOCOL( ).
ENDMETHOD. "handle_data_changedDear Olaf,
If understood correctly, you want to Edit an ALV and do some data validations when some data is changed in an ALV. To do this follow the following steps:
1. Before displaying ALV, Register the edit event.
* Set cell modified to trigger data_changed
CALL METHOD go_alv_grid->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_modified.
2. Register the event DATA_CHANGED of class CL_GUI_ALV_GRID & handle the event.
SET HANDLER lo_event_receiver->handle_data_changed FOR go_alv_grid.
The event DATA_CHANGED of class CL_GUI_ALV_GRID has a parameter ER_DATA_CHANGED which is of type CL_ALV_CHANGED_DATA_PROTOCOL.
This er_data_changed has internal table MT_MOD_CELLS(contains index of records changed ) & MP_MOD_ROWS(contains the changed row), using these update your internal table accordingly.
DATA : wa_mod_cell TYPE lvc_s_modi.
FIELD-SYMBOLS: <fs> TYPE table.
LOOP AT er_data_changed->mt_mod_cells INTO wa_mod_cell.
ASSIGN er_data_changed->mp_mod_rows->* TO <fs>.
READ TABLE <fs> INTO wa_output INDEX wa_mod_cell-tabix.
MODIFY lt_output FROM wa_output INDEX wa_mod_cell-row_id.
ENDLOOP.
3. Here it self you can do the required data validations(No need of any PAI modules) as below.
IF wa_orders-zfstfirmtyp = c_9.
MESSAGE s288(zcsp).
DELETE er_data_changed->mt_mod_cells.
EXIT.
ENDIF.
Regards
Kesava -
How to display error message ??
Hi,
I have a BDC program to upload data from an excel sheet. I could see that some records of data fail to pass and hence after my bdc run i would like to display error message for the failed records as follows:
costcenter:
cost element:
fiscal year:
etc etc
is it possible ?? how to do that ? please explain in detail.
for ur reference my program is pasted below.
thanks
*& Report ZBDC_BUDGET_UPLOAD
REPORT ZBDC_BUDGET_UPLOAD.
types: begin of tdata,
rec(150) type c,
end of tdata,
begin of tmtgp,
costcent LIKE CCSS-KOSTL,
costelem LIKE CCSS-KSTAR,
fisyear LIKE CCSS-GJAHR,
jan(10),
feb(10),
mar(10),
apr(10),
may(10),
jun(10),
jul(10),
aug(10),
sep(10),
oct(10),
nov(10),
dec(10),
end of tmtgp.
data: idata type table of tdata with header line.
data: imtgp type table of tmtgp with header line.
Data : fieldval(10) type c.
selection-screen begin of block b1 with frame title text-001.
parameters: p_file type localfile default 'C:\budget_data_csv.csv'.
selection-screen end of block b1.
include zbdcrecx1.
at selection-screen on value-request for p_file.
call function 'KD_GET_FILENAME_ON_F4'
exporting static = 'X'
changing file_name = p_file.
start-of-selection.
perform upload_data.
loop at imtgp.
Write imtgp-fisyear to fieldval.
perform open_group.
perform bdc_dynpro using 'SAPLKPP0' '1000'.
perform bdc_field using 'BDC_CURSOR'
'KPP0B-VALUE(04)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'KPP0B-VALUE(04)'
fieldval.
Write imtgp-costcent to fieldval.
perform bdc_dynpro using 'SAPLKPP0' '1000'.
perform bdc_field using 'BDC_CURSOR'
'KPP0B-VALUE(06)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'KPP0B-VALUE(06)'
fieldval.
perform bdc_dynpro using 'SAPLKPP0' '1000'.
perform bdc_field using 'BDC_CURSOR'
'KPP0B-VALUE(09)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-costelem to fieldval.
perform bdc_field using 'KPP0B-VALUE(09)'
fieldval.
perform bdc_dynpro using 'SAPLKPP0' '1000'.
perform bdc_field using 'BDC_CURSOR'
'KPP0B-VALUE(04)'.
perform bdc_field using 'BDC_OKCODE'
'=CSPB'.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(01)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-jan to fieldval.
perform bdc_field using 'Z-BDC03(01)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(02)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-feb to fieldval.
perform bdc_field using 'Z-BDC03(02)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(03)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-mar to fieldval.
perform bdc_field using 'Z-BDC03(03)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(04)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-apr to fieldval.
perform bdc_field using 'Z-BDC03(04)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(05)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-may to fieldval.
perform bdc_field using 'Z-BDC03(05)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(06)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-jun to fieldval.
perform bdc_field using 'Z-BDC03(06)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(07)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-jul to fieldval.
perform bdc_field using 'Z-BDC03(07)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(08)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-aug to fieldval.
perform bdc_field using 'Z-BDC03(08)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(09)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-sep to fieldval.
perform bdc_field using 'Z-BDC03(09)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(10)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-oct to fieldval.
perform bdc_field using 'Z-BDC03(10)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(11)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-nov to fieldval.
perform bdc_field using 'Z-BDC03(11)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(12)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
Write imtgp-dec to fieldval.
perform bdc_field using 'Z-BDC03(12)'
fieldval.
perform bdc_dynpro using 'SAPLKPP2' '0110'.
perform bdc_field using 'BDC_CURSOR'
'Z-BDC03(12)'.
perform bdc_field using 'BDC_OKCODE'
'=CBUC'.
perform bdc_transaction using 'KP06'.
perform close_group.
endloop.
form upload_data.
data: filename type string.
clear idata.
refresh idata.
filename = p_file.
call function 'GUI_UPLOAD'
exporting filename = filename
filetype = 'ASC'
tables data_tab = idata
exceptions file_open_error = 1
file_read_error = 2
no_authority = 6
others = 17.
check sy-subrc = 0.
loop at idata.
clear imtgp.
split idata at ',' into imtgp-costcent imtgp-costelem imtgp-fisyear
imtgp-jan imtgp-feb imtgp-mar imtgp-apr imtgp-may imtgp-jun imtgp-jul
imtgp-aug imtgp-sep imtgp-oct imtgp-nov imtgp-dec.
append imtgp.
endloop.
endform.check the below code,.,
DATA : t_bdcmsgcoll TYPE STANDARD TABLE OF bdcmsgcoll WITH HEADER LINE.
CALL TRANSACTION '<DELIVERYTRANSACTION>' USING t_bdctab
mode 'N'
MESSAGES INTO t_bdcmsgcoll.
DESCRIBE TABLE t_bdcmsgcoll LINES g_lines.
READ TABLE t_bdcmsgcoll INDEX g_lines.
IF t_bdcmsgcoll-msgtyp = 'S' AND
t_bdcmsgcoll-msgid = <Msg id> AND
t_bdcmsgcoll-msgnr = <Msg number>.
* Trap your Call Transaction messages
t_success-deliverynumber = t_bdcmsgcoll-msgv1.
* You can format the message returned by call transaction using function 'FORMAT_MESSAGE' which will return g_mesg
t_success-message = g_mesg.
APPEND t_success.
CLEAR t_success.
ELSE.
* If there an Error-Do this..
READ TABLE t_bdcmsgcoll WITH KEY msgtyp = 'E'.
IF sy-subrc = 0.
* Format your message using FORMAT_MESSAGE "FM
CLEAR g_mesg.
t_error-msg = g_mesg_incl.
APPEND t_error.
CLEAR t_error.
ENDIF.
ENDIF.
* Clear for next run
CLEAR: t_bdcmsgcoll,
t_bdctab.
REFRESH: t_bdcmsgcoll[],
t_bdctab[]. -
Prb display error message while creating PR at ME51n in ME_PROCESS_REQ_CUST
Hi All,
I have this requirement to check the cost center availability in PR screen (ME51n).
If cost center in the Account assignment tab is not empty, display error message and not able to create the PR.
With my code below, it doesn't triggered the error message and PR created.
Could anyone help?
METHOD if_ex_me_process_req_cust~process_account.
DATA: w_account_ref TYPE exkn.
w_account_ref = im_account_ref->get_data( )
IF w_account_ref-kostl IS NOT INITIAL.
MESSAGE e303(ME) WITH text-001 w_account_ref-kostl text-002.
ENDIF.
ENDMETHOD.
Thank you.
SWHi,
You have to use definition MMPUR_MESSAGE 'E' ME 303 text-001 w_account_ref-kostl text-002.
This will throw the error during check and save instead of message e303(me) .
Hope it helps.
Sujay
Edited by: Sujay Venkateswaran Krishnakumar on Oct 5, 2010 2:54 PM -
A way to display error messages from the program
Dear all,
I am looking forward to display a set of error messages(in a internal table) during the execution of the program to the user.
I wanted to know the better way of displaying error messages from my program with more options.
Well I tried out using displaying errors as ALV list/Grid or as simple list processing.
But I found some stanadard transactions (Like in MM and FI where errors are shown in a better way, but failed to find out how they are done.
Please guide me.
Thanks in advance
AryanTry to use application logging it has a very good way to display a set of messages.
[http://abap4.tripod.com/Using_Application_Logging.html|http://abap4.tripod.com/Using_Application_Logging.html]
Run this report in se38 an example sap report to understand logging way to show a set of messages
Report Name : SBAL_DEMO_01
Edited by: Vighneswaran CE on Dec 19, 2010 3:01 PM
Edited by: Vighneswaran CE on Dec 19, 2010 3:11 PM
Maybe you are looking for
-
3.1.1 upgrade breaks OEM 12c Infrastructure Cloud
Greetings, After upgrading from 3.0.3 to 3.1.1 (manager first then servers) all of the Oracle VM targets in OEM 12c Infrastructure Cloud have metric collection errors, specifically "ERROR - Failed to connect to OVM Manager1010", i.e. oracle.sysman.vt
-
QuickTime 7.1.0 for Windows
For my work, we need to download QuickTime 7.1.0 for our video editing program to work properly. I have not been able to find that version for download on the Apple site. Does anyone know if www.oldversion.com/program.php?n=quicktime is a reliable si
-
HT3775 can't play AVI MOV on QT
i have two AVI MOVIE one plays the other not. every time the problem occurs i am brought here.
-
Adobe Form From Excel Has Excel File Location in Form
I took an excel sheet that we use as a form and used the adobe form wizard to convert it to a pdf form and it has the excel files location at the bottom of the form C:\Documents and Settings\My Name\Desktop\stsform.xls. How can i make it so that this
-
Could u please tell abt " How to guide for Web Dynpro ". Where i can get details for webDynpro Regards, Vibhuti