Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Need help on BDC Table controle for Transaction MEQ1

Former Member
0 Kudos

Hi Experts,

i want upload the data for Transaction MEQ1 .we are using  Call Transaction Method.

we need to  handle Screen Resolution as well as Table controle for the transaction.

Can anyone help how to maintian the logic for Table controle.

Raghu

1 REPLY 1

Former Member
0 Kudos

Hi

Check with FM "QUOTEN_WRITE_DOCUMENT" instated of  BDC .

Pass OBJECTID = "Material Number Leading with Zero's + Plant"

OR Check below Sample code

DATA : S_XEQUKC  TYPE STANDARD TABLE OF UEQUKC WITH HEADER LINE INITIAL SIZE 0 ,

           WA_XEQUKC TYPE UEQUKC ,

           S_YEQUKC TYPE STANDARD TABLE OF  UEQUKC WITH HEADER LINE INITIAL SIZE 0,

          WA_YEQUKC TYPE UEQUKC,

          S_XEQUP TYPE STANDARD TABLE OF UEQUP WITH HEADER LINE INITIAL SIZE 0,

          WA_XEQUP TYPE UEQUP ,

          S_YEQUP TYPE STANDARD TABLE OF UEQUP WITH HEADER LINE INITIAL SIZE 0,

          WA_YEQUP TYPE UEQUP .

WA_XEQUKC-MATNR =   "

WA_XEQUKC-WERKS =   "

WA_XEQUKC-BDATU =   "

WA_XEQUKC-VDATU =   "

WA_XEQUKC-QUNUM =   "

WA_XEQUKC-ERDAT =   "

WA_XEQUKC-ERNAM =   "

WA_XEQUKC-SCMNG =   "

WA_XEQUKC-KZ = 'I'.

APPEND WA_XEQUKC TO S_XEQUKC .

CLEAR  WA_XEQUKC .

CALL FUNCTION 'QUOTEN_WRITE_DOCUMENT' IN UPDATE TASK

  EXPORTING

    OBJECTID                         =  " Material number Leading with Zero + Plant "

    TCODE                              =                         " MEQ1"

    UTIME                               =  " SY-UZEIT

    UDATE                              =  " SY-DATUM

    USERNAME                      =  "SY-UNAME

*   PLANNED_CHANGE_NUMBER         = ' '

   OBJECT_CHANGE_INDICATOR          = 'U'

*   PLANNED_OR_REAL_CHANGES      = ' '

*   NO_CHANGE_POINTERS                 = ' '

   UPD_EQUKC                                    = 'U'

*   UPD_EQUP                                     = ' '

  TABLES

    XEQUKC                         = S_XEQUKC

    YEQUKC                        = S_YEQUKC

    XEQUP                           = S_XEQUP

    YEQUP                          = S_YEQUP

          .

Regard's

Smruti