cancel
Showing results for 
Search instead for 
Did you mean: 

Drop down for first destination in new Travel request

MaheshChandra
Active Contributor
0 Kudos

Dear Experts,

We have an requirement in Travel Management - Create Travel Request application

In New Travel Request we need to have a drop down of values for First Destination (which is an input box by default) and the drop down values(pre defined) should come from R/3 Table. need your help on getting the drop down values.

we are on EP 7.01 Ehp1, ECC 6.0 and Travel Management in WDJ, is it good to do through NWDI or any Configuration or BAPI changes will help? please suggest.

regards,

mahesh.

Screenshot of Requirement

Accepted Solutions (1)

Accepted Solutions (1)

Lukas_Weigelt
Active Contributor
0 Kudos

Hi Mahesh,

your only possibility to change things here are through NWDI/NWDS and heavy modification, Customizing or BADIs won't help you here:

  • Changing the UI-Element-Type (which can cause the standard WDJ to malfunction/dump if some generic casts are done against the prior UI-Type)
  • Coding a freely programmed search help which has to be populated in the WDJ-Framework

I suggest you toss the whole WDJ-Complex far far away and use WebDynpro ABAP instead 😕

Cheers, Lukas

MaheshChandra
Active Contributor
0 Kudos

Hi Lukas,

Thanks for your reply,

i am working on doing these changes through NWDI (i.e heavy modification),Since i don't have any other option to get this and i will consider your point i.e changing a UI type may leads to dump/malfunction.

regarding your suggestion i have one doubt.

in WD ABAP version of Travel management, whether this functionality exist by default? or its easy to customize the standard code?

regards,

mahesh

Lukas_Weigelt
Active Contributor
0 Kudos

Hi Mahesh,

In WD ABAP you have the field (if it is functionally the target Country/Region) as standard drop down list, here's a screen from my system:

Aside from this fact, altering WD ABAP is far more elegant and flexible than WDJ. In WDA you can practically change everything on standard objects without modification, but via Enhancements. Also, you have closer access to the business logic and don't have that whole JCo/BAPI-stuff. Furthermore you even have loads of Customizing possibilities and BADIs to do explicit manipulation supported by SAP (if you don't want to use enhancement framework).

I personally recoded about 1/4 of the whole FI-TV module to our requirements with BADIs and Implicite Enhancements via Enhancement Framework and connected that whole bunch to the switch framework. As an experience I can say, I have far less work with Updates (SPs or EHP Upgrades) and in case there is an error after an upgrade/update, I can switch off all my enhancements within minutes to figure out whether the error is "my fault" or SAP's. That's quite a ton of advantages in my opinion and you can't do that with WDJ .

Cheers, Lukas

MaheshChandra
Active Contributor
0 Kudos

HI Lukas,

Thanks for your detailed reply,

but your screenshot showing drop down for country/region, its exist in WDJ (in my screenshot),

what we need is restricted selection for First Destination filed using a drop down predefined values from a R/3 table. As you said WDJ is little more complex, less flexible than WDA, but our environment in on WD java and no immediate plans to migrate to WDA TV.

i am able to get the new request code to NWDS, but small changes in code/ framework giving me compilation errors. so i am stuck at this now.

thanks

mahesh.

Lukas_Weigelt
Active Contributor
0 Kudos

Thanks for your detailed reply,

but your screenshot showing drop down for country/region, its exist in WDJ (in my screenshot),

what we need is restricted selection for First Destination filed using a drop down predefined values from a R/3 table. As you said WDJ is little more complex, less flexible than WDA, but our environment in on WD java and no immediate plans to migrate to WDA TV.

Oh yes you are right, sorry, my bad. Can you tell me what field in the ERP-System, i.e. in the database is fileld from "First Destination"? I'm curious because I don't know which would be the respective equivalent for WD ABAP.

i am able to get the new request code to NWDS, but small changes in code/ framework giving me compilation errors. so i am stuck at this now.

Yes, this is what makes it particulary deceptive and unflexible :-/.

I would have another idea for a workaround, although maybe that would be a last resort because it's not very neat. If you want to force the user to enter a value from a specific amount of entries, you could do a check in one of the FPM-Methods against the value of field "First Destination" and in case it doesn't fit your value help (which you could hard-code or something if there aren't too many entries)

you could throw an error message and suppress the navigation.

Hope you will solve this somehow ;-/, good luck!

Cheers, Lukas

MaheshChandra
Active Contributor
0 Kudos

Hi Lukas,

In ERP first destination field saved in PTP02 table & Z0RT1 field and in WDJ code its treated as Location field. kindly check whether this is available in WDA version.

I will try for the workaround, if i fails to get it done through other ways.

thanks,

mahesh

Lukas_Weigelt
Active Contributor
0 Kudos

Hi Mahesh,

yes this field is also named "LOCATION" in WDA Framework and is saved in Field ZORT1. However, in WDA this field is also an Inputfield with an optional personal-value-search-help, so switching to WDA won't solve your particular requirement to have it as drop-down-field ;-/.

Good luck with the workaround.

Cheers, Lukas

Answers (0)