11-12-2007 2:52 PM
Hi guys,
After executing the transaction MF41 with some selections , i m selecting a material document in the list and selecting the button Reversal.Then I m getting a error message Posting Date is Initial.
Previously I added some code for 2 user exists in the enhancement XMRM0001 according to notes 361630 and 223987. Now the functional guy says the error message posting date is initial is occurred because according to the note 165264 some unnecessary user exists in the enhnacement are activated which are no need to be activated.What should I do to deactivate the user exists which are no need to be activated.Can anyone please give me the sloution for the error message.
Thanks,
dp.
11-12-2007 2:57 PM
If you have a project in CMOD which contains your user exit XMRM0001, than you can deactivate it from the CMOD.
If you don't have project in CMOD, you can create a new project for that user exit (which is the suggested option) or you can comment out the code from your user exit.
Regards,
Naimesh Patel
11-12-2007 3:06 PM
Hi Naimesh,
Thanks for the reply.As u said previously for changing the code in the user exists in the enhancement XMRM0001 i created a project in CMOD. If I deactivate the project in CMOD, will it affect the changes previously i made for the requirement in the user exists?
Thanks,
dp.
11-12-2007 3:12 PM
If you deactivate the Project, it will deactivates the user exit's entire code. If you want to have some code to be executed from the user exit than this deactivation will not help you.
You need to comment out the unwanted code from the user exit.
Regards,
Naimesh Patel
11-12-2007 3:18 PM
Hi Naimesh,
In the OSS Note 165264 in the solution part it says " In all user exits which must also be activated for the activation of the enhancement project, all export parameters must be filled with the values of the Import parameters."
What does it mean?U have any idea?
Thanks,
dp.
11-12-2007 3:22 PM
I haven't used this OSS note, but it seems that it says, if you have active enhancement (user exit) than you should fill all the export parameters within your FM of the user exit.
If you don't fill the export parameter properly, than your main program will have problems to complete and save that transaction.
So, my advice is if you don't have any useful code in the enhancment than, deactivate your project.
Regards,
Naimesh Patel
11-12-2007 3:39 PM
Hi Naimesh,
The functional guy says that he still needs the project to be active and i have to find the solution for the posting date problem.
This is the piece of code i wrote in the include ZXMRMU01 in the user exit EXIT_SAPLBARM_001.
If gf_init IS INITIAL. " define gf_init in zxmrmtop
MOVE 'X' to i_rm61b-scrap.
MOVE 'X' to i_rm61b-zpknb.
MOVE i_rm61b to e_rm61b.
MOVE 'X' to gf_init. " clear this field after posting
ENDIF.
MOVE i_rm61b to e_rm61b.
Can u please suggest me anything what i have to add to this code or comment something in the code to work for both problems.
Thanks,
dp.
11-12-2007 3:44 PM
Comment out this code:
If gf_init IS INITIAL. " define gf_init in zxmrmtop
MOVE 'X' to i_rm61b-scrap.
MOVE 'X' to i_rm61b-zpknb.
* MOVE i_rm61b to e_rm61b.
MOVE 'X' to gf_init. " clear this field after posting
ENDIF.
<b>Don't comment this one</b>
MOVE i_rm61b to e_rm61b.
Regards,
Naimesh Patel
11-12-2007 4:03 PM
Hi Naimesh,
As u said i uncommented the line,but it didn't worked.But I added the same line to the other user exists in the same enahncement and the problem is solved.Thanks for ur help and patience.I m assigning points to u.
Thanks,
dp.