View ABAP program data in PDF
Hello Experts,
I am working on program to display the invoices data in PDF through ABAP program. For this i have used cl_gui_html_viewer and ALV grid. everything works fine but one. When I click on the PDF preview button on screen then for first PDF its working fine, but when i click on the another PDF preview button then it displays blank screen. In case of rerunning the program it again works fine only for first PDF preview. if anybody have idea regarding this issue please share it with me. FYI i am attaching necessary code with this.
Thanks,
Avadhut
Hi Alok,
Here is something wrong in the code i have used it to display PDF.
METHOD on_link_click.
DATA : l_str_content TYPE zebd_send_content.
READ TABLE m_tab_content INDEX row INTO l_str_content.
DATA: l_xml TYPE REF TO cl_xml_document.
CREATE OBJECT l_xml.
CASE column.
WHEN 'PRVW'.
g_attachment_string = l_str_content-attachment.
CALL FUNCTION 'Z_EBD_PDF_SHOW'
EXPORTING
i_id = l_str_content-id
i_pdf_string = g_attachment_string.
CREATE OBJECT g_rcl_html_control
EXPORTING
* shellstyle =
parent = g_rcl_html_container
* lifetime = lifetime_default
* saphtmlp =
* uiflag =
* name =
* saphttp =
* query_table_disabled = ''
* EXCEPTIONS
* cntl_error = 1
* cntl_install_error = 2
* dp_install_error = 3
* dp_error = 4
* others = 5
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
FUNCTION Z_EBD_PDF_SHOW .
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(I_PDF_STRING) TYPE STRING
*" REFERENCE(I_ID) TYPE STRING
g_attachment_string = i_pdf_string.
g_id = I_ID.
call screen 0101 STARTING AT 5 5.
ENDFUNCTION.
***INCLUDE LZ_EBDO01 .
*& Module STATUS_0100 OUTPUT
* text
module STATUS_0100 output.
set pf-status '100'.
* SET TITLEBAR 'xxx'.
clear: g_url, g_tab_pdf_data,g_attachment_binary.
free: g_rcl_html_container, g_rcl_html_control.
create object g_rcl_html_container
exporting
container_name = 'PDF'.
create object g_rcl_html_control
exporting
parent = g_rcl_html_container.
* lifetime = cl_gui_html_viewer=>lifetime_dynpro.
* CREATE OBJECT g_rcl_pdf_control
* EXPORTING
* parent = g_rcl_html_container
** lifetime =
** shellstyle =
** autoalign =
* EXCEPTIONS
* cntl_error = 1
* cntl_system_error = 2
* create_error = 3
* lifetime_error = 4
* others = 5
* IF sy-subrc <> 0.
** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
** WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
* ENDIF.
* Convert xstring to binary table to pass to the LOAD_DATA method
clear g_attachment_binary.
call function 'SSFC_BASE64_DECODE'
exporting
b64data = g_attachment_string
importing
bindata = g_attachment_binary
exceptions
others = 8.
clear g_tab_pdf_data.
call function 'SCMS_XSTRING_TO_BINARY'
exporting
buffer = g_attachment_binary
tables
binary_tab = g_tab_pdf_data.
* Load the HTML
clear g_url.
CONCATENATE g_id '.pdf' into g_id.
g_rcl_html_control->load_data(
exporting
url = g_id
type = 'application'
subtype = 'pdf'
importing
assigned_url = g_url
changing
data_table = g_tab_pdf_data
exceptions
dp_invalid_parameter = 1
dp_error_general = 2
cntl_error = 3
others = 4 ).
* CALL METHOD g_rcl_pdf_control->open_document
* EXPORTING
* url = g_url
* EXCEPTIONS
* cntl_error = 1
* cntl_system_error = 2
* others = 3
* IF sy-subrc <> 0.
** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
** WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
* ENDIF.
** Show it
g_rcl_html_control->show_url( url = g_url
in_place = 'X' ).
endmodule. " STATUS_0100 OUTPUT
Thanks,
Avadhut
Similar Messages
-
ABAP programming: Data validation
Hi everybody,
I wanted to know how to display error messages if a user enters invalid data at the selection screen in a particular select-options field. Also the selection screen should be redisplayed after the message.
thanksHi,
Check this code
REPORT z_sdn.
TABLES:
vbak.
DATA:
w_vbeln TYPE vbak-vbeln.
SELECT-OPTIONS:
s_vbeln FOR vbak-vbeln. " Sales Document
* AT SELECTION-SCREEN ON s_vbeln EVENT
AT SELECTION-SCREEN ON s_vbeln.
* Subroutine to validate the sales document entered by user.
PERFORM f0000_validate_sales_doc.
START-OF-SELECTION.
WRITE: / 'TEST'.
*& Form f0000_validate_sales_doc
* text
FORM f0000_validate_sales_doc .
IF s_vbeln[] IS NOT INITIAL.
* Select query to fetch sales document
SELECT vbeln " Sales Document
FROM vbak
INTO w_vbeln
UP TO 1 ROWS
WHERE vbeln IN s_vbeln.
ENDSELECT. " SELECT vbeln
IF sy-subrc NE 0.
MESSAGE 'The entries you have specified do not exist in master table' TYPE 'E'.
ENDIF. " IF sy-subrc NE 0.
CLEAR w_vbeln.
ENDIF. " IF s_vbeln IS NOT INITIAL
Regards
Abhijeet -
Macro to create Excel data to PDF file.
hi i have data in my spread sheet, assume Sheet1. I want user to view/save the data in PDF file automaticallu upon clicking command button. Viewing/saving any onething will work for me. Need complete steps please.
Thanks,
Robo.Hans -
You're answers on this topic have been very helpful, thank you. I have one question.
I'm using the below code which is perfect for me, but I want to add one thing. I want to be able to select the previous sheet so that it is printed as well. I want the previous sheet to be the first page that gets printed in the PDF, so the current sheet
(The sheet with the "Print PDF" button) gets printed as the second sheet.
Your help in solving this would be appreciated it.
Sub SavePDF()
Dim strFileName As String
strFileName = Application.GetSaveAsFilename( _
InitialFileName:="\\server\share\folder\", _
FileFilter:="PDF Files (*.pdf),*.pdf", _
Title:="Save As PDF")
If strFileName <> "False" Then
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=strFileName, _
OpenAfterPublish:=False
End If
End Sub -
Getting Data from Maintenance view V001N into ABAP program
Hello Experts,
I have to fetch data from the maintenance view V001N in my ABAP program. I have used select statement in my program but I am getting a syntax error 'V001N is not defined in the ABAP Dictionary as a table, projection view or database view. '. V001N is a Maintenance view.
Can anybody help me out how to get the data from that maintenance view into the internal table of my ABAP program.
Regards.Sunil,
check these threads
https://forums.sdn.sap.com/click.jspa?searchID=18906946&messageID=6074746
https://forums.sdn.sap.com/click.jspa?searchID=18906946&messageID=6088233
so query on the tables which are used in the view
Thanks
Bala Duvvuri -
Sending Data to PDF Forms from ABAP Program.
Hi Experts,
I left ABAP Programing for a while around 1+ years Due to some personal problems
Now I have struck up with new issue. Its ADOBE PDF forms.
I am Entirely new to this topic & knows about Nothing.
My requirement is to display a report in PDF form. Its totally Independent form from NACE.
I have written a Driver program & retrieved all the DATA into a Final internal table.
Now All that I need is to display the same Internal Table data into PDF form output.
Can anyone help me how to send this data(47 records in Internal table with 8 fields in Internal table) to PDF.
Please help me out Experts with any suggestions.
Thanks & Regards,
Dileep .CHi,
if u pass your internal table to smartform we can achieve . because we can convert smartform output into pdf easily.
Regards,
karthikeyan k s,
Edited by: karthikeyanks on Nov 19, 2010 12:58 PM -
Submit data to an ABAP program from an offline form
Hello Forms experts,
the requirement goes like this: I have an internal table that will be passed to the form (via interface context) in the form the data will be changed by the user and the changes must be reflected in the internal table.-
I have to send back data from a table which data is modified inside a PDF form and send it back to an ABAP program for further process.
So far my development goes like this
- I have an ABAP program where I defined an internal table with the data to fill the table in the pdf form.
- I created an Interface that has one Import parameter (other than docparams) defined as the internal table that will have the data passed from this program to the form. this context interface object is bound to the form context and is put into the form layout by dragging and dropping from the data view. so the binding are done correctly.
- In my program I called the Function module that generates the form by using this function
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING i_name = 'my_form_name'
IMPORTING e_function_name = lv_function_name ....
this gives me the name of the function module associated to the form name I am passing by.
- I call the function module gave by the previous call
CALL FUNCTION lv_function_name
EXPORTING /1bcdwb/docparams = docparams
/1bcdwb/itable = itable
IMPORTING
/1bcdwb/formoutput = formoutput
this will raise the pdf file preview where I can modify the data of some fields (not every field, due to key contrainst)
Now I have a problem, because in one hand the forums I read all talks about the Web Service using but to do it, I have to bind each table field to a field in the web service, loosing the bind from the internal table.
does the IMPORTING part in the CALL FUNCTION lv_function_name can have another parameter for the modified data in the form table so in my program i can get this object and continue working with the internal table ??
any suggestion, question, observation or comment is welcome.
in advance, thanks a lot.
EDIT:
Workaround:
download the pdf file into local computer. upload the file into the system and get the data from that pdf to update the data in the internal table... is that possible??
other option: Is there any chance to get the context attribute that represents the table from the interface context to the function module that called this form at the first place?
Edited by: Mauricio Poblete on Mar 23, 2010 10:17 PMthanks everyone who reply this thread,
I tried several solutions: the standar one is to use the TRANSFORMATION method and modify the specifications in the ID object.
but the solution I took to do it was this one.
DATA: lt_file_table TYPE filetable,
lv_rc TYPE i,
lv_filename TYPE string,
lv_filelength TYPE i,
lt_rawtab type STANDARD TABLE of ZSMSC_TAB.
lt_rawtab TYPE TABLE OF char255.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
CHANGING
file_table = lt_file_table
rc = lv_rc
USER_ACTION =
FILE_ENCODING =
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE lt_file_table
INTO lv_filename
INDEX 1.
*lv_filename = p_pdf.
cl_gui_frontend_services=>gui_upload(
EXPORTING
filename = lv_filename
filetype = 'BIN' "Binary
IMPORTING
filelength = lv_filelength
CHANGING
data_tab = lt_rawtab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19 ).
Get FP reference
DATA: lo_fp TYPE REF TO if_fp VALUE IS INITIAL.
lo_fp = cl_fp=>get_reference( ).
For handling exceptions
DATA: lo_fpex TYPE REF TO cx_fp_runtime VALUE IS INITIAL.
TRY.
Create PDF Object using destination 'ADS' (<-- this is how it is
defined in SM59)
DATA: lo_pdfobj TYPE REF TO if_fp_pdf_object VALUE IS INITIAL,
pdf_data TYPE xstring.
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = lv_filelength
FIRST_LINE = 0
LAST_LINE = 0
IMPORTING
buffer = pdf_data
TABLES
binary_tab = lt_rawtab
EXCEPTIONS
FAILED = 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.
lo_pdfobj = lo_fp->create_pdf_object( connection = 'ADS' ).
Set document
lo_pdfobj->set_document(
EXPORTING
pdfdata = pdf_data ).
Tell PDF object to extract data
lo_pdfobj->set_extractdata( ).
Execute the call to ADS
lo_pdfobj->execute( ).
DATA: xml_data TYPE xstring,
lt_xml_data TYPE STANDARD TABLE OF xstring,
t_return TYPE STANDARD TABLE OF bapiret2,
t_per_info TYPE STANDARD TABLE OF smum_xmltb,
lfs_per_info TYPE smum_xmltb,
ls_zcrm_oppt_info TYPE ZCRM_OPPT_INFO,
lt_zcrm_oppt_info type ZCRMT_OPPT_INFO,
tag_open TYPE TDSFFLAG.
APPEND xml_data TO lt_xml_data.
lo_pdfobj->get_data(
IMPORTING
formdata = xml_data ).
CALL FUNCTION 'SMUM_XML_PARSE'
EXPORTING
xml_input = xml_data
TABLES
xml_table = t_per_info
return = t_return.
LOOP AT t_per_info INTO lfs_per_info.
CASE lfs_per_info-cname.
WHEN 'OPPT_ID'.
ls_zcrm_oppt_info-OPPT_ID = lfs_per_info-cvalue.
WHEN 'EXPORT_STAMP'. "this is the last field in the record.
ls_zcrm_oppt_info-EXPORT_STAMP = lfs_per_info-cvalue.
append ls_zcrm_oppt_info to lt_zcrm_oppt_info.
clear ls_zcrm_oppt_info.
tag_open = ''.
WHEN OTHERS.
ENDCASE.
ENDLOOP.
itable = lt_zcrm_oppt_info.
hope i solve another question. -
How to read Production Order Long Text data in ABAP program
Hi friends,
I have the issue in reading the ' Long Text ' tab view data of production order
in CO03 transaction.Please can some body help me out to get this in ABAP program.
Regards,
Rajesh Akarteok goto the long text, double click it, or use the small pencil, so that you proceed to the text editor.
Once you are there, use the menu: goto->head
a small popup will come up, stating the information you need.
what you need is OBJECT, ID, Language and NAME.
with those information you can feed the FM READ_TEXT.
and woooohooo there you go -
Print the result of an ABAP Program (in an infoset) in a ABAP List viewer.
Hi ,
Here is my question :
I have created an user group in SQ03
I have created an infoset in SQ02 and a query in SQ01.
In my infoset I have a piece of program which looks like that :
SELECT EVVERTRAG EVBSTATUS EVANLAGE EVVKONTO EV~EINZDAT
EVAUSZDAT EVCOKEY ETABRDATS ETABRVORG ETSPARTE ETTRIGSTAT
ETABLEINH EUIINSTLNINT_UI EUITRANS~EXT_UI
INTO (T_OFB-CONTRAT,T_OFB-STATUT_TRAIT,T_OFB-INSTAL,T_OFB-CMPTE_CONTRAT,
T_OFB-DATE_IN,T_OFB-DATE_OUT,T_OFB-GSR, T_OFB-DATE_CALCUL
,T_OFB-OPE_CALCUL,T_OFB-SECTEUR,T_OFB-STATUT_ORDRE,T_OFB-UNITE,
T_OFB-CLE_PDL,T_OFB-DES_PDL )
FROM ( ever as ev inner join etrg as et
ON evanlage = etanlage )
inner join euiinstln
ON euiinstlnanlage = evanlage
inner join euitrans
ON euitransint_ui = euiinstlnint_ui
WHERE ET~TRIGSTAT = '2'
ORDER BY EV~ANLAGE.
This program works fine, but when I create my query, I can just see the result in abap list.
When I choose "abap list viewer" or "Excel format", the result is more like :
" select * from all tables "
Is there a way to show the result in the viewer ?
I added a "WRITE :/ <column1>, <column2>, but the result is the same.
I also wonder if we can do a "group by " in ABAP.
And do you know how to make a condition " where my_date < today -19 days" ?
Thank you in advance for your answers.
I've been around the others posts and you did such a great job.
Laurent.hi Chintai,
in bw side, you create a abap program to trigger an event in r/3,
and include this abap program in your process chain, the abap program like
CALL FUNCTION 'BP_EVENT_RAISE'
EXPORTING
eventid = 'ZRUNJOB_DEL'
and in r/3 schedule the program to delete previous data with 'after event',
the event name is same as raise by bw process chain, in this sample ZRUNJOB_DEL.
hope this helps. -
Hello ABAP Programmers,
I am new to ABAP. I am learning ABAP Programming. I have the SAP PDF file of the ABAP Programming but it is of version April 2001.
Is any body have latest version of the same.
Please provide me some link of the PDFs.
Thanks in Advance,
Prashantgo through the links
Start with this.Refer this
http://www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_DATADICTIONARY_FAQ.html
http://www.****************/InterviewQ/interviewQ.htm
http://help.sap.com/saphelp_46c/helpdata/en/35/2cd77bd7705394e10000009b387c12/frameset.htm
Reports
http://www.sapgenie.com/abap/reports.htm
http://www.allsaplinks.com/material.html
http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
http://www.sapfans.com/forums/viewtopic.php?t=58286
http://www.sapfans.com/forums/viewtopic.php?t=76490
http://www.sapfans.com/forums/viewtopic.php?t=20591
http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
ALE/ IDOC
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
Check these step-by-step links
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
for Smartforms material
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
SAPScripts
http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
SAP SCRIPT FIELDS
http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
scripts easy material
http://www.allsaplinks.com/sap_script_made_easy.html
Debugging Document.
http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm
http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
BAPI
http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sapgenie.com/abap/bapi/example.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
List of all BAPIs
http://www.planetsap.com/LIST_ALL_BAPIs.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sappoint.com/abap/bapiprg.pdf
http://www.sappoint.com/abap/bapiactx.pdf
http://www.sappoint.com/abap/bapilst.pdf
http://www.sappoint.com/abap/bapiexer.pdf
http://service.sap.com/ale
http://service.sap.com/bapi
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
Simple ALV report
http://www.sapgenie.com/abap/controls/alvgrid.htm
http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox
ALV
1. Please give me general info on ALV.
http://www.sapfans.com/forums/viewtopic.php?t=58286
http://www.sapfans.com/forums/viewtopic.php?t=76490
http://www.sapfans.com/forums/viewtopic.php?t=20591
http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
2. How do I program double click in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=11601
http://www.sapfans.com/forums/viewtopic.php?t=23010
3. How do I add subtotals (I have problem to add them)...
http://www.sapfans.com/forums/viewtopic.php?t=20386
http://www.sapfans.com/forums/viewtopic.php?t=85191
http://www.sapfans.com/forums/viewtopic.php?t=88401
http://www.sapfans.com/forums/viewtopic.php?t=17335
4. How to add list heading like top-of-page in ABAP lists?
http://www.sapfans.com/forums/viewtopic.php?t=58775
http://www.sapfans.com/forums/viewtopic.php?t=60550
http://www.sapfans.com/forums/viewtopic.php?t=16629
5. How to print page number / total number of pages X/XX in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)
6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.
http://www.sapfans.com/forums/viewtopic.php?t=64320
http://www.sapfans.com/forums/viewtopic.php?t=44477
7. How can I set the cell color in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=52107
8. How do I print a logo/graphics in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=81149
http://www.sapfans.com/forums/viewtopic.php?t=35498
http://www.sapfans.com/forums/viewtopic.php?t=5013
9. How do I create and use input-enabled fields in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=84933
http://www.sapfans.com/forums/viewtopic.php?t=69878
10. How can I use ALV for reports that are going to be run in background?
http://www.sapfans.com/forums/viewtopic.php?t=83243
http://www.sapfans.com/forums/viewtopic.php?t=19224
11. How can I display an icon in ALV? (Common requirement is traffic light icon).
http://www.sapfans.com/forums/viewtopic.php?t=79424
http://www.sapfans.com/forums/viewtopic.php?t=24512
12. How can I display a checkbox in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=88376
http://www.sapfans.com/forums/viewtopic.php?t=40968
http://www.sapfans.com/forums/viewtopic.php?t=6919
Go thru these programs they may help u to try on some hands on
ALV Demo program
BCALV_DEMO_HTML
BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode
BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode
BCALV_GRID_DEMO Simple ALV Control Call Demo Program
BCALV_TREE_DEMO Demo for ALV tree control
BCALV_TREE_SIMPLE_DEMO
BC_ALV_DEMO_HTML_D0100
Remote Function Call:
RFC is an SAP interface protocol. Based on CPI-C, it considerably simplifies the programming of communication processes between systems.
RFCs enable you to call and execute predefined functions in a remote system - or even in the same system.
RFCs manage the communication process, parameter transfer and error handling.
http://help.sap.com/saphelp_47x200/helpdata/en/22/042860488911d189490000e829fbbd/frameset.htm.
ALE/ IDOC
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
Refer this
http://www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_DATADICTIONARY_FAQ.html
http://www.****************/InterviewQ/interviewQ.htm
http://help.sap.com/saphelp_46c/helpdata/en/35/2cd77bd7705394e10000009b387c12/frameset.htm
http://www.techinterviews.com/?p=198
http://www.techinterviews.com/?p=326
http://www.sap-img.com/abap/answers-to-some-abap-interview-questions.htm
http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
http://www.geekinterview.com/Interview-Questions/SAP-R-3/ABAP
http://sap.ittoolbox.com/documents/popular-q-and-a/abap-sample-interview-questions-3240
http://www.sap-img.com/abap/abap-interview-question.htm
http://www.allinterview.com/Interview-Questions/ABAP.html
new to abap
New to ABAP
New to ABAP
new to ABAP
Reward points.. -
How to select data from Maintance View in Program
Dear All ,
How to select data from Maintance View V_T052 in abap Program.
Regards,
ArchanaTABLES: t179, t179t.
DATA: v_t179_int TYPE TABLE OF v_t179.
SELECT * FROM t179
JOIN t179t ON
t179prodh = t179tprodh
INTO CORRESPONDING FIELDS OF TABLE v_t179_int.
Reward points... -
Updating liveCache Data using Function Module or ABAP program.
Is it possible to update APO Live Cache using Function Module or ABAP Program.
Will the aggregation/disaggreagation remain the same if data is modified using Function Module or ABAP Program.
Regards,
Vikasello Vikas,
-> Please click at
http://help.sap.com/saphelp_nw04/helpdata/en/f2/0271f49770f0498d32844fc0283645/frameset.htm
& read about 'SAP liveCache'.
As you know objects stored in liveCache in the class containers can be accessed
and manipulated only via LCA routines which are methods of LCA objects.
The registration of the LCA routines is done automatically when
the liveCache is started by the LC10, check the lcinit.log file.
The shared procedures in the LiveCache are written in C++ and shipped
to the customers as binary shared libraries(LCA-Routines) < LCA build >
together with the LiveCache. The original C++ source code of the
libraries is not generally available to the customers.
The LCA routines could be called via "/SAPAPO/OM*" ABAP functions.
-> For SAP liveCache documentation in English:
http://help.sap.com/saphelp_nw04/helpdata/en/f2/0271f49770f0498d32844fc0283645/frameset.htm
< -> Database Administration in CCMS: SAP liveCache -> liveCache Assistant ->
liveCache: Monitoring -> Problem Analysis-> DB Procedures >
In transaction LC10 for the LCA connection choose liveCache:Monitoring
then go to Problem Analysis -> DB Procedures=>
The system displays an overview of all database procedures loaded into
liveCache, their input and output parameters, and other details.
-> Tr. /n/SAPAPO/OM16 ( in further releases /n/sapapo/om19 ) is provided by
SAP to get information about data stored in the LiveCache. If you would
like to get your own views, you should write a special report in ABAP using
"/SAPAPO/OM"-development class functionality.
-> There are standard function modules in ABAP available to extract/change data from/in liveCache.
-> In addition to the given information => find more information at:
SCM 4.0 -> http://help.sap.com/saphelp_scm40/helpdata/en/12/3dfd81126e1c448c870f335f11d016/frameset.htm
SCM 4.1 ->
http://help.sap.com/saphelp_scm41/helpdata/en/12/3dfd81126e1c448c870f335f11d016/frameset.htm
SCM 5.0 ->
http://help.sap.com/saphelp_scm50/helpdata/en/12/3dfd81126e1c448c870f335f11d016/frameset.htm
You can go to the Advanced Planner and Optimizer documentation from the above links < Supply Network Planning Run -> Aggregated Planning -> SNP Disaggregation Or SNP aggregation . >.
If you still have open questions on the posted topic =>
Could you please give more information on your application scenario.
Thank you and best regards, Natalia Khlopina -
How to exchange data between wda program and abap program?
Dear guru,
the situation is:
we have a abap program , which uses
CALL FUNCTION 'WDY_EXECUTE_IN_PLACE'
EXPORTING
PROTOCOL =
INTERNALMODE = 'X'
SMARTCLIENT =
application = 'YHREFM_WD_APPROVE2'
CONTAINER_NAME =
PARAMETERS = lt_parameters
SUPPRESS_OUTPUT =
IMPORTING
OUT_URL =
CHANGING
VIEWER =
EXCEPTIONS
invalid_application = 1
browser_not_started = 2
action_cancelled = 3
OTHERS = 4
to call a wda application inside sapgui, and we want to get data return by the wda application in the program.
we tried to use EXPORT/IMPORT TO/FROM MEMORY, but failed.
could you please tell me how to do that?
br
zjFor integration between SAPGUI and WDA, the only supported solution is to have two iViews within the same portal page. As mentioned in the linked thread, this function module is not released for customer usage. You could setup a parameter transaction around WDYID and launch the WDA application from a SAPGUI transaction.
For communicaiton of data, I wouldn't suggest anything that relies on memory communication. In a multiple application server envinroment, there is no way to know if the two sessions will be on the same application server due to load balancing. Therefore you should fall back to communications at the database level. Write data into a temporary database table. Consider using Server Cookies. -
How can i print data in smartforms from ABAP program.
Dear gurus:
in my abap program i process require data, and saved in a internal table.
how can l print the data in smartforms.?
who can give me a code sample is better:)
reward all helpful advise.Try this....
1) Tcode --> SmartForms
2) Form name --> Z_SF_TEST Create
3) Under Global settings
a) Form Interface
Table Tab
ITAB LIKE EKPO
b) GLOBAL Definitions
WA_NETPR LIKE EKPO-NETPR
In smart forms if we want to display quantity and currency fields. We can't directly display currency field and quantity fields
For that we have to create an extra variable in global definitions
Ex: netpr FIELD of EKPO
CREATE program lines and specify WA_NETWR = itab-netpr.
4) RT CLick on main Window
CREATE --> TABLE
Click Table painter
DEFAULT %LTYPE will be Created
a) If you want more like Header footer etc add by rt click on %LTYPE1
Table (Tab)
%LTYPE Radio(SELECT) 5 CM 5 CM 6 CM
CLICK on DATA (Tab)
INTERNAL TABLE ITAB LIKE ITAB
5)RT click on table control and create --> program lines
General attribute (Tab)
INPUT PARAMETER OUTPUT PARAMETER
itab WA_NETPR
Code Area
WA_NETWR = ITAB-NETPR.
6) RT CLcick on table ctl and create 3 text to display the fields
a) % text1 +button(insert field)
FIELD name &itab-ebeln&
Output options (tab)
Check New line LINETYPE %Ltype1
check new cell
b) % text2
& itab-ebelp&
output options
check new cell
c) % text2
& wa_netpr&
output options
check new cell
<b>Report ac
Tables ekpo.
Data: itab1 like ekpo occurs 0 with header line.
select * into table itab1 from ekpo.
Call function module --> smart form function module and pass your internal table</b>
Regards,
SaiRam -
How to extract data from BPC InfoCube via ABAP program?
Hi experts!!
I tried to extract data from a BPC InfoCube via ABAP program, but I did'n have succeed.
I used the function 'RSDRI_INFOPROV_READ' to extract data from standard InfoCubes such as '0COPC_C07' and it run OK! However, when I change the InfoCube name to '/CPMB/WAIX8NE' (BPC InfoCube), everything goes wrong...
Is there any difference between extracting data from BPC and standard InfoCubes?
Thank you all!Moderator message - Welcome to SCN.
But please do not cross and duplicate post.
Thread locked.
Rob -
Error while calling ABAP program from Data Services
Hi All,
We have a ABAP program which accepts two parameters 1] a date 2] a string of comma separated ARTICLE numbers .
We have used a ABAB transform in ABAP dataflow which refers this ABAP program.
If I pass a string of 6 articles as second parameter the job executes successfully
But if i pass 9 articles as follows
$GV_ITEM_VALUES='3564785,1234789,1234509,1987654,1234567,2345678,3456789,4567890,5456759';
i get the following error
ABAP program syntax error: <Literals that take up more than one line are not permitted>.
The error occurs immediately after ABAP dataflow starts, ie even before the ABAP job gets submitted to ECC
I am using BODS 4.2 . The datatype of $GV_ITEM_VALUES is varchar(1000).
The ABAP program that gets generated by the DS job has the following datatype for this parameter
PARAMETER $PARAM2(1000) TYPE C
Is there a different way to pass string characters to ABAP transform in data services?
I have attached the screen shot of trace log and error
Regards,
SharayuHi Sharayu,
The error your getting is because the literals exceeds more than 72 characters.
It seems that the length of the string is exceeding more than 72 character.
Can you check the following in ECC GUI
Go to Transaction SE38=>Utilities=>Settings=>ABAP Editor=>Editor=> Downwards -Comp.Line Length(72).
The checkbox which defines length 72 must be clicked so the error is coming. Can you uncheck the checkbox and then try passing the parameter $GV_ITEM_VALUES using the BODS job
Regards
Arun Sasi
Maybe you are looking for
-
Download file by a link.
I have an image (download) in a jspx page, on which user could right click and be able to save the file. But when I right click on the image and say save as, i am unble to save the file, but able to save the jspx page itself. How can it be resolved?
-
Error installing Essbase in Linux machine
Hi, I am getting the following error while installing Essbase in Linux server. WARNING: error intantiating 'oracle.core.ojdl.logging.LoggingConfiguration' referenced by java.util.logging.config.class, class not found java.lang.ClassNotFoundException:
-
Non-Printing Elements in Acrobat
Not sure if I should post this here or in a general Adobe forum, so I apologize if this is off-topic. I have a page in a multi-page PDF that is a printable form. On this form I've added two navigation "buttons" (boxes created in InDesign) at the bott
-
MEPO1319-IDNLF - Lief.Artikel as default in the I/O field
Hi community, I have a strange problem in the dynpro 1319 of program SAPLMEGUI (Transaction SE51). The system has the default setting "Lief.Art" in the I/O field (in our Q-System the field is filled with ___________________________________.) witch ca
-
Greetings Gurus. I have a problem with a ratio, this load in BW, but when reporting it in the BEX Analyzer, this is well-off, for example in the cube I have 83.7, in BEX gives 84, this ratio this associate to a unit of measurement, if somebody can h