on 2013 Jun 12 10:09 AM
Hello,
Currently I'm developing script logic around Master Agreements and I have problems with the following:
1. Trying to add (actually copy) line items to Master Agreement - the problem is that in order to add any line item to MA, I have to "Create default line item group" first. I'm adding this line item group manually (just like in the picture below - marked red) and then I'm able to .add() lines to document through script. But I want to call out this "Create default line item group" also by a script. Any ideas how to program this through script?
2. Another functionality I'm trying to develop is copy incoterms from RFX to Master Agreement. I'm able to read this from RFX through getDeliveryTerms() (which I believe is suitable for reading incoterms setup) but I'm not able to find a way to set/copy this to Master Agreement - no getDeliveryTerms() in MA document so I'm not able to doc.getDeliveryTerms().set(...)
Any ideas on that?
Thank you in advance,
Regards,
Tomasz Gałdyś
Request clarification before answering.
HI Tomasz,
I think you can enable the rule of creating default line item group in Master Agreement type , that would enable creation of default group when ever a master agreement is created . Then check if you are still facing the same problem .
Thanks
Uday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Uday, Eduardo and Tomasz,
thanks for you answers. I have two similar problems. Maybe you have any suggestions?
I need to create a Master Agreement from a Project coping line items from a RFX which is linked to this project.
With my script I'm able to do this only when default line item is added in MA. Although my MA type has marked "create default line item" indicator when I create MA from a Project default line item is not added. Maybe you have any clue why? Likely I have same workaround and create a MA from a temple not from MA type.
But this workaround doesn't work when I need to create a sub-agreement in a similar way. In order to have default line item on sub agreement I would need to create this from template but I don't see any templates for sub agreements. Don't you know is there any possibility to create a template for sub agreement?
Your input will be very valuable. Thanks for help.
Marcin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Marcin,
I need to create dummy line items at subagreement level so I need to have a default group to be created. Since I did not find any way to create a subagreement template, I am trying to add the line item via script (still investigating how). I had configured the master agreement type to create the default line item and it works when creating the subagreement from the master agreement or RFx, but not when is created from a project . I raised a message to SAP and they confirm this is a bug and they are working to solve it. So, this should be solved in a future SP.
By the way, any of you managed to create a line item at master agreement or subagreement level? we are facing problems to create them and we do not know why. Can any of you have a look on post and give us some advice?
Hope it helps.
Marc
Tomasz,
I had a similar requirement where I needed to create new line items group. Unfortunately, SAP has no plans to expose the IAPI that handles it (this information was passed by SAP Support via an OSS Note) so it's not possible to achieve this through scripting.
You can use Uday suggestion to create a Default line item Group, that is created automatically when you create a new Master Agreement.
Cheers,
Robert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.