11-04-2008 2:56 PM
Hi All,
I am looking for a user exit to default Bline date (Base Line date) in the payment tab of FB70.
End user is sitting on my head to get this done,
Please suggest.
Thanks-
11-04-2008 11:44 PM
technically these tables should be populated and you should be able to modify the lines. i dont have access to the system so i cant check for now.
11-04-2008 3:18 PM
the baseline date gets defaulted from the payment term. How has to be defaulted in this case? On the other hand this can be solved through substitution exit, the know how is documented in SAPHelp (and SDN)
11-04-2008 3:21 PM
They said that they have a work around in the functional side, but they want me to implement user exit and write logic for bline date with respect to Payment Terms.
Any help is highly appreciated.
Thanks
11-04-2008 3:22 PM
My question again: What should be the logic, you are expected to implement?
11-04-2008 3:25 PM
for a particular payment term "ZTST" they want to default the date to some date in FEB 2009
Thanks-
11-04-2008 3:31 PM
OK, no need for user exit, only a substitution has to be set up. Basically this is done by functional people (no need for ABAP, only some "rules"): Start transaction GGB1 and check if there is any substitution for the field (BSEG-ZFBDT) already, if yes ==> add the new logic, if no ==> set up a new rule on line item level ==> prerequisite should be the payment term (BSEG-ZTERM = 'ZTST), and set the above field (BSEG-ZFBDT) to the fixed date (200802xx). If you are stucked, just ask help from functional people, as this is always done by them!!! Also don't forget to activate the substitution through tcode OBBH!
11-04-2008 4:03 PM
Please let me know the steps to create the substitution,
After creating the substitution, while creating the step, I am unable to see the field called BSEG-ZTERM.
Please let me know the extact steps to follow to create substituation and rule.
Thanks in advance for your assistance.
Thanks-
11-04-2008 4:28 PM
no problme, into the prerequisition just enter manually: BSEG-ZTERM = 'ZTST'
11-04-2008 4:36 PM
A couple of thoughts:
If my uderstanding of a substitution is correct, the substitution happens after the users presses enter on the screen, so there will be no default date when coming into the screen.
Since the substitution changes a value rather than creating a default, you will have to be careful that the users will be able to change the value (if it is truly just a default value).
Rob
11-04-2008 8:23 PM
I have given the condition"BSEG-ZTERM = 'ZTST'" in Prerequisite, and in the Substitutions when I try to assign constant value '02/16/2009' to the field Baseline Date, I don't see that Baseline date field in Substitute fields for Class '009'.
How do I add Baseline date in that popup to select and assign values.
Please suggest.
Thanks-
11-04-2008 8:35 PM
>
> I have given the condition"BSEG-ZTERM = 'ZTST'" in Prerequisite, and in the Substitutions when I try to assign constant value '02/16/2009' to the field Baseline Date, I don't see that Baseline date field in Substitute fields for Class '009'.
>
> How do I add Baseline date in that popup to select and assign values.
>
> Please suggest.
>
> Thanks-
i think your date format and system date format is not suitable.
give the date format as 20090216 as system format.
11-04-2008 8:47 PM
I dont think ZFBDT is a substitutable field. You can check in the EXTRAS -> substituable fields in GGB1. Only the fields in the subtitutable fields can be used in substitution.
If you are in ECC6.0 then check for BTE process 1100 and replace the FM in Process of SAP application with your custom FM.
11-04-2008 8:53 PM
Hi Kshamatha
I am working on 4.6c , now what are options, I did not find any user exit and this GGB1 is also not working.
Please suggest.
Thanks
11-04-2008 9:37 PM
if you want to change in simulate or post and not as default on screen then you can give a try to 00001140 process and add this in SAP APPLICATION process and see if the date changes.
Otherwise i have to trust on hearing from Rob AND Eric for options
11-04-2008 9:43 PM
What is process 00001140, and how should I proceed. Which tcode I need to execute for this.
Thanks-
11-04-2008 9:54 PM
goto TCODE - FIBF
environment -> infosystems process. Check if process 1140 is available.
If this is available then copy the associated FM : SAMPLE_PROCESS_00001140 to a Zfm in a Z function group and write your code in Z-FM.
Add this new FM as an entry in FIBF -> SETTINGS ->PROCESS MODULE -> OF AN SAP APPL.
11-04-2008 11:08 PM
Hi Kshamatha,
Process 1140 is available and copied SAMPLE_PROCESS_00001140 to a Z FM and assigned to Z FG,
Written a code in that, but it does not get executed while running FB70. Is there a way to find out which process is being executed while running the transaction.
Thanks-
11-04-2008 11:30 PM
did you add the new fm and process as an entry in
Add this new FM as an entry in FIBF -> SETTINGS ->PROCESS MODULE -> OF AN SAP APPL.
or BF41 is the tcode for the above. See if you have an entry in this with process 1140 and ur zfm.
put a break point in ur FM and it should stop
11-04-2008 11:34 PM
Followed all the steps exactly as you said.
Added Function module for the process 1140 with custom function module. and also kep a break point with my user id.
There was some other entry for that process, i changed it to the newly created function module with required code.
Thanks-
11-04-2008 11:39 PM
The function module is getting triggered after the save,, which will also solve my purpose, but I am not getting any values in the tables t_bseg and t_bkpf.
Thanks-
11-04-2008 11:44 PM
technically these tables should be populated and you should be able to modify the lines. i dont have access to the system so i cant check for now.
11-04-2008 11:46 PM
I can give you access to my system, please give me your e-mail id so that I can give you link to share my desktop.
Thanks-
<<moderator message: sharing of personal contact information on these forums is forbidden for your own safety - you can set an email id in your business card>>
Edited by: Matt on Nov 5, 2008 3:16 PM
11-04-2008 11:52 PM
<<email address removed by moderator>>
Edited by: Matt on Nov 5, 2008 3:15 PM