cancel
Showing results for 
Search instead for 
Did you mean: 

Using BDC in Webdynpro ABAP

Former Member
0 Kudos

Hai All,

I am currently working on HR req.

I hav to upload my data form my webdynpro screen to Infotype 267.

Can I use BDC recording and program to upload it to the infotype???

Please give ur suggestions....

Thanks in advance.

Nalla.B

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nalla,

This is possible by creating FM for your bdc recordings.

Cehck this...

Cheers,

Kris.

Answers (1)

Answers (1)

Former Member
0 Kudos

Nalla ,

You can use standard FM to upload data to infotype . get the attributes from webdynpro applicattion . pass it to the below FM in a action tigger .

CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty         = '0267'   " pass infotype 
          subtype       = p_record-subty
          objectid      = P_record-objps
          number        = p_record-pernr     "employeenumber
          validityend   = validityend
          validitybegin = validitybegin
          record        = p_record
          recordnumber  = p_record-SEQNR
          operation     = INS "insert 
          nocommit      = nocommit
          dialog_mode   = '0'
        IMPORTING
          return        = return_struct
          key           = personaldatakey
        EXCEPTIONS
          OTHERS        = 0.

regards

chinnaiya

Edited by: chinnaiya pandiyan on May 24, 2011 4:42 PM

Former Member
0 Kudos

Hai Chinnaiya,

Am new to WDY can u pls expalin me how to pass the value from WDy screen to Fm using that action trigger???

I hav to pass some 3 parameters to infotype 267.

Do i Hav to declare these parameters as global attributes???

Please explain to me.

Thanks in advance.

Nalla.B

former_member199125
Active Contributor
0 Kudos

hi nalla,

take this as my suggestion:

in your view, create update button, in that update action update your infotype using above function module.

and about function module paramets.. pass that field attributes to parameters.

if you want to pass multiple records....

get data all the data into one node...

then loop the node and follow the same above method.

Regards

Srinivas

Former Member
0 Kudos

Hai Srinivas,

Thanks 4 ur response.

I want to use three parameters

1)Pernr (emp no)

2) TotalAmount (Variable used as global attribute)

3) Date (Requisition date : sy-datum)

Can u please explain me in coding hw can I pass these parameter in side that FM using that looping.

I have created these as individual context attributes not inside a single node.

Pls give some suggestions.

Thanks in advance,

Nalla.B