about BDC

ABAP, Java, BSP, etc.

about BDC

Postby Ruben4330 » Wed Feb 16, 2005 2:02 pm

Hi all,
I am new to SAP.Just wanted to know while writing a BDC using session method I am using a "Z"Transaction(which has a screen with 4-fields from KNA1 and a SAve button).Now when I try to Upload a file with values for these fields,the screen behaviour is so clumsy that I should go back and forth to get these values on to the file(Sequential that updates the data base)Suppose say if I have 3-records in the file(external file)then I should navigate the screen for 3! times.

Please help me.

Thanks in advance.
Shark.
Ruben4330
.
.
 
Posts: 1
Joined: Wed Feb 16, 2005 2:02 pm

Postby Eleanor356 » Wed Feb 16, 2005 5:03 pm

Hi Shark,

I have 3-records in the file(external file)then I should navigate the screen for 3! times.


yes !

1) record your bi with BI-recorder SHDB
2) integrate that result to your prg.

e.g.

Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
  1. read dataset file into record.
  2. if sy-subrc <> 0. exit. endif.
  3. *D505
  4. perform bdc_dynpro      using 'SAPMF02D' '0505'.
  5. perform bdc_field       using 'BDC_OKCODE' '/00'.
  6. perform bdc_field       using 'RF02D-KUNNR' record-KUNNR_001.
  7. perform bdc_field       using 'RF02D-BUKRS' record-BUKRS_002.
  8. *D520
  9. perform bdc_dynpro      using 'SAPMF02D' '0520'.
  10. perform bdc_field       using 'KNA1-LOEVM' record-LOEVM_003.
  11. perform bdc_field       using 'BDC_OKCODE' '=UPDA'.
  12. perform bdc_transaction using 'FD06'.
GeSHi ©


regards Andreas
Eleanor356
....
....
 
Posts: 558
Joined: Thu Aug 14, 2003 7:42 am


Return to Development Related

Who is online

Users browsing this forum: No registered users and 6 guests