2015 Sep 28 10:47 AM
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 .
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
2015 Sep 28 10:56 AM
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
2015 Sep 28 11:53 AM
Hi Bhagban,
This is because the parameter ID is SET for some values, clear the parameter ID's before you call BDC.
Regards,
Shadab.
2015 Sep 29 3:25 AM
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.
2015 Sep 29 4:10 AM
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
2015 Sep 29 3:12 PM
Hi,
If you want those fields blank, just pass blank ' ' to the value passing logic in you BDC for those particular fields.
Regards-
MT
2015 Sep 29 3:50 AM
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 .
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.
2015 Sep 29 4:00 AM
Hi,
i tried but same issues are arise. it will take default value.
2015 Sep 29 7:14 AM
Hi Bhagaban,
Yes the values can be overwritten in BDC, can you please paste your snippet here.
Regards,
Shadab.
2015 Sep 29 7:14 AM
2015 Sep 29 11:29 AM
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
2015 Sep 30 6:52 AM
thanks,
finally i sucessess without using BDC . There was a function module
SWW_WI_DELETE which will delete work id.