on 12-26-2011 11:19 AM
There's an existing USEREXIT which checks the additional field of a SP(sold-to-party) for a drug license validity date, if the expiry date is more than order creation date the order can't be created.
Now the user wants to extend this functionality to SH(ship-to-party) also. SH is taken as suggested default or if more than 1 SH is there it's chosen among them. Now our issue is to, how to point the program to SH while creation of order as KNVV of SP will only be available after saving the order.
While creating a sales order how do we identify the SH in the order?
Done with technical help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. The check needs to be done on both the SP and SH, that's the client's requirement
2. I would need a more technical reply, such that I can guide my ABAP r on where to look for SH while order creation, so that he can put the restriction on that field
Thanks for the replies
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mausam,
1. The check needs to be done on both the SP and SH, that's the client's requirement
2. I would need a more technical reply, such that I can guide my ABAP r on where to
look for SH while order creation, so that he can put the restriction on that field
As you have highlighted that you are able to check the additional field of the Sold-To-Party for drug license date, you can always extend the same level of check to Ship-To-Party as well since at the User exit level you will have entries for all active partner fucntions covering SP,SH,BP,PY for the Customer Number.
You can reach out to Technical consultant and ask to frame the code in following way and since i don't have access to SAP system now, so i am not able to provide technical field name:
1:- Pass Customer Number to the Internal table which stores all the partner functions.
2:- Pick up Ship-To-Party Number based on Customer ID
3:- Perform the same level of check i.e. check on additional field of the Ship-To-Party for drug license date.
Regards,
Sarthak
Hi
During creation of order you can get the ship to customer from the internal table XVBPA (I guess, I am correct). You can ask your abaper to check for the correct internal table.
Thanks,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
as you said , the user exit already there to check the expiry date of the durgs with sold to party.
once it is successfully checked, the goods will be delivered to ship to party.
in the first step with the help of user exit, you are making sure that the goods does nt fall under expired category.
so I didnt understand why we need to check with ship to party? ( while creating order ,it been checked with sold to party, right ??)
please revert back .
thanks,
suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Your question is" While creating a sales order how do we identify the SH in the order?"
To Check Ship-to party(SH) in Order,
Please follow below path
Go to Tcode VA03(Display order) ,In Overview srceen ,you have two options
One SH you can check at header level
and other way is at item level
1] Header level
Click on GoTo(Top of page) --> Header --> Partners
2] Item level
Click on Goto --. Item -
> Partners
Note : If you have to see SH at document level go for header level or else for every item you can see SH at item level.
Hope it will guide you to solve your problem,If you need mroe help ,please let me now
Please read the forums rules regarding requesting points - see [rules of engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
Thanks & Regards
Abhi
Edited by: Ian Kehoe on Jan 4, 2012 9:39 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.