cancel
Showing results for 
Search instead for 
Did you mean: 

Replacing Standard fields with 'Z' Fields in webdynpro

Former Member
0 Kudos

Hi all,

I am new to webdynpro and asked to rectify some issues in a webdynpro application on. The Scenario is like this, I have a purchase order and I want to get line item details through a webdynpro page. I am using a BAPI, BAPI_PO_GETDETAIL to get relevant details in the purchase order. BAPI_PO_GETDETAIL is modified to include two more ‘Z’ Fields in PO_Header to get Vat number & Payment Text. When I executed the BAPI in an R/3 system for a particular PO I am able to see those two ‘Z’ fields are getting populated with data. Now, I need to replace an existing SAP Webdynpro field with my ‘Z’ field through NWDS. Please let me know the procedure step by step to include those two fields in place of an existing SAP Standard field in Webdynpro application.

Thanks in advance,

With Best Regds,

Prabahar N.R

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Prabhanar,

The easiest way to do the mapping is through the Diagram view. Double click on you controller (it appears in a yellow icon below the webdynpro components). It will open up the diagram view. There you can see your views, controllers & models and any existing mapping between them (Shown as lines). Double clicking on these lines brings up the mapping window, where you can drag & drop (pls see the rule written on top of this mapping window) to do the mapping.

Hope this helps,

Best Regards,

Nibu.

Former Member
0 Kudos

Hi Wilson,

I am able to follow the steps and found out the model binding. Thanks for the detailed explanation. Will try to map and come back to you.

With Best Regds,

Prabahar N.R

Former Member
0 Kudos

Hi All,

Thanks. It works fine now.

Regds,

Prabahar N.R

Former Member
0 Kudos

Hi Prabahar,

You have to reimport the model to reflect any changes in the BAPI. When you open your application in WebDynpro perspective, you can see your model defined. Right click on yur model and select 'reimport model'. This will reflect the changes in R3 in the model being used. You need to do the mapping for the new 'ZZ' fields too,

Hope this helps,

Best Regards,

Nibu.

Former Member
0 Kudos

Hi Wilson,

I have successfully reimported the model. I have to do mapping. Since i am new to Webdynpro, it will be helpful if you tell me process indetail.

Thanks in advance,

Regds,

Prabahar N.R

Former Member
0 Kudos

Hi,

Right click on the component .open data modeler.

Then map the model to the controller using the data link.

Now pull the model object from right to left and select the values you will use.

Do the same for maping view to controller.

Regards

Bharathwaj

guru_subramanianb
Active Contributor
0 Kudos

Hi,

First create the SLD for the particular SAP R/3 System giving the client details and server name.Then

create Metadata and Modeldata parameters.

Once done create a model by giving the BAPI name and if any i/p parameters required 2 in your case.

Lastly bind your View UI element with the outpur parameter of your BAPI and execute the model in the implemetation tab of your view.

Hope this info had helped you.

Regards,

Guru

Former Member
0 Kudos

Hi,

The Application is an existing application and i am successfully runnning that application with out 'Z' Fields. It means that SLD setting are fine with application. My task is to replace an existing field in the application and replace it with 'Z' Fields. For Example i have a field Customer Number(kunnr) Field which is displayed in the application, i want to Change it to VAT Number(ZZVATNR). Here just the change of field field is required since we already have data from R/3 in this ZZVATNR field.

With Best Regds,

Prabahar N.R