Skip to Content
0
Former Member
Jul 31, 2007 at 11:44 AM

regarding smartforms

14 Views

Hi Experts,

i am passing two tables(itab like vbak , ptab like vbap) and fetching kunnr vbeln bstdk erdat from vbak and werks from vbap in smart form.

NOW in abap editor my coding is

TABLES : VBAK , VBAP.

DATA : BEGIN OF ITAB OCCURS 0,

VBELN LIKE VBAK-VBELN,

KUNNR LIKE VBAK-KUNNR,

BSTDK LIKE VBAK-BSTDK,

ERDAT LIKE VBAK-ERDAT,

WERKS LIKE VBAP-WERKS,

END OF ITAB.

DATA PTAB LIKE ITAB OCCURS 0 WITH HEADER LINE.

DATA H_DATE LIKE SY-DATUM.

PARAMETER : KUNNR LIKE VBAK-KUNNR OBLIGATORY .

SELECT-OPTIONS BSTDK FOR VBAK-BSTDK.

SELECT AKUNNR AVBELN ABSTDK AERDAT BWERKS FROM VBAK AS A INNER JOIN VBAP AS B ON ( AVBELN = B~VBELN )

INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE KUNNR = KUNNR AND BSTDK IN BSTDK.

CALL FUNCTION '/1BCDWB/SF00000100'

EXPORTING

H_DATE = H_DATE

TABLES

ITAB = ITAB

PTAB = PTAB.

INITIALIZATION.

H_DATE = SY-DATUM.

and i am getting SHORT DUMP error.

Kindly give the solution fot this.

thanks