Getting Ref doc num and Conditions price from SD_SALESDOCUMENT_CREATE
Hi,
Can someone please help me how to get the following.
1) Header - Financial Accounting - Reference num -> vbak-xblnr
I tried SALES_HEADER_IN-REF_DOC, but it is not comming.
2) Item - conditions - 'ZCPP' - Price - KOMV-KBETR
I gave as SALES_CONDITIONS_IN-COND_TYPE = 'ZCPP'
where should I mention condition price.
Thanks,
Neelu.
Hi Mahesh,
So is creating, I have to include the Ref Docu Num and Condition Price.
Thanks,
Neelu.
FORM headerdata.
header data
Sales document type
header-doc_type = gs_zprice1-auart. "'ZMKD'.
headerx-doc_type = 'X'.
Sales organization
header-sales_org = gs_zprice1-vkorg. "'300'.
headerx-sales_org = 'X'.
Distribution channel
header-distr_chan = gs_zprice1-vtweg. "'20'.
headerx-distr_chan = 'X'.
Division
header-division = gs_zprice1-spart. "'01'.
headerx-division = 'X'.
header-purch_no_c = gs_zprice1-bstkd. "'SA-07-003'.
headerx-purch_no_c = 'X'.
header-ord_reason = gs_zprice1-augru.
headerx-ord_reason = 'X'.
header-ref_doc_l = gs_zprice1-xblnr.
headerx-ref_doc = 'X'.
headerx-updateflag = 'I'.
ENDFORM. " headerdata
*& Form itemdata
text
--> p1 text
<-- p2 text
FORM itemdata.
Partner data
Sold to
partner-partn_role = 'AG'.
shift gs_zprice-kunnr left deleting leading '0'..
partner-partn_numb = gs_zprice1-kunnr.
APPEND partner.
ITEM DATA
itemx-updateflag = 'I'.
Line item number.
item-itm_number = lv_itemno.
itemx-itm_number = 'X'.
Material
item-material = gs_zprice1-matnr.
itemx-material = 'X'.
Plant
item-plant = gs_zprice1-werks. "'ATLA'.
itemx-plant = 'X'.
Quantity
item-target_qty = gs_zprice1-eohqty.
itemx-target_qty = 'X'.
APPEND item.
APPEND itemx.
*Fill schedule lines
lt_schedules_in-itm_number = lv_itemno.
lt_schedules_in-sched_line = '0001'.
lt_schedules_in-req_qty = gs_zprice1-eohqty.
APPEND lt_schedules_in.
*Fill schedule line flags
lt_schedules_inx-itm_number = lv_itemno.
lt_schedules_inx-sched_line = '0001'.
lt_schedules_inx-updateflag = 'I'.
lt_schedules_inx-req_qty = 'X'.
APPEND lt_schedules_inx.
*Conditions
conditions1-itm_number = lv_itemno.
conditions1-cond_type = 'ZCPP'.
conditions1-cond_value = '8.000000000'.
*Texts
order_text-itm_number = '000000'.
order_text-text_id = '0001'.
order_text-langu = sy-langu.
order_text-text_line = gs_zprice1-xblnr.
APPEND order_text.
lv_itemno = lv_itemno + 10.
ENDFORM. " itemdata
*& Form call_function
text
--> p1 text
<-- p2 text
FORM call_function.
CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'
EXPORTING
SALESDOCUMENT =
sales_header_in = header
sales_header_inx = headerx
SENDER =
BINARY_RELATIONSHIPTYPE = ' '
INT_NUMBER_ASSIGNMENT = ' '
BEHAVE_WHEN_ERROR = ' '
LOGIC_SWITCH = ' '
BUSINESS_OBJECT = ' '
TESTRUN =
CONVERT_PARVW_AUART = ' '
STATUS_BUFFER_REFRESH = 'X'
IMPORTING
salesdocument_ex = salesdocument
SALES_HEADER_OUT =
TABLES
return = return1
sales_items_in = item
sales_items_inx = itemx
sales_partners = partner
sales_schedules_in = lt_schedules_in
sales_schedules_inx = lt_schedules_inx
sales_conditions_in = conditions1
SALES_CFGS_REF =
SALES_CFGS_INST =
SALES_CFGS_PART_OF =
SALES_CFGS_VALUE =
SALES_CFGS_BLOB =
SALES_CFGS_VK =
SALES_CFGS_REFINST =
SALES_CCARD =
sales_text = order_text
SALES_KEYS =
SALES_CONTRACT_IN =
SALES_CONTRACT_INX =
EXTENSIONIN =
PARTNERADDRESSES =
SALES_SCHED_CONF_IN =
ITEMS_EX =
SCHEDULE_EX =
BUSINESS_EX =
INCOMPLETE_LOG =
EXTENSIONEX =
CONDITIONS_EX =
BATCH_CHARC =
ENDFORM. " call_function
Similar Messages
-
Goods Receipt Acccounting document considers condition price from PO
Hi,
During Goods Receipt with reference to an old PO, the accounting document created considers old overheads condition price from PO and not the updated condition price from condition record (Transaction MEK1) which was subsequently changed after creation of the PO.
Please advise how the accounting document should consider the updated price (MEK1) as on date of creating the GR.
Thanks and Regards,
Pratap Mukund ShettyHi Pavan,
You are right. But we are unable to save the PO with catg 5 as the gross price is pbxx (manual entry) .Our requirement is for the additive cost conditions we have for overheads mantained in MEK1 and in pricing schema show that they are picked up in the PO. At the time of GR if these condition prices were changed it should consider the updated price in GR accounting document but presently it picks the previous price from PO.
If PB00 is mantained and picked from info record then the price date catg works.. But most of our PO's have PBXX (manual entry). How do we address this.
Regards,
Pratap -
Restrict referance of pricing and condition type from latest PO.
Hi Experts,
I am creating Purchase order and at the time of creation of purchase order system is copying prices and condition types from latest PO.
Which is not desirable to our business process, when I dig out I found out that in standard SAP system
The system looks at pricing in the hierarchy order as below:
u2022 Contracts/scheduling agreement
u2022 Condition records
u2022 Info Records
u2022 Last purchase document
So can some one help me with information how to restrict system to follow this referance of pricing.
I want to enter price as well as condition type manualy every time user create a purchasing document.
Also i want to know can it be restricted specificaly for few document type.
Thanks
Best Regards
RiteshHi sir
can we try this
Use the user parameter EVO to indicate that no price adoption from last Purchase Order must take place:
IMG: MM -> Purchasing -> Environment data -> Default values for Buyers
-> Setting for Default values.
Select or setup a default value and on the "price adoption" tab you may choose how copying of conditions from last purchase order must behave. Select "Do not copy".
Then assign this default value to the user, using the EVO parameter.
[http://sap.ittoolbox.com/groups/technical-functional/sap-log-mm/price-to-flow-from-info-record-at-plant-level-813066]
[Re: new info record with same details as archive one.;
check following notes it may helfull
569885 About Info Record Update indicator (EKPO-SPINF)
13127 Update in info record from PO, quotation, contract
430543 FAQ: Purchasing info record
675523
456691
Regards
Kailas ugale -
SQL Query to get Project Plan Name and Resource Name from Reporting database of Project Server 2007
Can you please help me to write an SQL Query to get Project Plan Name and Resource Name from Reporting database of Project Server 2007. Thanks!!
Refer
http://gallery.technet.microsoft.com/projectserver/Server-20072010-SQL-Get-a99d4bc6
SELECT
dbo.MSP_EpmAssignment_UserView.ProjectUID,
dbo.MSP_EpmAssignment_UserView.TaskUID,
dbo.MSP_EpmProject_UserView.ProjectName,
dbo.MSP_EpmTask_UserView.TaskName,
dbo.MSP_EpmAssignment_UserView.ResourceUID,
dbo.MSP_EpmResource_UserView.ResourceName,
dbo.MSP_EpmResource_UserView.ResourceInitials
INTO #TempTable
FROM dbo.MSP_EpmAssignment_UserView INNER JOIN
dbo.MSP_EpmProject_UserView ON dbo.MSP_EpmAssignment_UserView.ProjectUID = dbo.MSP_EpmProject_UserView.ProjectUID INNER JOIN
dbo.MSP_EpmTask_UserView ON dbo.MSP_EpmAssignment_UserView.TaskUID = dbo.MSP_EpmTask_UserView.TaskUID INNER JOIN
dbo.MSP_EpmResource_UserView ON dbo.MSP_EpmAssignment_UserView.ResourceUID = dbo.MSP_EpmResource_UserView.ResourceUID
SELECT
ProjectUID,
TaskUID,
ProjectName,
TaskName,
STUFF((
SELECT ', ' + ResourceInitials
FROM #TempTable
WHERE (TaskUID = Results.TaskUID)
FOR XML PATH (''))
,1,2,'') AS ResourceInitialsCombined,
STUFF((
SELECT ', ' + ResourceName
FROM #TempTable
WHERE (TaskUID = Results.TaskUID)
FOR XML PATH (''))
,1,2,'') AS ResourceNameCombined
FROM #TempTable Results
GROUP BY TaskUID,ProjectUID,ProjectName,TaskName
DROP TABLE #TempTable
-Prashanth -
I have downloaded an updated version of iCloud but cannot get past the Terms and Conditions pages, notwithstanding accepting them. Further, I cannot get back into iTunes.
Since I do not know what you actually did maybe:
http://syncor.blogspot.com/2013/09/ios7-and-missing-agree-button.html
Otherwise:
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Go to Settings>iCloud and delete the account from the iPod and then sign back in.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device. -
User-exit in VA01/VA02 to add order item and condition price
Hi experts,
I have an urgent requirement to add an order item and pricing for VA01/VA02 when certain logic are met. Do you know a user-exit in VA01/VA02 to add sales order item and condition price for an order?
I am currently using user-exit USEREXIT_SAVE_DOCUMENT_PREPARE but I can only add the required order item to xvbap but I also need to add a condition code and condition price for the added item (in xkomv). Your response are very much appreciated.
Thanks in advance!Hi Leo,
Check out few more exits:
Exit Name Description
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
SDAPO001 Activating Sourcing Subitem Quantity Propagation
Reward points if this helps.
Manish -
I am unable to get past the terms and conditions part of the upgrade. I have hit agree several times. What do I do?
Scroll down to the bottom of the terms and conditions, then the Agree button will light up and you can proceed.
-
Get the Current Quarter and Current Week from date
Hi,
I want to get the Current quarter and Current week from a given date, which function modules should i use?
I tried using function module - 'HR_99S_GET_QUARTER' for getting the quarter but it is throwing an error while loading data. Moreover it doesnt exist in BI7.
Similarly for current week.
Please help. Sample code snippets would be appreciated.
Thanks
JayaYou can use FORM time_conversion wich is the one used by standard in Update Rules:
You can select whether convert 0CALDAY to 0CALWEEK or whatever infobject formats you prefer...
perform time_conversion
using '0CALDAY'
'0CALMONTH'
p_input_date
l_fscvtval
changing RESULT
c_t_idocstate
c_subrc
c_abort.
if c_subrc <> 0 or c_abort <> 0.
exit.
endif.
form time_conversion
using i_timnm_from type rsiobjnm
i_timnm_to type rsiobjnm
i_timvl
i_fiscvarnt type t009b-periv
changing e_timvl
c_t_idocstate type rsarr_t_idocstate
c_subrc like sy-subrc
c_abort like sy-subrc. "#EC *
data: l_timvl type rsd_chavl,
l_result type rsd_chavl.
IF i_timvl CO ' 0'.
CLEAR e_timvl.
EXIT.
ENDIF.
l_timvl = i_timvl.
CALL FUNCTION 'RST_TOBJ_TO_DERIVED_TOBJ'
EXPORTING
i_timnm_from = i_timnm_from
i_timnm_to = i_timnm_to
i_timvl = l_timvl
I_FISCVARNT = i_fiscvarnt
I_BUFFER = rs_c_true
IMPORTING
E_TIMVL = l_result
EXCEPTIONS
INCOMPATIBLE_TOBJS = 1
NO_INPUT_VALUE = 2
FISCVARNT_MISSING = 3
INPUT_NOT_NUMERIC = 4
WRONG_DATE = 5
WRONG_FISCPER = 6
X_MESSAGE = 7
OTHERS = 8
e_timvl = l_result.
ENDFORM. "TIME_CONVERSION -
I just tried to upload the new operating system for my I phone 4s , I get to the terms and conditions, when touch "agree" it opens up and I touch agree again and it closes and nothing more happens
Reset and start all over again.
Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
Note: Data will not be affected. -
HT4528 I get texts to myself and double texts from everyone else on my iphone?
When I text I get texts to myself and double texts from everyone else responding to my texts on my iphone? Any suggestions on how to stop this?
Is it text or imessage?
-
How to get G/L account and cost centres from ECC to SRM...
Dear All,
How to get G/L account and cost centres from ECC to SRM...
Please let me know the steps...
Thanks
RaviHi
GL account - You can define in SPRO- Cross application settings--Account assignment ->Define GL account for product category and account assignment category.
or you can use BADI BBP_DETERMINE_ACCT.
In Organisation Strucute - You can Map the backend cost center via KNT cost center attribute .
Regards
Muthu -
Cannot get past the terms and conditions of the icloud thing
i updated my iphone and now i cannot get past the icloud terms and conditions to do any thing else? help please!!!
Since I do not know what you actually did maybe:
http://syncor.blogspot.com/2013/09/ios7-and-missing-agree-button.html
Otherwise:
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Go to Settings>iCloud and delete the account from the iPod and then sign back in.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device. -
How to get Moving Average Prince and Standard Price in BW (inventory cube).
Hi All,
Could anyone please suggest us how to get Moving Avg. Price and Standard Price for 0ic_c03 cube, i had gone through 0CO_PC_ACT_05 and 0CO_PC_ACT_02 datasource but it is not going to solve our purpose.
In SDN i had gone through few links and understood that we have to work on 0MAT_PLANT info object but i hav't not found how to work on this, though i found few SAP notes which are related to MAP. (869892, 819464, 863644).
Probably some one might worked on these MAP and Std. Price, if you could share your work which us that will be a greate help.
Highly appreciated if you share the code and steps how to work on MAP and Std. Price.
Thanks in Advance.
AkashHi,
You need to enhance the Standard DS of Infoobject 0MAT_PLANT and Infoobject 0MAT_PLANT to include these 2 fields.
And you need to enahance the 0IC_C03 cube to include 0MAT_PLANT and need to complete the mapping in all 3 Update rules for this added Infoobject.
<b>And you need to upload the attribute data of 0MAT_PLANT as full upload every day.</b>
In the reports , you need to dependent on Formula varibles with replacement path with standard price an MAP price attributes of 0MAT_PLANT. So if you go with these formula variables with replacement path, you should take 0MAT_PLANT characterstic into rows as a prerequiste.
If you want to avoid this prerequisite, then take a look on How to calculate with attributes values.
Other wise you need to do the calculations at 0MAT_PLANT level by a base query after every upload,and the result should be stored in TODS by APD .And then you can final report with out 0MAT_PLANT in rows upon this ODS.
You can see my contact details in my business card.
With rgds,
Anil Kumar Sharma .P
Message was edited by:
Anil Kumar Sharma -
How to get list of groups and the users from OID
Hi,
Can someone please tell me how to get the list of GROUPS and all the USERS in each group in OID using Java. Need to recursively get all the Groups and Users in each group using Java any samples.
Thanksuse examples from OTN like
http://www.oracle.com/technology/sample_code/products/jdev/readmes/samples/ldapdatacontrol/ldapapplication/src/dc/ldap/model/LDAPSearch.java
and modify it to your needs
Bernhard -
I set up a new Apple TV yesterday and the iCloud Photos worked fine and I could see all my photos. Today it keeps asking me to agree to the terms and conditions, which I do, but it then comes up with the 'connecting' screen and then reverts straight back to the terms and conditions, this keeps happening time and time again. I have tried resetting the Apple TV but that has made absolutely no difference.
See here. Seems to be a country setting issue.
iCloud Photos - Terms & Conditions Loop
Maybe you are looking for
-
Calling a smart form on click of a button in web dynpro abap
Hi experts, I have a requirement like if I click a button in a view i need ti generate a PDF through smart form. Is this possible. If so please tell me the way.. Thanks & Regards
-
Got stuck while installing BAM.
Hi all, I am stuck at the step: DATBASE CONNECT INFORMATION, while installing the BAM. Everytime I try, its giving me error saying that the Installer cannot connect to the database located at parameter #1. Please help me in getting out of this issue.
-
Can't create a tree with mm:treenode tag in DWCS4 Mac
Hi, I try to migrate my extension from Windows to Mac. I create a tree in the floater. In Windows, it display well. But in Mac, it display nothing. Please give me some help. Thanks Window Mac
-
Find Report Name based on Report ID
How do I find out the report name based on the report id ('D12C939B-4309-4364-A025-BFDB5203EE0B')?
-
Registering in the USA store with a German address
How can I Register in the USA istore with a German address?