How to block a business partner...in sales order????
Hi all,
While generating the sales order....In the customer tab i will select one business partner from CFL,after choosing i want one particular customer to be blocked....means it should unable to post the sales order.....i know that i should write my coding in the customer tab LOST FOCUS event......can anybody suggest me the coding for this problem....
regards,
shangai.
Shangai,
How about blocking some partner from ChooseFromList of BP in Sales Order?
Meaning that blocked some bp with criteria in Choose From List. Sample code:
If pVal.FormType = 139 And pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then
If pVal.ItemUID = "4" Then
If pVal.InnerEvent And pVal.Before_Action Then
BubbleEvent = False
Dim oForm As SAPbouiCOM.Form
oForm = SBO_Application.Forms.Item(FormUID)
Dim oCons As SAPbouiCOM.Conditions
Dim oCFL As SAPbouiCOM.ChooseFromList
'oCFL = oCFLs.Add(oCFLCreationParams)
oCFL = oForm.ChooseFromLists.Item("2")
oCons = oCFL.GetConditions()
'Note: Add the condition only once.
If 0 = oCons.Count Then
Dim oCon As SAPbouiCOM.Condition
oCon = oCons.Add()
oCon.Alias = "Cardcode"
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCon.CondVal = "C0001"
'Set your own condition here instead of the system conditions
oCFL.SetConditions(oCons)
End If
BubbleEvent = True
End If
End If
End If
Regards, Yatsea
Similar Messages
-
Q: Extract additional business partner of sales order
Hi experts,
In ECC we have an additional business partner on sales orders, does anyone know the best way to extract this data to BW? As far as I can find you have to customiz the LIS extractor in ECC in order to get this data.
Any suggestions?
Thank you in advance,
MikaelHi Gustavo,
We have found out that there are no suitable BTE for VBPA extraction. We therefore decided to go in another direction;
A custom datasource based on a function module that extracts the data from VBPA using update date from VBAP to trigger the delta. This solution might not be perfect, but if is sufficient for our business scenario.
This posts describes how to do it:
LIS User Exit MCS10001 and VBPA table (Roberto N. read me!)
Best regards,
Mikael -
How to block the creation of a Sales Orders without a linked Purchase Order
Hi. I'm trying to block the creation of a Sales Order that doesn't have a linked Purchase Order. The first thing I did is using the SBO Transaction Notification as follows:
IF @transaction_type = 'A' AND @object_type='17'
BEGIN
IF (SELECT PoPrss FROM ORDR WHERE DocEntry = @list_of_cols_val_tab_del) = 'N'
BEGIN
SET @error = 1
SET @error_message = 'Purchase Order Missing...'
END
END
This works good. I create the Sales Order, I tick the purchase order field on the logistics tab, I click Add, and then the purchase order window appears...
Then, the problem begins... If I click the Cancel button, the purchase order is obviously not created, but the Sales Order is created.
Can someone tell me how to block the creation of the sales order If the user press the cancel button on the purchase order window (and the purchase order is not created)
As far as I can see, after clicking the add button in the sales order document, the Sales Order is created on the DB. If there's no way of blocking the creation of the Sales Order, can I avoid closing the purchase order window by the SBO_TransactionNotification? (if the purchase order has not been created)
Thanks...Hi Yail,
I think you can't close the purchase order with the stored procedure.
Try to catch the Event when the user click on Cancel button.
So you can list the vents with event logger : https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ede3be37-0e01-0010-1883-cd1b5293473e
You can block the cancel button and force the user to create the purchase order.
Hope i help you
Best regards
Michael -
How to block a article to make sales order & STO
how to block a article to make sales order & STO.
actually one new article has been created and listing has been done only for DC, but one store is able to make sales order for this article. how can i block this article to be used by other sites except DC?
thanks & regards'
manoj guptaDear Manoy Gupta,
Go to Transaction MM02 -> Basic data 1 -> X-plant matl status :
01 Blocked for procment/whse
02 Blocked for task list/BOM
10 Blocked for MRP etc.
Select any one.
Valid from - Here you enter valid date from which the material should be blocked.
So from this your material will be blocked for any PR/PO/any transactions related to Procurement
Hope this will help.
Regards,
Naveen. -
SZA1_D0100-SMTP_ADDR (e-mail adress in business partner for sales order)
I need to control that the in the Sales Order the field SZA1_D0100-SMTP_ADDR (e-mail adress in business partner) is setted.
I thinked to use USEREXIT_SAVE_DOCUMENT_PREPARE. In this exit I have on line the structure XVBPA with ADRNR and I haven't on line the structure SZA1_D0100-SMTP. When I'm inserting for first time e-mail adress in sales order, i must read the value in structure and not a DB table. In which structure on line for USEREXIT_SAVE_DOCUMENT_PREPARE i can read e-mail adress for a specific partner?
Also another way to control the setting of field SZA1_D0100-SMTP_ADDR is ok.
Thanks.I need to control that the field is setted on the sales order during its creation. If there is another way....it is ok.
I have seen that exist the structure ADSMTP where there is adress e-mail, but it isn't on line in the exit USEREXIT_SAVE_DOCUMENT_PREPARE.
Who can help me?
Thanks.
Edited by: Biagio70 on Oct 18, 2010 4:19 PM
Edited by: Biagio70 on Oct 18, 2010 7:36 PM -
Create Business partner and Sales order automatic based on Excel file
Hello everyone,
Can anyone help me with the following.
I need to create automatic Business partner master data and the Sales order in Business One based on the input list from one Excel file.
Before the new automatic Sales order should to be created the system need to create first the BP and then the Sales order using the new created BP.
Is it possible to use some tools like CATT or LSMW for this reason.
If yes can you please help me with a sample/
Thanks and regards.use DTW (data transfer workbench ) or if you want to automate the entire thing, then an add-on using the DI is best.
-
How to block material for a particlar sales order
Hello Gurus
How to reserve a material in sales order level for a given quantity in sales order
If we do availability check for that material it should not show in unrestricted stock and it should show in reserved stock
Looking for your inputs
Regards
VenkatHi Lakshmipathi,
It should happen for every sales order not only one order , when ever i create sales order for particular material , quantity it should reserve the stock for that order after doing availablity check and one more thing is once the stock is reserved it should be be show in unresricted stock
Thanks for your useful information and i have checked in system , all the requirement you have mentioned are there in system.
Looking for more inputs
Regards,
Venkat -
How to create a business partner whose BP category is person in crm portal?
How to create a business partner whose BP category is person in crm portal.When I use Partner and account management>Partner function in portal,I create a new partner,the partner category is default organization,can not change.
But I what to create a partner with the partner category person,how can I do it?
Is there any other special function to ceate a BP in portal matching the function with T code Bup1(create BP)in sap gui?
By the way,I have the whole privileges in portal and crm.
thanksHello,
Standard CRM PC UI application offers three options when you push 'New' button: 'Person', 'Organization' and 'Group' (combobox appears). In your case, 'Person' should be selected.
p.s. If you don't see combobox mentioned above, it could be security issue.
Kirill -
Can we block the business partner master data for embargo reason?
Hi,Experts:
Do you know if we can add the embargo block on business partner master data in GTS just like SPL checking?
ThanksEmbargo checking in SAP GTS can be enforced using any combination of the following:
country-to-country, country group to country, or all countries to country.
The check is based on the combination of the country of departure and the country of destination (or groups of countries).
If the system detects an embargo situation, the document is blocked for further processing.
IF you want to block Business partner for embargo reason,
you may have to do some code enhancement(abap coding based) for the same. -
How to read the business partner activity
Hi experts,
How to get the business partner(role:employee) assigned activities in crm and how to create the activity .my requirment is change the assiged from old employee(bp) to new employee(bp). i have to develop the program. i searched some BAPI's.
Please help on this.
thanks,
venu.Pls use the FM CRM_REPORT_CALL_RF. Pass the partner function to the exporting parameter table ir_partner_fct_h and partner number to the partner number to ir_partner_id_h . You will get all the guid and then use CRM_ORDER_MAINTAIN to change the partner.
CALL FUNCTION 'CRM_REPORT_CALL_RF'
EXPORTING
iv_stat_open = 'X'
iv_maximum_hits = ' '
ir_object_type_h = it_act_objtype
ir_partner_fct_h = it_partner_fct_h
ir_partner_id_h = it_partner_id_h
IMPORTING
et_guidlist = it_guid
EXCEPTIONS
parameter_error_partner = 1
parameter_error_items = 2
parameter_error_ref_obj = 3
OTHERS = 4. -
How to link the Business Partner with the SAP User ID.
Hi,
We are working on a scenario wherein the resources are created as Business Partners in R/3.
now How to link the Business Partner with the SAP User ID.HI AP,
Maintain the business partner in role Internet User - BUP005.
Now assign the existing user to this BP .(you can make this assignment in tab "internet user'. Just enter the user name in the field User and save).
You can now see the link in table HRP1001.
Cheers,
Rishu. -
Need information of Table containing Ship-to-party Partner at Sales Order
Hello SAP folks,
There is a scenario where we need to change the shipping address detail of a partner funtion "Ship-to-party" at Sales Order level. so I just wanted to know which tables stores all the data related to Address of Ship-to-party after the Sales Order is created.
Suggestions are eagerly awaited in this topic !!
Regards,
SarthakHi sarthak
As soon as you change the address for any partner in sales order, the changes are recorded in table ADRC. ( Normal address table for business partners)
Select table VBPA and for the document number (VBLEN) and item number (POSNR) get the address number ( ADRNR) for the ship to party (WE)
Now in the table ADRC with this ADRNR you can find the changed address for ship to party for the order.
regards
makarand -
How the profit center wiil detrmine in sales order
How the Profit center will determine in sales order
where we will assign profit center to sales org
is it right that it will determine from Material master
Thanks and regards
KishoreKishore,
Profit center is used for internal controlling purpose. It helps you to analyze clearly the costs and revenues.
You can create Profit Centers according to product lines and Functions. Before creation of profit center we should do the basic settings you divide your business or company into internal areas of resposibility. You divide your business into profit centers by assigning it to master data like Materials, Projects , Cost centers, sales orders .
It is necessary to assign to SD sales orders to Profit Centers in order to reflect receivables, sales revenues and sales deductions on profit centers
The profit center assignment is also passed on from the sales order through the supply chain: sales order --> delivery note --> goods issue --> billing document. This means that the when a goods issue is posted, the corresponding revenue value for the goods is also passed on to the profit center of the sales order.
Each order item is assigned to a profit center. The system proposes the profit center of the material in the supplying plant as default, you donot assign profit center manually. This default supports both a product‑oriented and geographical division of your organization into profit centers.
AFter Creation of profit center you will assign sales order to profit center.
IMG --> Controlling --> Profit Center Acounting > Assignments of A/c assignemnt objects to profit centers>sales orders --> assign sales orders
The system uses these substitution rules to determine the profit center from sales orders. You also need to activate these substitutions for each individual controlling area
b. for that we need to activate the indicator "Ent org active" then we proceed accordingly.
IMG --> Controlling --> Profit Center Acounting --> Enterprise organization
c. The system proposes the profit center of the material in the supplying plant as default, you donot assign profit center manually. When you create a sales order item, the default profit center is copied from Material master or Substituioon rule
IMG --> Controlling --> Profit Center Acounting > Assignments of A/c assignemnt objects to profit centers>sales orders --> Sales orders substituion rules
Profit center configuration
It is configured in Controlling:
IMG --> Controlling --> Profit Center Acounting --> Master Data --> Profit Center
When you are trying to create a profit center it will ask for Contolling area.
Please go through the IMG settings and also go throtuh the URL's provided by our friends as a reply.
Regards
Sathya -
How to create a daily report for sales order
hi
how to create a daily report for sales order. what fields it must consists of. what are the tables it need?Hi
You have to use the sales order tables VBAK,VBAP and VBEP
So keep date field on selection screen
and treat this date as Order creation data audat field in VBAK.
based on this fetch the data from VBAK and VBAP with the following fields like
VBELN, KUNNR,NETWR,POSNR, MATNR,ARKTX,KWMENG,WAERS etc and display in the report
<b>Reward points for useful Answers</b>
Regards
Anji -
How to syatem determine delivery date in sales order
hi sap gurus
how to syatem determine delivery date in sales order
Thanks and regards
ramHi Friend,
There are many things which determines the delivery dates.
01. PICK TIME+ PACK TIME +LOADING TIME
02. LEAD TIME in days (VOV8)
03. Shipping point
04. Scheduling line
05. Kind of availblity check
06. If the above things are maintained as blank then the current date will be the delivery date
However whether it must be proposed by the system or not is determined by one check box there find in VOV8 in requesteed delivery date determination tab.
Maybe you are looking for
-
Delivery date variance for multiple schedule lines in EKET
Hi experts, can anyone tell me what dates are used (from EKET, EKBE or any other table) to calculate delivery date variances when there are multiple schedule lines in EKET table. I am able to match single schedule line POs but not POs having multip
-
Requiring a digital signature prior to hitting "Submit By E-mail"
How do I make it a requirement to digitally sign a form when selecting the "Submit By E-Mail"?
-
Forgot my security questions, but I cant call anyone. Help me!
So I made the security questions a few years ago, and I just downloaded the app for my PC a few hours ago. I cannot call anyone because I broke my phone, and I have no home phone. I can't seem to find my Rescue E-Mail, because I'm pretty sure I never
-
Copying frames between fla's freezes program
Flash newb. Trying to make a news flash ad banner. I have constructed the rectangle now I need to make the cube, hopefully with the same timing of animations and tweens. I have made this first .fla AS 2.0, player 6 and imported a large number of elem
-
Not able import SLD setings into my Integration repository
Hi, I am not able import SLD setings into my Integration repository. It says error while doing import via tools menu. Please help to import SLD. Regards, Bala Raja