Syntax For Update Statement In Sap Abap Programming TrainingSAP Explore - Blogs. This report will take delivery document number and delivery date from user and fetches details from delivery table and fetchescorresponding sales order details and billing details and displays sales order details with ALV list. Report sales_order_report .*"Table declarations............................... TABLES: likp. " SD Document: Delivery Header Data*"Selection Screen Elements........................... SELECT- OPTIONS: s_deldoc FOR likp- vbeln, " Deliverys_dldate FOR likp- lfdat. Delivery Date*"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -** Type declaration of the structure to hold specified delivery header data **"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- *TYPES : BEGIN OF type_s_likp,vbeln TYPE likp- vbeln, " Deliverylfdat TYPE likp- lfdat, " Delivery Datekunnr TYPE likp- kunnr, " Ship- to party. END OF type_s_likp.*"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- ** Type declaration of the structure to hold specified delivery item data **"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- *TYPES : BEGIN OF type_s_lips,vbeln TYPE lips- vbeln, " Deliveryposnr TYPE lips- posnr, " Delivery Itemvgbel TYPE lips- vgbel, " Document number of the reference documentvgpos TYPE lips- vgpos, " Item number of the reference itemlfimg TYPE lips- lfimg, " Actual quantity delivered (insales units)vrkme TYPE lips- vrkme, " Sales unit. END OF type_s_lips.*"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -** Type declaration of the structure to hold specified data in Customer Master **"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- *TYPES : BEGIN OF type_s_kna. ![]() No we cannot create trigger on select statement, we can create trigger only on insert / update / delete. Also check Syntax for trigger. Create or replace trigger. ![]() TYPE kna. 1- kunnr, " Customer Number 1name. TYPE kna. 1- name. ![]() Now SAP already has this web service Wizard (in ECC6.0 / 5.0) that could upload WSDL / XSD files to create ABAP structures, generate related simple transformation.
Name 1. END OF type_s_kna. Type declarations.....................................*"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -** Type declaration of the structure to hold specified sales document header data **"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -*TYPES : BEGIN OF type_s_vbak,vbeln TYPE vbak- vbeln, " Sales Documenterdat TYPE vbak- erdat, " Date on Which Record Was Createdaufnr TYPE vbak- aufnr, " Order Number. END OF type_s_vbak.*"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -** Type declaration of the structure to hold specified sales document item data **"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- *TYPES : BEGIN OF type_s_vbap,vbeln TYPE vbak- vbeln, " Sales Documentposnr TYPE vbap- posnr, " Sales Document Itemmatnr TYPE vbap- matnr, " Material Numberarktx TYPE vbap- arktx, " Short text for sales orderitemkwmeng TYPE vbap- kwmeng, " Cumulative Order Quantity in sales Unitsvrkme TYPE vbap- vrkme, " Sales unit. END OF type_s_vbap.*"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -** Type declaration of the structure to hold specified billing item data **"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -*TYPES : BEGIN OF type_s_vbrp,vbeln TYPE vbrp- vbeln, " Billing Documentposnr TYPE vbrp- posnr, " Billing itemvgbel TYPE vbrp- vgbel, " Document number of the reference documentvgpos TYPE vbrp- vgpos, " Item number of the reference itemfklmg TYPE vbrp- fklmg, " Billing quantity in stockkeeping unitvrkme TYPE vbrp- vrkme, " Sales unit. END OF type_s_vbrp.*"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- ** Type declaration of the structure to hold specified sales socument * * header,sales document item data,delivery item data,billing item data **"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- *TYPES: BEGIN OF type_s_order,vbeln TYPE vbap- vbeln, " Sales Documentposnr TYPE vbap- posnr, " Sales Document Itemerdat TYPE vbak- erdat, " Date on Which Record Was Createdkunnr TYPE likp- kunnr, " Sold- to partyname. TYPE kna. 1- name. Name 1aufnr TYPE vbak- aufnr, " Order Numbermatnr TYPE vbap- matnr, " Material Numberarktx TYPE vbap- arktx, " Short text for sales orderitemkwmeng TYPE vbap- kwmeng, " Cumulative Order Quantity in sales Unitsvrkme TYPE vbap- vrkme, " Sales unitvbeln. TYPE lips- vbeln, " Deliveryposnr. TYPE lips- posnr, " Delivery Itemlfimg TYPE lips- lfimg, " Actual quantity delivered in sales unitsvrkme. TYPE lips- vrkme, " Sales unitvbeln. TYPE vbrp- vbeln, " Billing Documentposnr. TYPE vbrp- posnr, " Billing itemfklmg TYPE vbrp- fklmg, " Billing quantity in stockkeeping unitvrkme. TYPE vbrp- vrkme, " Sales unit. END OF type_s_order.*" Data declarations...................................*"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- ** Work variables **"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- *DATA : w_container TYPE REF TO cl_gui_custom_container," Reference variable for "containerw_grid TYPE REF TO cl_gui_alv_grid. Reference variable for grid*" Field String declarations...............................*"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -** Field string variable to hold sales socument header,sales document ** item data,delivery item data,billing item data,fieldcatalog,layout record **"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - - -- -- -- -- -- -- -- -- -- -*DATA : fs_kna. TYPE type_s_kna. 1, " Holds Customer master recordfs_vbak TYPE type_s_vbak, " Holds sales header recordfs_vbap TYPE type_s_vbap, " Holds sales item recordfs_likp TYPE type_s_likp, " Holds delivery header recordfs_lips TYPE type_s_lips, " Holds delivery item recordfs_vbrp TYPE type_s_vbrp, " Holds billing item recordfs_order TYPE type_s_order, " Holds sales order recordfs_cat TYPE lvc_s_fcat, " Holds fieldcatalog recordfs_lay TYPE lvc_s_layo. Holds layout record*" Internal Table declarations..............................**"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- *** Internal Table to hold hold sales socument header,sales document ** item data,delivery item data,billing item data,fieldcatalog,layout records ***"- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- *DATA : t_kna. LIKESTANDARD TABLEOF fs_kna. Internal table to hold customer master recordst_vbak LIKESTANDARD TABLEOF fs_vbak, " Internal table to hold sales header recordst_vbap LIKESTANDARD TABLEOF fs_vbap, " Internal table to hold sales item recordst_likp LIKESTANDARD TABLEOF fs_likp, " Internal table to hold delivery header recordst_lips LIKESTANDARD TABLEOF fs_lips, " Internal table to hold delivery item recordst_vbrp LIKESTANDARD TABLEOF fs_vbrp, " Internal table to hold billing item recordst_order LIKESTANDARD TABLEOF fs_order, " Internal table to hold sales order recordst_cat TYPE lvc_t_fcat.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2017
Categories |