Here I will go through the steps to create a custom Web ADI to download the data from a custom table.
For introduction you can refer below post:
> Create Integrator
XXAK: Test Download ADI
XXAKTESTDWNADI
Check the box for ‘Display in Create Document Page’
Add these three functions
Add these three functions
Code:
BNE_ADI_DEFINE_MAPPING
BNE_CREATE_DOCUMENT
BNE_ADI_CREATE_DOCUMENT
Interface type here would be ‘Table’
To get your custom table here, you need to register it first.
Please follow below link(s)
Apply
Create Content
Content type would be ‘SQL Query’
Query : SELECT order_number
,start_date
,end_date
,business_area
FROM XXAK_WEB_ADI_DOWNLAOD_TBL
Test Query
Apply
Create Uploader – Not Required
Submit
Create Layout
Responsibility: Desktop Integrator
> Define Layout
Select ‘Protect Sheet’, ‘Apply Filters’ and ‘Data Entry Rows’ as required
Create Mapping
Responsibility: Desktop Integrator
> Define Mapping
Mapping for ‘Interface’ and ‘Content’ data
Source Columns are referencing SQL Query (Content)
Target Columns are referencing the table (Interface)
Apply
Completed
Add a form function and add to the specified responsibility menu
Responsibility: Application Developer
> Application > Function
Type: SSWA servlet function
HTML_call : BneApplicationService
Parameter: bne:page=BneCreateDoc&bne:integrator=20003:XXAKTESTDWNADI_XINTG&bne:layout=20003:XXAKTESTDWNADI
select integrator_app_id || ':' || integrator_code integrator
, application_id || ':' || layout_code layouts
from bne_layouts_b
where integrator_code like 'XXAK%'
Before you run the ADI you need to amend some Excel
settings, please follow below link
Select appropriate ‘Viewer’, ‘Layout’, and ’Content’
Done!
Hi ,
ReplyDeleteThank you !
It is very helpful.
Can you tell me how to do for download and upload in single
ADI Sheet.
Ex... If I want to update email address of employees I need to see the existing email address and I have to correct the email address. In this case I am able to download the data but while uploading It is showing as processed but it is not processing.
Can you suggest me.
Hi Anandbabu,
ReplyDeletePlease check this article
http://abhayappssolution.blogspot.co.uk/2015/09/custom-web-adi-downloadupload.html
Hi,
ReplyDeleteThank you very much for this simple article.
Hope to publish more article..
Thanks
HI,
ReplyDeleteis it possible to download the data with parameter.
I am using below sample query in content
"Select Col_a,colb from table where col_a=$param$.col_a"
But while generating create document nothing showing about parameter. can you please help me.
Thanks,
Hari.
HI,
ReplyDeleteis it possible to download the data with parameter.
I am using below sample query in content
"Select Col_a,colb from table where col_a=$param$.col_a"
But while generating create document nothing showing about parameter. can you please help me.
Thanks,
Hari.
Hi Hari,
DeleteEven I have got the same requirement .., It will be great help if anybody could share the solution
to download data based on parameter
Thanks
Hey, Problem could be the view BNE_PARAM_DEFNS_VL .
Deletecheck for your PARAM_DEFN_CODE in BNE_PARAM_DEFNS_VL table, if it is no there check the BNE_PARAM_DEFNS_TL whether this exists with which language and source_lang.
updata BNE_PARAM_DEFNS_TL with correct language and source_lang as 'US' ,then check now the view BNE_PARAM_DEFNS_VL .
Check the Download Parameters now in Integrator ,it should bring the parameters.
Regards,
John
Hi,
ReplyDeleteIs it possible to create dependent parameter list?
Thanks,
Ayushi
Hi,
DeleteWere you able to create dependent parameter list?. Please let me know if you were able to. I have this requirement. You help would be greatly appreciated
Hi,
DeleteEven we have the same requirement for Dependent Parameter list in Content Parameters. Please let me know if anyone did the same.
Regards,
Lavanya
Hi,
ReplyDeleteCould any one help me ,how to download data based on user input parameter in webadi
Hi Abdul,
DeleteHope u have found a solution , I have same requirement ..
Could u plz help me , Thank u in advance
Regards
Ashraya
really helpful post Abhay .. Thanks for sharing
ReplyDelete@ Hari babu / Abhay , even I have got same requirement to download the data based on a particular parameter..
Please let me know how it can be achieved
Thank you in advance :)
Regards
Ashray