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: 

problem in BDC

Former Member
0 Kudos

I got one requirement i.e BDC on SWWL.

requirement process:

1.  Selection Screen  (input):

 

Employee / Manage ID ____________________

Date : _______________________

History_Item : ____________________

  2    Execute the FM           SAP_WAPI_CREATE_WORKLIST

   Pass manager id to the USER field and execute will retrieve corresponding record.

3.  Collect these record and pass these record to the table SWWWIHEAD And

4. Fetch data record as which text id is Approve Trip of

5. Collect these record into itab .

  1. Build a BDC SWWL  screen and pass these itab record to corresponding screen of SWWL.

Problem :

I should pass Workid and default Creation time., But when i doing BDC it showing all default in selection option.

please give me some suggession to BDC or any other way is ther to do it

11 REPLIES 11

nishantbansal91
Active Contributor
0 Kudos

Dear P.Bhagaban,

It means that only default value if you want to give you own value give the value and system is taking value instead of default value.


Thanks

Nishant

shadab_maldar
Active Participant
0 Kudos

Hi Bhagban,

This is because the parameter ID is SET for some values, clear the parameter ID's before you call BDC.

Regards,

Shadab.

0 Kudos

Hi Shadab,

Thank's for your reply. but i didn't find out any parameter id except

"workid".

my requirement :

When i call these trasaction using bdc these default value comes in picture, But client want except "Creation Time", "Number of Workitem", "Maximum number hits" these filelds all field should be blank. I tried find out parameter id there is no parameter ID following input.

0 Kudos

Dear Bhagaban,

Instead of using BDC - try the below logic it can solve your problem.

DATA: gt_seltab   TYPE TABLE OF rsparams.

DATA: gs_seltab  TYPE rsparams.


gs_seltab-selname = 'IT_ID-LOW'.  "ID you selection screen filed name - Note: Always upper case

gs_seltab-low     =  ' '.   "Pass Value if any

gs_seltab-sign    = 'I'.

gs_seltab-option  = 'EQ'.

APPEND gs_seltab TO gt_seltab.

CLEAR: gs_seltab.

*** Continue populating all your selection screen variables same as stated above. Once all the selection screen variables are populated

*** Below syntax will hide the selection screen dialog

SUBMIT RSWWWIDE WITH SELECTION-TABLE gt_seltab

   EXPORTING LIST TO MEMORY

   AND RETURN.



****Note if you want to see what values are passed to selection screen use below syntax.

SUBMIT RSWWWIDE WITH SELECTION-TABLE gt_seltab VIA SELECTION-SCREEN

   EXPORTING LIST TO MEMORY

   AND RETURN.


Regards,

SaiRam

0 Kudos

Hi,

If you want those fields blank, just pass blank ' ' to the value passing logic in you BDC for those particular fields.

Regards-

MT

nishantbansal91
Active Contributor
0 Kudos

P. Bhagaban wrote:

I got one requirement i.e BDC on SWWL.

requirement process:

1.  Selection Screen  (input):

Employee / Manage ID ____________________

Date : _______________________

History_Item : ____________________

  2    Execute the FM           SAP_WAPI_CREATE_WORKLIST

   Pass manager id to the USER field and execute will retrieve corresponding record.

3.  Collect these record and pass these record to the table SWWWIHEAD And

4. Fetch data record as which text id is Approve Trip of

5. Collect these record into itab .

  1. Build a BDC SWWL  screen and pass these itab record to corresponding screen of SWWL.

Problem :

I should pass Workid and default Creation time., But when i doing BDC it showing all default in selection option.

please give me some suggession to BDC or any other way is ther to do it

Hi,

Do one thing while recording pass these value as blank, system automatically override the default value..

Data lv_string type string

  " pass the default value


Perform BDCfield 'workitem' lv_string.

0 Kudos

Hi,

i tried but same issues are arise. it will take default value.

0 Kudos

Hi Bhagaban,

Yes the values can be overwritten in BDC, can you please paste your snippet here.

Regards,

Shadab.

0 Kudos

Hi,

can you please share your BDC code.


Thanks

Nishant

former_member183134
Participant
0 Kudos

Hi Bhagaban,

While Creating/Recording BDC just make the screen fields (creation date , creation time ) blank (delete/remove the values), so that in your BDC code these screen fields will be captured with blank values then you can overwrite by passing your own value in the BDC code.

Thanks,

Anand

Former Member
0 Kudos

thanks,

finally i sucessess without using BDC . There was a function module

SWW_WI_DELETE which will delete work id.