Skip to Content
0
Sep 30, 2020 at 12:06 PM

Google Map

177 Views

How to Integrate google map on Smartform?
I have placed Geo code on smartform, tell me how to get google map on smartform.
here i add my smartform code..

*DATA: LV_SLNO TYPE i VALUE IS INITIAL.

*GV_VBELN = INVOICE_NO.
*BREAK-POINT.
SELECT INV_NO MATNR SGTXT SDATE ITEM_QTY QUAN NAME1 RECEIVED_QTY
REMARK
FROM ZINV_SCAN_ITEM INTO CORRESPONDING FIELDS OF TABLE IT_ITEM WHERE
inv_no = invoice_no.


CLEAR WA_FINAL.
LOOP AT IT_ITEM INTO WA_ITEM.

WA_FINAL-INV_NO = WA_ITEM-INV_NO.
WA_FINAL-MATNR = WA_ITEM-MATNR.
WA_FINAL-SGTXT = WA_ITEM-SGTXT.
WA_FINAL-SDATE = WA_ITEM-SDATE.
WA_FINAL-ITEM_QTY = WA_ITEM-ITEM_QTY.
WA_FINAL-QUAN = WA_ITEM-QUAN.
*WA_FINAL-TZONE = WA_ITEM-TZONE.
WA_FINAL-NAME1 = WA_ITEM-NAME1.
WA_FINAL-RECEIVED_QTY = WA_ITEM-RECEIVED_QTY.
WA_FINAL-REMARK = WA_ITEM-REMARK.

SELECT SINGLE MOBILE_NO TRUCK_NO TZONE LATITUDE LONGITUDE IMEI
FROM ZINV_TRACK_SCAN INTO ( WA_FINAL-MOBILE_NO, WA_FINAL-TRUCK_NO,
WA_FINAL-TZONE,
WA_FINAL-LATITUDE, WA_FINAL-LONGITUDE, WA_FINAL-IMEI )
WHERE ZINV_TRACK_SCAN~INV_NO = WA_ITEM-INV_NO .

SELECT SINGLE KUNAG FROM VBRK INTO WA_FINAL-KUNAG WHERE VBRK~VBELN =
WA_ITEM-INV_NO.

SELECT SINGLE WKREG VKGRP VKBUR
FROM VBRP INTO ( WA_FINAL-WKREG, WA_FINAL-VKGRP, WA_FINAL-VKBUR )
WHERE VBRP~VBELN = WA_ITEM-INV_NO.

SELECT SINGLE BEZEI FROM T005U INTO WA_FINAL-BEZEI WHERE T005U~BLAND =
WA_FINAL-WKREG AND LAND1 = 'IN'.

SELECT SINGLE BEZEI FROM TVKBT INTO WA_FINAL-BEZEI1 WHERE TVKBT~VKBUR =
WA_FINAL-VKBUR.

SELECT SINGLE BEZEI FROM TVGRT INTO WA_FINAL-BEZEI2 WHERE TVGRT~VKGRP =
WA_FINAL-VKGRP.

APPEND WA_FINAL TO IT_FINAL.

ENDLOOP.

Thanks in Advance..