Reg: Issue in BAPI_PO_CREATE1
hi,
i created a screen and made it as mandatory in me21n and its working fine. My problem is, when i use BAPI_PO_CREATE1, those fields are not there and throwing error msg. Can i append those field in the BAPI? If i do so, will it required any coding to be written inside BAPI to update those values ?
please help.
Thanks in advance,
aswin.
hi,
maybe try this:
1. switch off mandatory z-field via BADI ME_PROCESS_PO_CUST during process your BAPI_PO_CREATE1
2.after create PO via BAPI update "manually" by z-program
your z-fields...
best regards,darek
Similar Messages
-
Issue in BAPI_PO_CREATE1 in extension structure while populting data
Hi,
Getting issue when populating data in custome field through bapi_po_create1.
Requiredment
Need to populate different different shipment type number in every line item ,but when i am using below code it only populating
last shipment type number in every line item while creation of STO.
Please see the below code for populating data in custome field
CLEAR wa_extensionin.
MOVE 'BAPI_TE_MEPOITEM' TO wa_extensionin-structure.
wa_bapi_te_mepoitem-po_item = wa_itab-item.
* wa_bapi_te_mepoitem-zdummy = c_x.
wa_bapi_te_mepoitem-zvsart = wa_itab-shp_type.
CONCATENATE wa_bapi_te_mepoitem-po_item
'X00000000000000000000000000000' wa_bapi_te_mepoitem-zvsart
INTO wa_extensionin-valuepart1.
APPEND wa_extensionin TO ltab_extensionin.
CLEAR wa_extensionin.
MOVE 'BAPI_TE_MEPOITEMX' TO wa_extensionin-structure.
wa_bapi_te_mepoitemx-po_item = wa_itab-item.
wa_bapi_te_mepoitemx-zvsart = 'X'.
CONCATENATE wa_bapi_te_mepoitemx-po_item
'0000000000' wa_bapi_te_mepoitem-zvsart
INTO wa_extensionin-valuepart1.
APPEND wa_extensionin TO ltab_extensionin.
please some one help me how to solve it.
Regards,
SibaTry with this piece of code:
DATA:
wa_bapi_te_mepoitem LIKE bapi_te_mepoitem,
wa_bapi_te_mepoitemX LIKE bapi_te_mepoitemx.
wa_bapi_te_mepoitem-po_item = wa_itab-item.
wa_bapi_te_mepoitem-zvsart = wa_itab-shp_type
wa_extensionin-structure = 'BAPI_TE_MEPOITEM'.
wa_extensionin-valuepart1 = wa_bapi_te_mepoitem.
APPEND wa_extensionin TO ltab_extensionin.
wa_bapi_te_mepoitemX-po_item = wa_itab-item.
wa_bapi_te_mepoitemX-zvsart = 'X'
wa_extensionin-structure = 'BAPI_TE_MEPOITEMX'.
wa_extensionin-valuepart1 = wa_bapi_te_mepoitemX.
APPEND wa_extensionin TO ltab_extensionin.
Regards,
Felipe -
Reg : Issue for Sending of external email using SO_OBJECT_SEND
There is one issue while sending external email using SO_OBJECT_SEND functional module.
1. The body of the mail is also included as attachment.
I want to avoid the same.
Please anyone can give the solution.hi check this example ,
Sending mail with attachment report in Background
Content Author: Fernando Faian
I have read the hint about "Sending mail with attachment report".
It's great, but how can I make this function work in background??
I had that needed last year too. See attachment a function group with two functions. The second one has that functionality to send email or fax (SAP office) with attachment objects in background job using SO_ATTACHMENT_INSERT function.
Pay attention because its working with output list from spool converted to pdf.
=================================================================================
z_send_email_fax_global
FUNCTION-POOL z_gfaian_mail_fax. "MESSAGE-ID ..
WORK TABLE AREAS
TABLES: tsp01.
INTERNAL TABLES
DATA: lt_rec_tab LIKE STANDARD TABLE OF soos1 WITH HEADER LINE,
lt_note_text LIKE STANDARD TABLE OF soli WITH HEADER LINE,
lt_attachments LIKE STANDARD TABLE OF sood5 WITH HEADER LINE.
DATA: lt_objcont LIKE STANDARD TABLE OF soli WITH HEADER LINE,
lt_objhead LIKE STANDARD TABLE OF soli WITH HEADER LINE.
DATA: pdf_format LIKE STANDARD TABLE OF tline WITH HEADER LINE.
TYPES: BEGIN OF y_files,
file(60) TYPE c,
END OF y_files.
DATA: lt_files TYPE STANDARD TABLE OF y_files WITH HEADER LINE.
DATA: l_objcont LIKE soli OCCURS 0 WITH HEADER LINE.
DATA: l_objhead LIKE soli OCCURS 0 WITH HEADER LINE.
STRUCTURES
DATA: folder_id LIKE soodk,
object_id LIKE soodk,
link_folder_id LIKE soodk,
g_document LIKE sood4,
g_header_data LIKE sood2,
g_folmem_data LIKE sofm2,
g_header_data LIKE sood2,
g_receive_data LIKE soos6,
g_ref_document LIKE sood4,
g_new_parent LIKE soodk,
l_folder_id LIKE sofdk,
v_email(50).
DATA: hd_dat like sood1.
VARIABLES
DATA: client LIKE tst01-dclient,
name LIKE tst01-dname,
objtype LIKE rststype-type,
type LIKE rststype-type.
DATA: numbytes TYPE i,
arc_idx LIKE toa_dara,
pdfspoolid LIKE tsp01-rqident,
jobname LIKE tbtcjob-jobname,
jobcount LIKE tbtcjob-jobcount,
is_otf.
DATA: outbox_flag LIKE sonv-flag VALUE 'X',
store_flag LIKE sonv-flag,
delete_flag LIKE sonv-flag,
owner LIKE soud-usrnam,
on LIKE sonv-flag VALUE 'X',
sent_to_all LIKE sonv-flag,
g_authority LIKE sofa-usracc,
w_objdes LIKE sood4-objdes.
DATA: c_file LIKE rlgrap-filename,
n_spool(6) TYPE n.
DATA: cancel.
DATA: desired_type LIKE sood-objtp,
real_type LIKE sood-objtp,
attach_type LIKE sood-objtp,
otf LIKE sood-objtp VALUE 'OTF', " SAPscript Ausgabeformat
ali LIKE sood-objtp VALUE 'ALI'. " ABAP lists
CONSTANTS
CONSTANTS: ou_fol LIKE sofh-folrg VALUE 'O',
c_objtp LIKE g_document-objtp VALUE 'RAW',
c_file_ext LIKE g_document-file_ext VALUE 'TXT'.
=================================================================================
z_send_email_fax2
FUNCTION z_faian_mail_fax2.
""Interface local:
*" IMPORTING
*" REFERENCE(SRC_SPOOLID) LIKE TSP01-RQIDENT
*" REFERENCE(FAX_MAIL_NUMBER) TYPE SO_NAME
*" REFERENCE(HEADER_MAIL) TYPE SO_OBJ_DES
*" REFERENCE(OBJECT_TYPE) TYPE SO_ESCAPE
*" TABLES
*" LT_BODY_EMAIL STRUCTURE SOLI
*" EXCEPTIONS
*" ERR_NO_ABAP_SPOOLJOB
Fist part: Verify if the spool really exists
SELECT SINGLE * FROM tsp01 WHERE rqident = src_spoolid.
IF sy-subrc NE 0.
RAISE err_no_abap_spooljob. "doesn't exist
ELSE.
client = tsp01-rqclient.
name = tsp01-rqo1name.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
authority = 'SP01'
client = client
name = name
part = 1
IMPORTING
type = type
objtype = objtype
EXCEPTIONS
fb_error = 1
fb_rsts_other = 2
no_object = 3
no_permission = 4
OTHERS = 5.
IF objtype(3) = 'OTF'.
desired_type = otf.
ELSE.
desired_type = ali.
ENDIF.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = src_spoolid
desired_type = desired_type
IMPORTING
real_type = real_type
TABLES
buffer = l_objcont
EXCEPTIONS
no_such_job = 14
type_no_match = 94
job_contains_no_data = 54
no_permission = 21
can_not_access = 21
read_error = 54.
IF sy-subrc EQ 0.
attach_type = real_type.
ENDIF.
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
owner = sy-uname
region = ou_fol
IMPORTING
folder_id = l_folder_id
EXCEPTIONS
OTHERS = 5.
fill out informations about the header of the email
CLEAR: g_document.
g_document-foltp = l_folder_id-foltp.
g_document-folyr = l_folder_id-folyr.
g_document-folno = l_folder_id-folno.
g_document-objtp = c_objtp.
g_document-objdes = header_mail.
g_document-file_ext = c_file_ext.
g_header_data-objdes = header_mail.
CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
EXPORTING
method = 'SAVE'
office_user = sy-uname
IMPORTING
authority = g_authority
TABLES
objcont = lt_body_email
attachments = lt_attachments
CHANGING
document = g_document
header_data = g_header_data
EXCEPTIONS
OTHERS = 1.
folder_id-objtp = l_folder_id-foltp.
folder_id-objyr = l_folder_id-folyr.
folder_id-objno = l_folder_id-folno.
object_id-objtp = c_objtp.
object_id-objyr = g_document-objyr.
object_id-objno = g_document-objno.
link_folder_id-objtp = l_folder_id-foltp.
link_folder_id-objyr = l_folder_id-folyr.
link_folder_id-objno = l_folder_id-folno.
REFRESH lt_rec_tab.
CLEAR lt_rec_tab.
lt_rec_tab-sel = 'X'.
lt_rec_tab-recesc = object_type. "This field for FAX/MAIL
lt_rec_tab-recnam = 'U-'.
lt_rec_tab-deliver = 'X'.
lt_rec_tab-not_deli = 'X'.
lt_rec_tab-read = 'X'.
lt_rec_tab-mailstatus = 'E'.
lt_rec_tab-adr_name = fax_mail_number.
lt_rec_tab-sortfield = fax_mail_number.
lt_rec_tab-recextnam = fax_mail_number.
lt_rec_tab-sortclass = '5'.
APPEND lt_rec_tab.
lt_rec_tab-recextnam = fax_mail_number.
lt_rec_tab-recesc = object_type.
lt_rec_tab-sndart = 'INT'.
lt_rec_tab-sndpri = 1.
APPEND lt_rec_tab.
lt_files-file = c_file.
APPEND lt_files.
begin of insertion by faianf01
hd_dat-objdes = header_mail.
CALL FUNCTION 'SO_ATTACHMENT_INSERT'
EXPORTING
object_id = object_id
attach_type = attach_type
object_hd_change = hd_dat
owner = sy-uname
TABLES
objcont = l_objcont
objhead = l_objhead
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
object_type_not_exist = 17
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
x_error = 1000.
IF sy-subrc > 0.
ENDIF.
end of insertion by faianf01
send email from SAPOFFICE
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
folder_id = folder_id
object_id = object_id
outbox_flag = outbox_flag
link_folder_id = link_folder_id
owner = sy-uname
check_send_authority = 'X'
TABLES
receivers = lt_rec_tab
note_text = lt_note_text
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
component_not_available = 1
folder_no_authorization = 5
folder_not_exist = 6
forwarder_not_exist = 8
object_no_authorization = 13
object_not_exist = 14
object_not_sent = 15
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
too_much_receivers = 73
user_not_exist = 35.
ENDIF.
ENDFUNCTION.
=================================================================================
z_send_email_fax
FUNCTION ZCBFS_SEND_MAIL.
""Interface local:
*" IMPORTING
*" REFERENCE(SRC_SPOOLID) LIKE TSP01-RQIDENT
*" REFERENCE(HEADER_MAIL) TYPE SO_OBJ_DES
*" TABLES
*" LIST_FAX_MAIL_NUMBER STRUCTURE SOLI
*" EXCEPTIONS
*" ERR_NO_ABAP_SPOOLJOB
DATA: vg_achou(1) TYPE n.
Fist part: Verify if the spool really exists
vg_achou = 1.
DO 60 TIMES.
SELECT SINGLE * FROM tsp01 WHERE rqident = src_spoolid.
IF sy-subrc IS INITIAL.
CLEAR vg_achou.
EXIT.
ELSE.
WAIT UP TO 1 SECONDS.
ENDIF.
ENDDO.
IF vg_achou = 1.
RAISE err_no_abap_spooljob. "doesn't exist
ENDIF.
client = tsp01-rqclient.
name = tsp01-rqo1name.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
authority = 'SP01'
client = client
name = name
part = 1
IMPORTING
type = type
objtype = objtype
EXCEPTIONS
fb_error = 1
fb_rsts_other = 2
no_object = 3
no_permission = 4
OTHERS = 5.
IF objtype(3) = 'OTF'.
desired_type = otf.
ELSE.
desired_type = ali.
ENDIF.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = src_spoolid
desired_type = desired_type
IMPORTING
real_type = real_type
TABLES
buffer = l_objcont
EXCEPTIONS
no_such_job = 14
type_no_match = 94
job_contains_no_data = 54
no_permission = 21
can_not_access = 21
read_error = 54.
IF sy-subrc EQ 0.
attach_type = real_type.
ENDIF.
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
owner = sy-uname
region = ou_fol
IMPORTING
folder_id = l_folder_id
EXCEPTIONS
OTHERS = 5.
fill out informations about the header of the email
CLEAR: g_document.
g_document-foltp = l_folder_id-foltp.
g_document-folyr = l_folder_id-folyr.
g_document-folno = l_folder_id-folno.
g_document-objtp = c_objtp.
g_document-objdes = header_mail.
g_document-file_ext = c_file_ext.
g_header_data-objdes = header_mail.
CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
EXPORTING
method = 'SAVE'
office_user = sy-uname
IMPORTING
authority = g_authority
TABLES
attachments = lt_attachments
CHANGING
document = g_document
header_data = g_header_data
EXCEPTIONS
OTHERS = 1.
folder_id-objtp = l_folder_id-foltp.
folder_id-objyr = l_folder_id-folyr.
folder_id-objno = l_folder_id-folno.
object_id-objtp = c_objtp.
object_id-objyr = g_document-objyr.
object_id-objno = g_document-objno.
link_folder_id-objtp = l_folder_id-foltp.
link_folder_id-objyr = l_folder_id-folyr.
link_folder_id-objno = l_folder_id-folno.
REFRESH lt_rec_tab.
LOOP AT LIST_FAX_MAIL_NUMBER.
lt_rec_tab-recextnam = LIST_FAX_MAIL_NUMBER-LINE.
lt_rec_tab-recesc = 'U'.
lt_rec_tab-sndart = 'INT'.
lt_rec_tab-sndpri = 1.
APPEND lt_rec_tab.
ENDLOOP.
lt_files-file = c_file.
APPEND lt_files.
hd_dat-objdes = header_mail.
CALL FUNCTION 'SO_ATTACHMENT_INSERT'
EXPORTING
object_id = object_id
attach_type = attach_type
object_hd_change = hd_dat
owner = sy-uname
TABLES
objcont = l_objcont
objhead = l_objhead
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
object_type_not_exist = 17
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
x_error = 1000.
IF sy-subrc > 0.
ENDIF.
send email from SAPOFFICE
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
folder_id = folder_id
object_id = object_id
outbox_flag = outbox_flag
link_folder_id = link_folder_id
owner = sy-uname
TABLES
receivers = lt_rec_tab
note_text = lt_note_text
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
component_not_available = 1
folder_no_authorization = 5
folder_not_exist = 6
forwarder_not_exist = 8
object_no_authorization = 13
object_not_exist = 14
object_not_sent = 15
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
too_much_receivers = 73
user_not_exist = 35.
ENDFUNCTION.
=================================================================================
regards,
venkat. -
Multiple Account Assignment issue with BAPI_PO_CREATE1 for service POs
Whle creating service PO through BAPI_PO_CREATE1, The account assignments at the service line items were not being added correctly at the item level, instead they are getting split further wrt tax jurisdiction. This is occuring when an item have multiple service line items with mutltiple account assignments.
The sample code is below, and the all the internal tables and structure were related to BAPI_PO_CREATE1. Tried with BADI ME_TAX_FROM_ADDRESS and User Exit enhancement SAPL2012, which were not helpful for this particular scenario.
Item Details
W_BAPI_ITEM-PO_ITEM = 1.
W_BAPI_ITEMX-PO_ITEM = 1.
W_BAPI_ITEM-ITEM_CAT = D.
W_BAPI_ITEMX-ITEM_CAT = 'X'.
W_BAPI_ITEM-ACCTASSCAT = K.
W_BAPI_ITEMX-ACCTASSCAT = 'X'.
W_BAPI_ITEM-PLANT = USMP. Tax Jurisdiction code 3604931001
W_BAPI_ITEMX-PLANT = 'X'.
W_BAPI_ITEM-MATL_GROUP = IT37.
W_BAPI_ITEMX-MATL_GROUP = 'X'.
W_BAPI_ITEM-QUANTITY = 1.
W_BAPI_ITEMX-QUANTITY = 'X'.
W_BAPI_ITEM-PRICE_UNIT = 1.
W_BAPI_ITEMX-PRICE_UNIT = 'X'.
W_BAPI_ITEM-PO_UNIT = LE.
W_BAPI_ITEMX-PO_UNIT = 'X'.
W_BAPI_ITEM-NET_PRICE = 100.
W_BAPI_ITEMX-NET_PRICE = 'X'.
W_BAPI_ITEM-PCKG_NO = 3456.
W_BAPI_ITEMX-PCKG_NO = 'X'.
W_BAPI_ITEM-PREQ_NAME = RTPTS02.
W_BAPI_ITEMX-PREQ_NAME = 'X'.
APPEND W_BAPI_ITEM TO IT_BAPI_ITEM.
APPEND W_BAPI_ITEMX TO IT_BAPI_ITEMX.
Delivery address details - Tax Jurisdiction 3305923401
W_BAPI_ADDRDEL-PO_ITEM = 1.
W_BAPI_ADDRDEL-NAME = COR.
W_BAPI_ADDRDEL-NAME_2 = Chairman.
W_BAPI_ADDRDEL-BUILD_LONG = 1001R
W_BAPI_ADDRDEL-CITY = plainview.
W_BAPI_ADDRDEL-STREET = old country road.
W_BAPI_ADDRDEL-POSTL_COD1 = 11803.
W_BAPI_ADDRDEL-COUNTRY = US.
W_BAPI_ADDRDEL-REGION = NY.
APPEND W_BAPI_ADDRDEL TO IT_BAPI_ADDRDEL.
First Account Assignment - 3310300441
W_BAPI_POACNT-SERIAL_NO = 1.
W_BAPI_POACNTX-SERIAL_NO = 1.
W_BAPI_POACNTX-SERIAL_NOX = 'X'.
W_BAPI_POACNT-CREAT_DATE = 11/03/2010.
W_BAPI_POACNTX-CREAT_DATE = 'X'.
W_BAPI_POACNT-QUANTITY = 0.75.
W_BAPI_POACNTX-QUANTITY = 'X'.
W_BAPI_POACNT-DISTR_PERC = 75.
W_BAPI_POACNTX-DISTR_PERC = 'X'.
W_BAPI_POACNT-NET_VALUE = 75 .
W_BAPI_POACNTX-NET_VALUE = 'X'.
W_BAPI_POACNT-PO_ITEM = 1.
W_BAPI_POACNTX-PO_ITEM = 1.
W_BAPI_POACNTX-PO_ITEMX = 'X'.
W_BAPI_POACNT-GL_ACCOUNT = 641099.
W_BAPI_POACNTX-GL_ACCOUNT = 'X'.
W_BAPI_POACNT-COSTCENTER = 10010394.
W_BAPI_POACNTX-COSTCENTER = 'X'.
W_BAPI_POACNT-CO_AREA = 1234.
W_BAPI_POACNTX-CO_AREA = 'X'.
APPEND W_BAPI_POACNT TO IT_BAPI_POACNT.
APPEND W_BAPI_POACNTX TO IT_BAPI_POACNTX.
Second Account Assignment
W_BAPI_POACNT-SERIAL_NO = 2.
W_BAPI_POACNTX-SERIAL_NO = 2.
W_BAPI_POACNTX-SERIAL_NOX = 'X'.
W_BAPI_POACNT-CREAT_DATE = 11/03/2010.
W_BAPI_POACNTX-CREAT_DATE = 'X'.
W_BAPI_POACNT-QUANTITY = 0.25.
W_BAPI_POACNTX-QUANTITY = 'X'.
W_BAPI_POACNT-DISTR_PERC = 25.
W_BAPI_POACNTX-DISTR_PERC = 'X'.
W_BAPI_POACNT-NET_VALUE = 25 .
W_BAPI_POACNTX-NET_VALUE = 'X'.
W_BAPI_POACNT-PO_ITEM = 1.
W_BAPI_POACNTX-PO_ITEM = 1.
W_BAPI_POACNTX-PO_ITEMX = 'X'.
W_BAPI_POACNT-GL_ACCOUNT = 641099.
W_BAPI_POACNTX-GL_ACCOUNT = 'X'.
W_BAPI_POACNT-COSTCENTER = 10010393.
W_BAPI_POACNTX-COSTCENTER = 'X'.
W_BAPI_POACNT-CO_AREA = 1234.
W_BAPI_POACNTX-CO_AREA = 'X'.
APPEND W_BAPI_POACNT TO IT_BAPI_POACNT.
APPEND W_BAPI_POACNTX TO IT_BAPI_POACNTX.
Service Item detials
W_BAPI_SERVICE-OUTL_IND = 'X'.
W_BAPI_SERVICE-SUBPCKG_NO = 3457.
W_BAPI_SERVICE-LINE_NO = 1.
W_BAPI_SERVICE-PCKG_NO = 3456.
W_BAPI_SERVICE-EXT_LINE = 0000000000.
W_BAPI_SERVICE-QUANTITY = 0.
W_BAPI_SERVICE-BASE_UOM = 0.
W_BAPI_SERVICE-PRICE_UNIT = 0.
W_BAPI_SERVICE-GR_PRICE = 0.
W_BAPI_SERVICE-SHORT_TEXT = 0.
W_BAPI_SERVICE-MATL_GROUP = 0.
W_BAPI_SERVICE-DISTRIB = 0.
APPEND W_BAPI_SERVICE TO IT_BAPI_SERVICE.
W_BAPI_SERVICE-OUTL_IND = 'X'.
W_BAPI_SERVICE-LINE_NO = 2.
W_BAPI_SERVICE-PCKG_NO = 3457.
W_BAPI_SERVICE-EXT_LINE = 0000000010.
W_BAPI_SERVICE-QUANTITY = 10.
W_BAPI_SERVICE-BASE_UOM = STD.
W_BAPI_SERVICE-PRICE_UNIT = 0.
W_BAPI_SERVICE-GR_PRICE = 5.
W_BAPI_SERVICE-SHORT_TEXT = Cabling Services1.
W_BAPI_SERVICE-MATL_GROUP = IT37.
W_BAPI_SERVICE-DISTRIB = 2.
APPEND W_BAPI_SERVICE TO IT_BAPI_SERVICE.
W_BAPI_SERVICE-OUTL_IND = 'X'.
W_BAPI_SERVICE-LINE_NO = 3.
W_BAPI_SERVICE-PCKG_NO = 3457.
W_BAPI_SERVICE-EXT_LINE = 0000000020.
W_BAPI_SERVICE-QUANTITY = 10.
W_BAPI_SERVICE-BASE_UOM = STD.
W_BAPI_SERVICE-PRICE_UNIT = 0.
W_BAPI_SERVICE-GR_PRICE = 5.
W_BAPI_SERVICE-SHORT_TEXT = Cabling Services2.
W_BAPI_SERVICE-MATL_GROUP = IT37.
W_BAPI_SERVICE-DISTRIB = 2.
APPEND W_BAPI_SERVICE TO IT_BAPI_SERVICE.
Service Account assignment details
W_ACC_SERVICE-PCKG_NO = 3457.
W_ACC_SERVICE-LINE_NO = 2.
W_ACC_SERVICE-SERNO_LINE = 1.
W_ACC_SERVICE-SERIAL_NO = 1. "Account Assignment Link
W_ACC_SERVICE-NET_VALUE = .
W_ACC_SERVICE-QUANTITY = 50 .
W_ACC_SERVICE-PERCENTAGE = 100 .
APPEND W_ACC_SERVICE TO IT_ACC_SERVICE.
W_ACC_SERVICE-PCKG_NO = 3457.
W_ACC_SERVICE-LINE_NO = 3.
W_ACC_SERVICE-SERNO_LINE = 1.
W_ACC_SERVICE-SERIAL_NO = 1. "Account Assignment Link
W_ACC_SERVICE-NET_VALUE = .
W_ACC_SERVICE-QUANTITY = 50 .
W_ACC_SERVICE-PERCENTAGE = 50 .
APPEND W_ACC_SERVICE TO IT_ACC_SERVICE.
W_ACC_SERVICE-PCKG_NO = 3457.
W_ACC_SERVICE-LINE_NO = 3.
W_ACC_SERVICE-SERNO_LINE = 1.
W_ACC_SERVICE-SERIAL_NO = 2. "Account Assignment Link
W_ACC_SERVICE-NET_VALUE = .
W_ACC_SERVICE-QUANTITY = 50 .
W_ACC_SERVICE-PERCENTAGE = 50 .
APPEND W_ACC_SERVICE TO IT_ACC_SERVICE.
EKKN table entries:
When created thru ME21N with the same set of data,which is expected
ZEKKN MENGE NETWR SAKTO KOSTL
01 0.750 75.00 0000641099 0010010394
02 0.250 25.00 0000641099 0010010393
But through BAPI_PO_CREATE1, the below split is being done with respect to Tax Jurisdiction code.
01 0.500 50.00 0000641099 0010010394
02 0.250 25.00 0000641099 0010010394
03 0.250 25.00 0000641099 0010010393
Please advice the solution.
PS: there were different tax jurisdiction codes were being determined.
Plant, Cost Center and Delivery Address.Hi,
To commit BAPI or to run it properly , you need to fulfill all required data for BAPI.
You can go to BAPI documentation to check for mandetory parameters and also check with Function consultant for more data and confifuration/
Reward if useful! -
Folks,
DB=10.2.0.4 two node RAC
apps=11.5.10.2
OS=rhel 4....
cloning to
OS=rhel5 and RAC to non RAC cloning ..
after cloning facing below issue ... not autconfig not successfull..
+++++++++++++++
SQL> conn apps
Enter password:
ERROR:
ORA-00600: internal error code, arguments: [skkxerrp], [skkxdllload],
[SlfFopen],
[/s04/s04/prd1/db/10.2.0/plsql/nativelib/d37/DBMS_APPLICATION_INFO__SYS__B__3323
.so], [No such file or directory], [], [], []
ORA-06508: PL/SQL: could not find program unit being called:
"SYS.DBMS_APPLICATION_INFO"
ORA-06512: at line 1
Error accessing package DBMS_APPLICATION_INFO
Connected.
++++++++++++++++
for all the user and same error appears in autconfig log also ..p
pls adviseafter cloning facing below issue ... not autconfig not successfull..How did you clone the application/database?
SQL> conn apps
Enter password:
ERROR:
ORA-00600: internal error code, arguments: [skkxerrp], [skkxdllload],
[SlfFopen],
[/s04/s04/prd1/db/10.2.0/plsql/nativelib/d37/DBMS_APPLICATION_INFO__SYS__B__3323
.so], [No such file or directory], [], [], []
ORA-06508: PL/SQL: could not find program unit being called:
"SYS.DBMS_APPLICATION_INFO"
ORA-06512: at line 1
Error accessing package DBMS_APPLICATION_INFO
Connected.
++++++++++++++++
for all the user and same error appears in autconfig log also ..pWhat is the status of this package? Is it valid?
What are the values of "plsql_code_type" and "plsql_native_library_dir" initialization parameters? -- Database Initialization Parameters for Oracle Applications Release 11i [ID 216205.1]
ORA-600 [skkxerrp] [ID 300640.1]
ORA-600/ORA-7445/ORA-700 Error Look-up Tool [ID 153788.1]
Master Note for Diagnosing ORA-600 [ID 1092832.1]
Thanks,
Hussein -
Reg: Issue adding remote Instances in Br tools Studio.....
Hai,
Br tools studio is Installed successfully and able to login to the server, but when trying to add remote Instance it ends up with the below NullPointerException.
We have used ocj4 according to the SAP Note 1224432, also not using https (as per [SAP] First experience with SAP BR*Tools Studio for Oracle)
Please let me know is there any work around possible.
java.lang.NullPointerException at frames.server._landscape._instances._create._edit_2d_001._frame_2d_000._jspService(_frame_2d_000.java:59) [SRC:/frames/server/landscape/instances/create/edit-001/frame-000.jsp:19] at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:810)
Regards,
Yoganand.V
Edited by: Yoganand Vedagiri on Dec 30, 2008 1:30 PM
Edited by: Yoganand Vedagiri on Dec 30, 2008 1:33 PMHi,
To avoid this error, Just install JDK 6.0 and OC4J 9.0.4.1.0
Try accessing thru web.
If you get an error on accessing javac.exe file, then do the following changes...
go to the home directory of brtools studio, --> config ---> Edit the file server.xml
add this line as per below, save and then try to access thru web.
<global-application name="global" path="application.xml"/>
*<java-compiler name="javac" bindir="<JAVA_HOME>\jdk1.6.0\bin"/> *
<global-web-app-config path="global-web-application.xml"/>
This should solve your problem.
Let me know if you have any issue.
Regards,
Iyyappan MR -
Reg: issue raises while add the record in pp01
Hi experts,
This is Prasanna. i have created customized relationship as "HAS TALENTED PARTICIPANT" and evaluation path as "AZTI".i have assined this relationship between two object types that are D(course type) and P(person). In PP01 transaction i tried to save the record using this relationship.but there i am getting one issue that is showing below
"ERROR WHILE ADDING".
my evaluation path and relation ship showed successfully in ALLOWED RELATIONSHIP option.please help me to rectify this issue.
Thanks and Regards,
M.L.PrasannaHi,
Check transaction OOVK ,OOIT
Check table V_778U,T777E.
Check this link for the custom relationship creation and make sure all is done.
http://fuller.mit.edu/ehs/creating_relationships.htm
Cheers,
Manoj. -
Reg : Issuing Idocs after changes to orders
Hi Frens ,
I am having one query .
Idoc to be issued everytimes changes occur in a sales order.
May be from VA02 or may be from end user's program.
can i use cdhdr or cdpos table in my requirement (VOFM).
or is there any fields are available in communication structre ( kompbv1 , komkbv1) OR is there any other way to do it .
Thanx and regards,Hi Amitav,
I repost here in case you are not watching both threads. Please feel free to reward both answers!!
Hi Amitav,
This is a tricky one.
There is a field that it set within SAPMV45A processing (r185d-dataloss) which is set to X if a standard SAP field hase been changed in the order.
So, here is what I would suggest you do:
1. set up your output condition type as 'multiple issueing'. This will ensure that every time you go into change a sales order the output type is proposed
2. In the userexit USEREXIT_SAVE_DOCUMENT_PREPARE I would export to memory (using the sales order number as the key) the value of r185d-dataloss
3. In your requirement import from memory the value of the field r185d-dataloss (clearing the memory entry afterwards)
4. If the value is X then pass the requirement, otherwise fail it
This way, your requirement will always reject the output type until the document is saved. If it is saved and there were changes, during update processing the requirement will pass and the output will be generated.
If you want to avoid IMPORT/EXPORT from memory then you could use the technique described in my blog: /people/brad.williams/blog/2005/04/25/userexits--how-do-i-access-inaccessible-data
Hope that that makes sense.
Cheers,
Brad -
REG: ISSUE ON LSO_PV00 TCODE REGARDING lso
Hi dear experts,
do me one favour. i am getting following issue while i am booking the participant in the tcode lso_pv00,
" User canceled maintenance;No change executed"
Also while saving the transactions pvdo(coursetype),pvl0(coursegroup),lso_pv10(courses) ,i am getting following issue that is
" Primary table entries missing in the table OBJS->transport"
please help me to rectify this issue my soul friends. ASAP
Thanks,
M.L.PRASANNAHi Prasanna
To have first issue solved, maintain number ranges in T code LSO_TP_C.
Second issue, try after doing configuration in T code OONR (if there is no no. range maintained)
Hope this helps.
Best Regards
Reddy -
Reg: Issue on CreateUser - Siebel
Hi All,
We have developed a client code for provisioning accounts into the Siebel, using end-point url.
http://<IPADDR>/custappsvcs_enu/start.swe?SWEExtSource=WebService&SWEExtCmd=Execute&WSSOAP=1
But when we invoke the createUser of Seibel , it throws the below error message.
===============================================================================
Error invoking service 'SelfServiceContact_SIA', method 'Execute' at step 'Create Contact and Account'.(SBL-BPR-00162)
The record with search specification '' in business component 'Contact' (integration component 'Contact') has been deleted by another user since it was retrieved.(SBL-EAI-04289)
==================================================================================================
It would be great if someone can help us in resolving the issue.
Pls. let me know if any clarifications required from my end.
Regards,
Karanu can use FM 'RV_INVOICE_CREATE'
-
Reg:- Issue with Leave Deduction in ESS Leave Request
Hi All,
We are facing the following issue in the Leave Request module in ESS (ess~lea):
Currently, there is a requirement from the customer that when the Leave Type is chosen as Paid Holiday - Early/AM (Subtype: 0110) or Paid Holiday - Post/PM (Subtype: 0120), we have to hide The Time field (which contains Begin and End Times) in the first Screen (Edit form Screen). On clicking the Review button, we are calling a custom RFC to which the User ID, Subtype and Date of Leave are passed as the import parameters. This custom RFC returns the Begin and End Times depending on the import parameters passed. These Begin and End Times (returned from the custom RFC) are then mapped to Begin_Time and End_Time context attributes under "Workitem" context node and will be used for all further processing.
However, the problem is that on clicking the Review button, the leave to be deducted is calculated as 1 Days instead of 0.5 Days (for Subtypes - 0110 and 0120 only). How can we make sure that the leaves deducted is 0.5 Days in both Review (second) and Confirmation (third) screens?
Appreciate your help.
Thanks in advance,
PavithraYou can use PT_ARQ_REQUEST_CHECK!
If clock time fields were open as in the standard, you
as well change the time and pressed review and everything would have
been fine.
In case you dont want to add the time fields in the front end , then you
can acheive the same by clearing the time fields in the back end
function module PT_ARQ_REQUEST_CHECK.
Depeding on your requirement you can decide how to use
PT_ARQ_REQUEST_CHECK ie hours field or the clock times.
That means you need to clear the time fields which are derived
from the work schedule and keep it empty since these fields
are hidden in your front end and no option for the pernr to modify
or correct the times. -
REG:Issues in creating responsbility in concurrent level
Hi,
When i create the concurrent request to bounce the apache the error can occurred.The following steps i had done like
step.1:Create program name with created executable
Navigate to Concurrent : Program → Define
step.2:Create program name with created executable
Navigate to Concurrent : Program → Define
step.3:To define the parameters Click Parameters tab from above screen
step.4:Add this request to request group, which has been assigned to System Administrator
Go to system administrator security: responsibility requests
step.5:Then press F11 checking for responsibility
Check group iStore concurrent programs%
step.6:Then i went security responsbility request i entered group ,type,name and application then it saved
step.7:I submit a new concurrent request and entered a name to run this request and i then entered Yes in parameters then i submitted
step.8:finally i clicked the FIND request it shows error in the status box.then i viewed the diagnostics the following reasons can seen
This request finished with an error and produced the following completion message: The executable file /pix/p01/oracle/pixappl/fnd/11.5.0/bin/Apache_Bounce1 for this concurrent program cannot be executed.
Contact your system administrator or support representative.
Verify that the execution path to the executable file
The processing began on 12-MAR-2010 18:19:09 and ended on 12-MAR-2010 18:19:09.
You may find more information on the cause of the error in the request log or the concurrent manager log.
So please tell any steps to clear this issue......Pl post full versions of OS and EBS - what are the owners/permissions on the file "/pix/p01/oracle/pixappl/fnd/11.5.0/bin/Apache_Bounce1" ? I am assuming this is a shell script - has it been set up as detailed in MOS Doc 147455.1 (How To Setup A Custom Concurrent Host Program) ?
HTH
Srini -
REg: Issue Automatic PO creation
Hello Gurus
while converting the PR to PO using me59 i'm getting an error
"PO not created due to item error
Enter a quantity"
In PR i have maintained the quantity as 0.5. but even then it is not fetching the quanity
How to rectify this error
Kindly guide
Thanks in advance
VKKanswered
-
Reg:Issue in custom FM[RFC]
Hi,
Scenario is i am updating pa0008 infotype by using HR_INFOTYPE OPERATION function module, this is used in my Custom FM[RFC] along with 3 fields.ANSAL,PAY.SCALE TYPE AND LEVELS and it is working fine.Now requirement changed i need to updated wage types in PA0008 table while entering new ANSAL which is already updating as above mentioned.
Could you please suggest how i need to update respective wage types for the newly entered ANSAL amount in my RFC without making or writting code for calculations to the wagetypes in my custom FM[RFC].Hi Rama,
Check in the link below.
RSDRI_INFOPROV_READ?
I think it doesn't work in SE37 if you try to execute it by giving a data provider name, rather you should be calling it in a program by assigning the required fields to individual parameters.
JK -
Reg:Issue with PO & frieght for the Print output
Hi
I have scenario
I created a PO for a material which has 100 inr also the PO has got the frieght charges of 50 inr for different vendor
Is there by any chance can i have the print for the both of these (material & frieght) seperately with same PO number itself
Is there any provision available will it be possible thru partner schema if so how or welcome for any other solution.
Regards
VKKnot answered
Maybe you are looking for
-
Exchange 2007 Active Sync Issue with 1 users mailbox
Good Afternoon, Server OS: Small Business Server 2008 Exchange: 2007 Standard - Update Rollup 13 SP3 Mobile phone: Blackberry Z10 We are in the process of decommissioning our Blackberry Enterprise Server, and down to one user. I am able to setup
-
Unable to deploy custom adapter module in PI 7.31
Hi pros, I created a custom adapter module to split some complex input files to multiple messages. We use a SAP PO 7.31 java-only installation. I followed this document to create my adapter module: How to Create Modules for the JEE Adapter Engine I k
-
Mac Plug-ins for Adobe indesign CS5
Hi all, I am making new Indesign CS5 plug-ins for Mac os. build my project and i get error "Developer/usr/bin/gcc-4.0 failed with exit code 1" what it mean error "exit code 1"? and I am work on porting of Adobe Indesign CS4 to CS5 plugIns for Mac O
-
Can't display an image with SWT using J9
Hello, I'm programming a user interface using SWT and J9 as JVM under Window Mobile 5.0 Everything seems to work more or less fine with SWT widgets, but I can't display any Image. I've tried the following codes : Image image = new Image(display,getCl
-
No. ranges for Internal order budget
When i am changing the budget amount in Ko22 It is asking maintain interval 04 no. ranges for budgeting and planning pls suggest what is the logic behind why it is asking 04 and where i have to configure Regards Eswar