How to handle custom field using BAPI_PO_Create1
i used to bapi_po_create1 to upload purchase order. in purchase order one custom field in item level warranty.
in CI_EKOPODB . I was send custom data in bapi using EXTENSIONN. BUT I GOT
ERROR PLEASE ENTER VALUE IN WARRANTY AND
Error transferring ExtensionIn data for enhancement CI_EKPODB.
IN A FORUM I GOT ANSWER TO IMPLEMENT BADI ME_BAPI_PO_CUST. BUT I AM NOT KNOW HOW TO IMPLEMENT IT PLEASE GUIDE ME.
PRANESH
Edited by: Praneshom on Mar 31, 2011 11:26 AM
Edited by: Praneshom on Mar 31, 2011 11:28 AM
Moderator message: please do not post in all upper case.
Edited by: Thomas Zloch on Mar 31, 2011 11:48 AM
hi Diwakar.
my warranty field is int4 length 10.
I am already use BAPI_TE_MEPOITEM.
bapi_te_mepoitem-po_item = h_item..
bapi_te_mepoitem-warrenty = '6'.
WRNTY = bapi_te_mepoitem-warrenty.
CONDENSE wrnty.
CONCATENATE bapi_te_mepoitem-po_item WRNTY INTO POIT SEPARATED BY SPACE.
MOVE 'BAPI_TE_MEPOITEM' TO i_extensionin-structure.
MOVE POIT TO i_extensionin-valuepart1.
APPEND i_extensionin.
bapi_te_mepoitemx-po_item = h_item.
bapi_te_mepoitemx-warrenty = 'X'. "<--here the "difference"
CONCATENATE bapi_te_mepoitemx-po_item bapi_te_mepoitemx-warrenty INTO POITX SEPARATED BY SPACE.
MOVE 'BAPI_TE_MEPOITEMX' TO i_extensionin-structure.
MOVE bapi_te_mepoitemx TO i_extensionin-valuepart1.
MOVE POITX TO i_extensionin-valuepart1.
MOVE bapi_te_mepoitemx-warrenty TO i_extensionin-valuepart2.
APPEND i_extensionin.
Please review this code
Thanks
Pranesh
Similar Messages
-
How to handle Custom field added in BP : Role Bill Account
Hi Friends,
I am working on an interface which creates Bill Account role for a BP but the problem is there are about 15 Custom fields added to standard BP transaction in BA role.
As I am using BAPI_BUPA_FS_CREATE_FROM_DATA2 for creating the BP and
BAPI_BUPA_CENTRAL_CHANGE for changing the BP role Bill Account?
Can anyone tell me how to handle those custom fields in the existing BAPIs or there is some other way of doing it?
Thanks in advance,
Pradeep
Note : Helpful answers will be rewarded.Hi,
I have seen these BAPIs but are they used with normal BAPIs for BP creation and change.
For example : I create the BP using BAPI_BUPA_FS_CREATE_FROM_DATA2 and for the Custom fields I should use these BAPIs as suggested by you alongwith the create BAPI.
And will it work for Changing the BP also.
Kindly clarify.
Regards,
Pradeep -
How to get custom field value in vbkd table using "SD_SALESDOCUMENT_CREATE" bapi
Hi Experts,
Need your help . In one program Iam using SD_SALESDOCUMENT_CREATE bapi .
i/p for my report is am excel.
excel is having below formatt.
To create salesdoc we are using SD_SALESDOC_CREATE bapi.
but After execution of the program we are unable to find the ZZFV_SBCNT (which is custom field) in VBKD w.r.t salesdocument.
Need your help what we need to do to reflect the value in vbkd table.
Here temp will contains the data from excel
1)
FORM f_move_header_data .
wg_header-doc_type = wg_temp-auart . "Order type
wg_header-sales_org = wg_temp-vkorg . "Sales Organization
wg_header-distr_chan = wg_temp-vtweg . "Distribution Channel
wg_header-division = wg_temp-spart. "Division
wg_header-sales_off = wg_temp-vkbur . "Sales Office
wg_header-sales_grp = wg_temp-vkgrp . "Sales Group
wg_header-purch_no_c = wg_temp-bstnk . "Customer purchase order number
wg_header-pymt_meth = wg_temp-zlsch . "Payment Method
wg_header-zzychan_role = wg_temp-zzychan_role_i. "Channel Role
wg_header-zzysub_role = wg_temp-zzysub_role . "Submitter Role
wg_header-zzy_inv_for_opt = wg_temp-zzinv_format . "Invoice Format Optio
wg_header-ord_reason = wg_temp-augru . "Order Reason Code
wg_header-bill_block = wg_temp-faksp. "Billing Block
wg_headerx-doc_type = c_set . "Order type
wg_headerx-sales_org = c_set . "Sales Organization
wg_headerx-distr_chan = c_set . "Distribution Channel
wg_headerx-division = c_set. "Division
wg_headerx-sales_off = c_set . "Sales Office
wg_headerx-sales_grp = c_set . "Sales Group
wg_headerx-purch_no_c = c_set . "Customer purchase order number
wg_headerx-pymt_meth = c_set . "Payment Method
wg_headerx-zzychan_role = c_set. "Channel Role
wg_headerx-zzysub_role = c_set . "Submitter Role
wg_headerx-zzy_inv_for_opt = c_set . "Invoice Format Option
wg_headerx-ord_reason = c_set . "Order Reason Code
wg_headerx-bill_block = c_set. "Billing Block
ENDFORM. " F_MOVE_HEADER_DATA
2)
FORM f_move_item_data .
wg_item-itm_number = g_itmnumber. "Item number
wg_item-material = wg_process-matnr . "Material
wg_item-target_qty = wg_process-target_qty. "Targeted Qty
wg_item-item_categ = wg_process-pstyv. "Sales document item category
wg_item-zzylegal_i = wg_process-zzlegal. "Legal Contract
**********Added this line for vbkd-ZZFV_SBCNT****************************
wg_item-zzfv_sbcnt = wg_process-zzfv_sbcnt.
APPEND wg_item TO i_item.
wg_itemx-material = c_set . "Material
wg_itemx-target_qty = c_set. "Targeted Qty
wg_itemx-item_categ = c_set. "Sales document item category
wg_itemx-zzylegal_i = c_set. "Legal Contract
wg_itemx-zzsteady_date = c_set . "Amortization Start Date
wg_itemx-zzsteady_end_dat = c_set. "Amortization Stop Date
**********Added this line for vbkd-ZZFV_SBCNT****************************
wg_itemx-ZZFV_SBCNt = c_set. "
APPEND wg_itemx TO i_itemx.
CLEAR : wg_itemx.
endform.
3)
FORM f_move_head_ext
wg_extension-structure = c_ext_vbak.
wg_ext_vbak-zzinv_format = wg_temp-zzinv_format.
wg_ext_vbak-zzychan_role = wg_temp-zzychan_role_i.
wg_ext_vbak-zzysub_role = wg_temp-zzysub_role.
wg_extension+30 = wg_ext_vbak.
APPEND wg_extension to i_extension.
CLEAR wg_extension.
wg_extensionx-structure = c_ext_vbakx.
wg_ext_vbakx-zzinv_format = c_set.
wg_ext_vbakx-zzlegal = c_set.
wg_ext_vbakx-zzychan_role = c_set.
wg_ext_vbakx-zzysub_role = c_set.
wg_extensionx+30 = wg_ext_vbakx.
APPEND wg_extensionx TO i_extensionx.
CLEAR wg_extensionx.
ENDFORM. " F_MOVE_HEAD_EXT
*& Form F_MOVE_ITEM_EXT
* Item Extension
4)
FORM f_move_item_ext .
* Structure for BAPI parameter Extension
wg_extension-structure = c_ext_vbap.
wg_ext_vbap-posnr = g_itmnumber.
wg_ext_vbap-zzsteady_date = wg_process-zzsteady_date . "Amortization Start Date
wg_ext_vbap-zzsteady_end_dat = wg_process-zzsteady_end_dat. "Amortization Stop Date
wg_ext_vbap-zzlegal = wg_process-zzlegal. "Legal Contract
wg_extension+30 = wg_ext_vbap.
APPEND wg_extension to i_extension.
* Structure for BAPI parameter Extension - Update Indicator Fields
wg_extensionx-structure = c_ext_vbapx.
wg_ext_vbapx-posnr = g_itmnumber.
wg_ext_vbapx-zzsteady_date = c_set .
wg_ext_vbapx-zzsteady_end_dat = c_set.
* wg_ext_vbapx-zzlegal = c_set.
*wg_process-zzfv_sbcnt = c_set.
wg_extensionx+30 = wg_ext_vbapx.
APPEND wg_extensionx TO i_extensionx.
CLEAR wg_extensionx.
and bapi calling is like below.
CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'
EXPORTING
sales_header_in = wg_header
sales_header_inx = wg_headerx
logic_switch = wg_logic_switch
business_object = fp_bus_obj
status_buffer_refresh = 'X'
IMPORTING
salesdocument_ex = g_sorder
TABLES
return = i_return
sales_items_in = i_item
sales_items_inx = i_itemx
sales_partners = i_partner
sales_conditions_in = i_cond
sales_conditions_inx = i_condx
sales_text = i_text
extensionin = i_extension
extensionex = i_extensionx.
still we are not getting ZZFV_SBCNT value in VBKD table w.r.t created salesdoc(g_sorder)
Please help me from this issue.
Thank You..Hi,
Please let me know how to add custom fields in the characteristic list, My clients wants department and profit center grouping.
Please tell me how to solve it..
Thanks & Regards,
Reena.. -
How to register User custom field using PHP?
Hi!
I am looking for a way to share user specific data between connected users. For example, all participants should know each other IDs(our own system IDs, not LCCS).
User's custom fields looks the best solution for this, but I can't find a way to register one using PHP, while creating room.
How to register User's custom field using PHP? Or may be there are better solution to make such things?Got it, just need to add new node to UserManager collection.
const USER_MANAGER_COLLECTION = 'UserManager';
static private $USER_MANAGER_CUSTOM_FIELD_CONFIGURATION = array(
'accessModel'=>self::ROLE_VIEWER,
'publishModel'=>self::ROLE_VIEWER,
'persistItems'=>true,
'modifyAnyItem'=>false,
'userDependentItems'=>true,
'sessionDependentItems'=>false,
'itemStorageScheme'=>self::STORAGE_SCHEME_MANUAL,
'allowPrivateMessages'=>true,
'lazySubscription'=>false,
'p2pDataMessaging'=>false
const USER_INVITE_ID_CUSTOM_FIELD = 'inviteId';
static private function createUserManagerCustomFields($room){
$account = self::init();
$collection = self::USER_MANAGER_COLLECTION;
$account->subscribeCollection($room, $collection);
$account->createNode($room, $collection, self::USER_INVITE_ID_CUSTOM_FIELD, self::$USER_MANAGER_CUSTOM_FIELD_CONFIGURATION); -
How to populate cusotom fields using BAPI_GOODSMVT_CREATE for MIGO
Hi,
I was to update custom field using BAPI_GOODSMVT_CREATE for MIGO and store it is MSEG table.
Please tell me how to proceed.
Moderator message: last warning, if you continue to post the same thread again, I will submit your user ID for deletion. See my comments in your previous posts.
Edited by: Thomas Zloch on Jul 14, 2011 4:38 PMHi ANID,
Thanks for the reply.
I have checked in the documention of the bapi and no communication structure regarding to the bapi is there so i am not able to figure out where to add the custom field so that it can be added in the MKPF table.
Regads
Dipak -
How to Access Custom Event using AS3?
Hi All,
Maybe it's that its Monday morning and my brain is still foggy, but I can't seem to figure out how to set custom events using AS3.
I have a custom GridRow itemRenderer, and have declared the event using the appropriate metatags.
Then I create the GR item dynamically using AS3 instantiation, but the event is not available for selection in the intellisense drop-down.
Let's take the following as an example:
<?xml version="1.0" encoding="utf-8"?>
<mx:Grid
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:renderers="com.brassworks.renderers.*"
creationComplete="componentInit();"
>
<mx:Script>
<![CDATA[
private function componentInit():void
newRow :MyRow = new MyRow();
//newRow.myEvent is not an available option to set
]]>
</mx:Script>
</mx:Grid>
Then the itemRenderer:
<?xml version="1.0" encoding="utf-8"?>
<GridRow
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:classes="com.brassworks.components.classes.*"
creationComplete="componentInit();"
>
<mx:Metadata>
[Event(name="myEvent", type="flash.events.Event")]
</mx:Metadata>
<mx:Script>
<![CDATA[
private function itemChanged(event:Event):void
Alert.show("test");
this.dispatchEvent(new Event("myEvent"));
]]>
</mx:Script>
<mx:GridItem>
<mx:TextInput
change="itemChanged"
/>
</mx:GridItem>
</GridRow>
How do I go about setting the handler method for custom events on instantiated items? Do I need to do this via the AddEventListener() method? Does this mean that events aren't exposed in ActionScript like they are in MXML? (In MXML all I have to do is <MyRow myEvent="handler(event)" />.)
Thanks!
-MikeYes, I you need to do this via the addEventListener() method.
myRow.addEventListener( "myEvent", myHandler );
I hope that helps.
Ben Edwards -
How to handle currency fields in BDC
Hi All,
Please tell me how to handle currency fields in BDC.... If possible give me some sample code...
Thanks in advance,
points will be given,
praveena.Declared it at the Global definitions.
in global data tab and currency/quant fields.
Initialize some value there itself.
Just before the text node create one program lines node,
and that,In the import and export parameters of it give total_amount.
refer to the following link:
http://sap-img.com/abap/figure-to-words-for-india-but-can-be-modified-to-any-requirement.htm
Currency Fields
Reward if useful. -
Error while adding custom fields using EEWB.
Hi
While trying to add custom fields using the transaction EEWB i got an error message
'No Logsys040 transport request exists for system workbench.Please let me know why it happens.
Thanks
sureshpaulclosing this unresolved
-
Using ms project 2007 and vba macro to list all the custom fields used in the project?
Hi,Using ms project 2007 vba macro, I would like to be able to list all the custom fields used in the project and their corresponding field names. e.g. let us say I create a calculated duration field and name it "expected duration" and the name
of the field I select is Duration1.
I am trying to write a macro that will list all the used custom fields such as the result would look like:
Duration1 ---> "expected duration"
Text1 ---> "anything"
Flag1 ---> "....."
Number1 ---> "..............."
Can anyone provide me with the solution?
Regards,
ChuckJohn,
I found this module, which provides the the list of custom fields used in the project but does not provide the name given to the field. Here below is the module and hope you could help me achieve this by modifying the macro to list the renamed field.
' MSP Checks all Custom Task Fields
Sub checkfields2()
'This macro will check and report out which custom task fields are used
'It requires Project 2002 and above as it relies on the GetField
'and FieldNameToFieldConstant methods which were not introduced until
'2002.
'It does not include resource fields, however it is a simple matter to
'do it by replacing the pjTask constant with pjResource.
'Copyright Jack Dahlgren, Oct. 2004
Dim mycheck As Boolean
Dim myType, usedfields As String
Dim t As Task
Dim ts As Tasks
Dim i, it As Integer
Set ts = ActiveProject.Tasks
usedfields = "Custom Fields used in this file" & vbCrLf
myType = "Text"
usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
For i = 1 To 30
mycheck = False
it = 0
While Not mycheck And (it < ts.Count)
it = it + 1
If Not ts(it) Is Nothing Then
If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> "" Then
usedfields = usedfields & myType & CStr(i) & vbCr
mycheck = True
End If
End If
Wend
Next i
myType = "Number"
usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
For i = 1 To 20
mycheck = False
it = 0
While Not mycheck And (it < ts.Count)
it = it + 1
If Not ts(it) Is Nothing Then
If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> 0 Then
usedfields = usedfields & myType & CStr(i) & vbCr
mycheck = True
End If
End If
Wend
Next i
myType = "Duration"
usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
For i = 1 To 10
mycheck = False
it = 0
While Not mycheck And (it < ts.Count)
it = it + 1
If Not ts(it) Is Nothing Then
If Left(ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)), 2) <> "0 " Then
usedfields = usedfields & myType & CStr(i) & vbCr
mycheck = True
End If
End If
Wend
Next i
myType = "Cost"
usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
For i = 1 To 10
mycheck = False
it = 0
While Not mycheck And (it < ts.Count)
it = it + 1
If Not ts(it) Is Nothing Then
If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> 0 Then
usedfields = usedfields & myType & CStr(i) & vbCr
mycheck = True
End If
End If
Wend
Next i
myType = "Start"
usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
For i = 1 To 10
mycheck = False
it = 0
While Not mycheck And (it < ts.Count)
it = it + 1
If Not ts(it) Is Nothing Then
If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> "NA" Then
usedfields = usedfields & myType & CStr(i) & vbCr
mycheck = True
End If
End If
Wend
Next i
myType = "Finish"
usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
For i = 1 To 10
mycheck = False
it = 0
While Not mycheck And (it < ts.Count)
it = it + 1
If Not ts(it) Is Nothing Then
If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> "NA" Then
usedfields = usedfields & myType & CStr(i) & vbCr
mycheck = True
End If
End If
Wend
Next i
MsgBox usedfields
End Sub
This is what the module gives me. But I would like to have beside Text 1 the name that is shown as below. e.g Text1 is "Test".
Would you mind helping me achieve this?
Thanks in advance.
Chuck -
How reset Acrobat form field using javascript API
How reset Acrobat form field using javascript API
There are several ways:
resetForm(["Text1"]);
or
getField("Text1").value = getField("Text1").defaultValue;
George -
Customize Approval Form to add custom fields using SharePoint Designer
Hi,
i have a created a Custom approval workflow using SharePoint Designer 2010. This is two steps approval WF, All i did put the variable "CancelonRejection" Value "Yes" and one Approval action with 2 different users as Serial. Right now
Status, Requested by, Consolidated comments and comment fields are available on the approval form. Now i want to add some fields with radio buttons on Approval Form, so that 1st approver can select those radio/check box. Once 1st approver will approved this
then display all the values on 2nd approver approval from or send email to 2nd approver along with all the information from 1st approver.
Thanks in advanced!Hi,
According to your post, my understanding is that you wanted to customize Approval Form to add custom fields using SharePoint Designer.
In the SharePoint Designer, you can customize the task form.
Here is a great article for your reference:
Creating Custom Workflow Task Approval Forms with SharePoint Designer 2010
However, every task can only have one task form.
That is to say, the two approvors will have the same task form.
As a workaround, I recommend to customzie the task form using InfoPath.
You can create different view for the approvors.
You need to add form load rules to swich views based on the approvors.
More information:
Using Multiple Views in Customized List Forms
Add, delete, and switch views (pages) in a form - InfoPath
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
How to protect custom applications using oracle access manager?
Can someone brief me on how to protect custom applications using oracle access manager?
Is the Custom application a Web Application running on certified platform? If its Web Application then its no different you have to configure the access policies with http(s) as resource type.
If its not a web application you can write Custom access Gate and then implement. You would configure the policies similar to Web application (you can define your ouwn resource type if you like) and in the custom web gate you will use Access server SDK API to validate the access rules.
Thanks
Ram -
How to handle Asynchronous calls using OSB?
Hi There,
How to handle Asynchronous calls using OSB?
Please help me out??
-VenkatHello friend, here is what you need.
Oracle Service Bus, invoke asynchronous webservices | Oracle .. Java .. OpenSource .. SOA -
How to map customer field to standard field using BAPI_PO_CREATE1 ?
Hi,
i am trying to transfer a customer field from SRM to ECC60 through BAPI_PO_CREATE1;
In SRM the EAN field does not exist; Thus we have created it.
While transfering the PO to ECC, we try tu use BBP_PO_INBOUND_BADI to map the SRM field to the EAN11 field in EKPO.
However, we do not find the EAN11 field in the BAPIPOITEM structure.
Steps already done :
BBP_CUFMAP
How do we map a customer field coming from an external system to an ECC standard field ?
Kind regards,
Yanninterface name is: SalesOrderCreateRequestConfirmation_In
have a look at this link to get some more details:
http://help.sap.com/esoa_erp2005/helpdata/en/44/62e384e370311de10000000a155369/frameset.htm
is that what you need? -
How to Import Custom Scale using Field Piont I/O
I need to READ a 0 to 100 Newton strain gauge on graph chart.
It is a full bridge with an excitation Voltage of 10V. The field point Input module FP-SG-140 is configured for a range of -3.9... to +3.9 mV/V
I know how to create a custom scale using DAQ assist but the option does not appear using Field Point.Hello belangem,
Have you considered using the Scaling and Mapping Express VI or programming your own scaling algorithm in LabVIEW to manually convert the strain readings to force? The Scaling and Mapping Express VI allows you to apply similar types of scales to the DAQ Assistant, such as linear, logarithmic, interpolated from a table of points, etc.
If you really need the Fieldpoint driver to perform the scaling for you, some Fieldpoint modules support scaling. You can configure a scale on a channel in Measurement & Automation Explorer (MAX) by going to your Fieldpoint Items under Data Neighborhood, selecting a channel in your module, and click on the Scaling tab on the bottom of the screen. Unfortunately, I don't have a FP-SG-140 module around to try out, but I know the scaling feature is available for my FP-AI-110. I'm using Fieldpoint 5.0 with MAX 4.0.
I hope this helps,
Travis G.
Applications Engineering
National Instruments
www.ni.com/support
Message Edited by Travis G. on 06-22-2006 10:21 PM
Attachments:
FieldpointScales.Jpg 46 KB
Maybe you are looking for
-
Need to send a mail from a specific From mail ID thorgh specific Mail serve
Hi, If any errors occured in my interface validation program(plsql) I need to send mail to some mail ids, But I need to use specific from mail id and mail server. I have no idea of Shell scripting, I tried it with plsql itself but not worked. My Appl
-
First Timer Need Help using Java Web Start
The following Error Message was thrown when I tried to launch an app using Java Web Start... An error occurred while launching/running the application. Title: Swing Application - Hello World Vendor: Ramanujam Category: D
-
Unit Test Validation for Output Ref Cursor Not Working
Here is the problem: I have a stored procedure as follows: CREATE OR REPLACE PROCEDURE usp_GetEmployee( p_employeeId IN NUMBER, cv_employee OUT Sys_RefCursor ) AS BEGIN OPEN cv_employee FOR SELECT * FROM employees WHERE employee_id=p_employeeid; END
-
Help finding benchmarks for current iMac variations
Hello all, I am trying to find some benchmarks to compare the various choices in the current iMac lineup. Specifically I am interested in the 20" iMac and would love to know how much of a performance jump the 2600pro provides over the 2400xt, since t
-
Hi, I'm re-installing Leopard on my MacBook Pro from zero. Got a backup on an external HD. Need to know where the: - info regarding smtp servers is stored - had 22 different smtp settings for several locations (filename/extension) - info regarding Ma