cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Data Source for custom template in S/4 HANA Public Cloud

jitendra_it
Active Contributor

Accepted Solutions (1)

Accepted Solutions (1)

Jerry_Lowery
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Jitendra,

Could you provide some additional information about the template you are extending?

I am assuming you are wanting to extend a standard output form by adding some custom fields - is that correct?

In that case, check the Setup Guide for Best Practice 3SL (Output Management (1LQ) - Best Practice) (Note the link will move soon to SAP for Me Process Navigator...( https://me.sap.com/processnavigator/SolS/EARL_SolS-013/2302/SolP/1LQ?). Check the accelerators section.

The setup guide will have a detailed example of how to do this.

In short:

1. Create the custom field for the context you are interested in (for example Outbound Delivery).

2. When you define the custom field, there will be a Form Templates tab where you can enable the field for the desired form.

3. Save and Publish the field.

When you do this, the system automatically adds the custom field to the form data source.

When you download the form template from Maintain Form Templates and open it in Adobe LiveCycle Designer, you will notice the field is in the data source and you can place it on the form and upload it back to S/4HANA Cloud to create the Custom Form (you will need to follow the additional setup in 1LQ to use it).

Please let us know if this helps

Thank you

Jerry

jitendra_it
Active Contributor
0 Kudos

Hello Jerry,

Thanks for your answer.

Template which I am using is MMIM_GMVT_TP_COL_SLIP and corresponding data source is FDP_GMVT_TP_COL_SLIP_SRV.

More details you can find in https://answers.sap.com/questions/13913839/additional-fields-in-challan-form-mmim-gmvt-tp-col.html

does S/4 HANA Public cloud support creation of custom data source for a custom template?

Regards,

Jitendra

Jerry_Lowery
Product and Topic Expert
Product and Topic Expert
0 Kudos

HI Jitendra,

If you review the app Custom Fields the business context Material Document Item (MATERIALDOCUMENTITEM) does support that Form Template. When you create the custom field, it will update the data source.

To populate the field, you would need to investigate if there is an appropriate BADI to update it.

Alternatively, you could enable the Business Scenario (again in the Custom Fields App) when you define the custom field. There is one there that will copy the value from the shipping document (outbound delivery) - there is also a BADI for the outbound delivery to set the value of custom fields before printing, so if your data is available there you could use that BADI to set the value and then copy it with the Business Scenario.

In your other post you mention some specific fields you want to add to the data source. I didn't check all of them, but maybe you want to review the custom data source app again, seems there are quite a few storage locations, addresses, etc (utilize the search in the app). If you don't find what you need, you can go with the custom field route. If you don't find a badi or api to populate the field, you will need to add it to a UI.

If it is a legacy UI, you can also investigate Screen Personas - there a several good blogs out there that are easy to find with examples of how to add some logic to populate fields using Screen Personas.

I hope this helps

Jerry

Answers (1)

Answers (1)

-dj-
Explorer
0 Kudos

@jitendra_it  Have you found the Solution of your Query.
As i am facing the same issue. I am trying to make a completely new Data Source out of custom CDS.
The same data source is to be used for Form Template. Any solution for this?

 

 

SahilPatil
Discoverer
0 Kudos
Hi , Have you find anything regarding new data source creation ?