PO service is not created using BAPI_PO_CREATE FM
Hi,
CALL FUNCTION 'BAPI_PO_CREATE'
EXPORTING
po_header = wa_header
po_header_add_data = wa_hdr_add
header_add_data_relevant = wa_hdr_flg
IMPORTING
purchaseorder = v_po
TABLES
po_items = i_line
po_item_schedules = i_sch
po_item_account_assignment = i_po_acc
po_services = i_po_ser
po_srv_accass_values = i_po_srv
po_services_text = i_po_sertxt
return = i_return
poaddrdelivery = i_del_addr.
TheIT_RETURN returned me the below 2 lines.
1. Sum of percentages >200.0< exceeds 100 %
2. Document contains no items
Regards
Deepthi.
Hi,
wa_header-DOC_DATE = 20080901
wa_header-DOC_TYPE = 'Z0RD'.
wa_header-CO_CODE = '3082'.
wa_header-PURCH_ORG = 'P000'.
wa_header-PUR_GROUP = '052'..
wa_header-VENDOR = '0005021295'.
wa_header-CREATED_BY = sy-uname.
wa_header-ZZEXPTYPE = '9015'.
wa_hdr_add-PMNTTRMS = 'Z004'.
wa_hdr_add-CURRENCY = 'USD'.
wa_hdr_add-REF_1 = 'CONVERSION'.
wa_hdr_add-OUR_REF = '5172APN'.
wa_hdr_flg = 'X'.
w_line-PO_ITEM = '00010'.
w_line-ITEM_CAT = '9'.
w_line-ACCTASSCAT = 'N'.
w_line-MAT_GRP = '088'.
w_line-SHORT_TEXT = 'Alarm System Installation'.
w_line-DISTRIB = space.
w_line-PLANT = '3082'.
w_line-UNIT = 'AU'.
w_line-NET_PRICE = '2000.0000'.
w_line-PCKG_NO = '0000000010'.
w_line-TRACKINGNO = '10'.
w_line-TAX_CODE = 'I0'.
append w_line to i_line.
w_sch-PO_ITEM = '00010'.
w_sch-SERIAL_NO = '01'.
w_sch-DELIV_DATE = '20100901'.
w_sch-QUANTITY = '2000.000'.
w_sch-CREATE_IND = 'X'.
append w_sch to i_sch.
w_po_acc-PO_ITEM = '00010'.
w_po_acc-SERIAL_NO = '01'.
w_po_acc-w_po_acc-w_po_acc-QUANTITY = ' 2000.000'.
w_po_acc-DISTR_PERC = '0.0'.
w_po_acc-G_L_ACCT = '0000622025'.
w_po_acc-CO_AREA = 'FC01'.
w_po_acc-NETWORK = '000004003658'.
w_po_acc-ACTIVITY = '0210'.
append w_po_acc to i_po_acc.
w_po_ser-PCKG_NO = '0000000010'.
w_po_ser-LINE_NO = '0000000001'.
w_po_ser-w_po_ser-SUBPCKG_NO = '0000000010'.
w_po_ser-QUANTITY = '2000.00'.
w_po_ser-BASE_UOM = 'LE'.
w_po_ser-GR_PRICE = '1.00'.
w_po_ser-SHORT_TEXT = 'Alarm System Installation'.
w_po_ser-distrib = space.
w_po_ser-TAX_CODE = 'I0'.
w_po_ser-MATL_GROUP = '001'.
append w_po_ser to i_po_ser.
w_po_srv-PCKG_NO = '0000000010'.
w_po_srv-LINE_NO = '0000000001'.
w_po_srv-PERCENTAGE = '100.0'.
w_po_srv-SERIAL_NO = '01'.
w_po_srv-QUANTITY = '1.00'.
append w_po_src to i_po_srv
w_po_sertxt-PCKG_NO = '0000000010'.
w_po_sertxt-LINE_NO = '0000000001'.
w_po_sertxt-TEXT_LINE = 'CONVERSION'.
append w_po_sertxt to i_po_sertxt.
w_del_addr-po_item = '00010'.
w_del_addr-addr_no = '0000068279'.
append w_del_addr to i_del_addr.
data: v_po TYPE ebeln,
i_return TYPE STANDARD TABLE OF bapireturn.
CALL FUNCTION 'BAPI_PO_CREATE'
EXPORTING
po_header = wa_header
po_header_add_data = wa_hdr_add
header_add_data_relevant = wa_hdr_flg
IMPORTING
purchaseorder = v_po
TABLES
po_items = i_line
po_item_schedules = i_sch
po_item_account_assignment = i_po_acc
po_services = i_po_ser
po_srv_accass_values = i_po_srv
po_services_text = i_po_sertxt
return = i_return
poaddrdelivery = i_del_addr.
Regards,
Deepthi.
Similar Messages
-
Invoking a web service not created using oracle web service lib
Hi All,
I have a need to invoke my web service from oracle sql command. My web service not created using oracle web service library, but it is created using axis c++ libraries. Is it possible to do so,
Thanks in advance,
Regards,
MonicaIn order to call out from the database process, is SQL (or PL/SQL) you need to generate some client code, that understand the details about the specific of the service you want to invoke and can produce the correct SOAP request. Once this proxy is uploaded in the Database, you can use it.
There is a set of Database Web services samples that should help you get started. You can also take a look at the developer's guide - see Developing a Web Service Client in the Database.
Hope it answers your question.
--eric -
Hi,
When I check pkiview.msc on my 2012 Subordinate CA I get the error shown in the first picture below. I'm also getting errors similar to below in the event log:
"Active Directory Certificate Services could not create an encryption certificate. Requested by contoso\admin1. The revocation function was unable to check revocation because the revocation server was offline. 0x80092013 (-2146885613 CRYPT_E_REVOCATION_OFFLINE)."
I'm assisting in setting up a 2 tier PKI infrastructure using Windows 2012. The root CA looks good, but we're getting errors on the subordinate. The server was working, but we discovered that the server would only issue certificates with a maximum of a 1
year expiry date - obviously no good, so we decided to run through the following commands on the root CA (as recommended byhttp://www.techieshelp.com/subordinate-ca-increase-certificate-validity/)
certutil -setreg ca\ValidityPeriodunits "Years"
certutil -setreg ca\ValidityPeriod "5"
restarted AD certificate services on the root and subordinate CA.Then did the following on the subordinate CA:
1.On the Subordinate CA create a new CA request by right clicking the server in ADCS and select New Request.
2.Supplied the original request file from the subordinate CA (I couldn't find a way of generating a new request file)
3.Issued the certificate using the Root CA.
4.On the Subordinate CA ADCS installed new CA cert.
However, I keep on getting CDP or AIA errors on my subordinate CA.Also I'm missing a CDP field value when I look at the certificate listed in the personal and trusted certification authority store on my subordinate CA.
In addition, when I look at my CDP locations in Certificate Authority, I see a lot of CDPs, but I'm not sure if I need them all - I suspect I could just get away with LDAP, the C:\windows path and a single http:// path.
I've tried renewing the existing certificate and CRL on my subordinate CA, but that didn't work either.
Please advise.
ThanksOk, the process to renew the subordinate CA is incorrect. Once the registry setting to change the validity period was made on the root CA, the root CA ADCS service needs to be restarted. That is the only time those keys are read. Then:
1) On the subordinate CA, open the CA tool, right click the CA and select Renew CA Certificate. You can use the same key, no need to create a new one. It will create a NEW certificate request file
2) Copy that to the Root CA and submit like you would have done during the initial install
3) Approve the request and export the issued certificate
4) On the subordinate CA, in the CA tool, right click the CA and choose Install CA Certificate.
You can not reuse request files.
Mark B. Cooper, President and Founder of PKI Solutions Inc., former Microsoft Senior Engineer and subject matter expert for Microsoft Active Directory Certificate Services (ADCS). Known as “The PKI Guy” at Microsoft for 10 years. -
Reporting Services offers limited support for using AlwaysOn Availability Groups with report server databases. The report server databases can be configured in AG to be part of a replica; however Reporting Services will not automatically use a different
replica for the report server databases when a failover occurs. How to overcome this issue? is there any workaround for that..
RahulHi.
With the AlwaysOn listener you should have a single DNS name to connect to regardless of which cluster node is active. Are you using the listener service? If not, please refer to the link below.
http://msdn.microsoft.com/en-us/library/hh213417.aspx#AGlisteners -
I have problem sending a email ..spool not created using custom FM
Hi experts,
i have problem sending a email ..spool not created using custom FM...this the custom FM
* Send email notification
lv_subject = text-037.
lv_attachment = text-038.
CALL FUNCTION 'Z_SEND_EMAIL_FROM_SPOOL'
EXPORTING
email1 = lv_email1
email2 = lv_email2
email3 = lv_email3
subject = lv_subject
attachment_name = lv_attachment
EXCEPTIONS
spool_not_created = 1
OTHERS = 2.
Source code
this is the source code for this FM
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
PERFORM convert_spool_to_pdf.
IF sy-subrc IS NOT INITIAL.
MESSAGE e040(zhrcd) RAISING spool_not_created.
ENDIF.
PERFORM process_email USING email1
email2
email3
subject
attachment_name.
WAIT UP TO 5 SECONDS.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.....
Please let me know
Edited by: Thomas Zloch on Nov 16, 2010 5:53 PM - please use code tagsHi srinivas ,
Could you please Check
FORM summary_report .
DATA: lv_success TYPE i,
lv_error TYPE i,
lv_total TYPE i.
DESCRIBE TABLE gt_data LINES lv_success.
DESCRIBE TABLE gt_error LINES lv_error.
DESCRIBE TABLE gt_message LINES lv_error.
lv_total = lv_success + lv_error.
lv_total = lv_success.
gwa_summary-record = text-008."Number of Successful records.
gwa_summary-number = lv_success.
APPEND gwa_summary TO gt_summary.
gwa_summary-record = text-009."Number of error records'.
gwa_summary-number = lv_error.
APPEND gwa_summary TO gt_summary.
gwa_summary-record = text-010."Total number of records processed.
gwa_summary-number = lv_total.
APPEND gwa_summary TO gt_summary.
CLEAR gt_fieldcat.
gwa_fieldcat_summ-col_pos = 1 .
gwa_fieldcat_summ-fieldname = 'RECORD'.
gwa_fieldcat_summ-tabname = 'GT_SUMMARY'.
gwa_fieldcat_summ-seltext_l = text-011."Records
gwa_fieldcat_summ-outputlen = '70'.
APPEND gwa_fieldcat_summ TO gt_fieldcat_summ.
gwa_fieldcat_summ-col_pos = 2 .
gwa_fieldcat_summ-fieldname = 'NUMBER'.
gwa_fieldcat_summ-tabname = 'GT_SUMMARY'.
gwa_fieldcat_summ-seltext_l = text-012."Number
gwa_fieldcat_summ-outputlen = '10'.
APPEND gwa_fieldcat_summ TO gt_fieldcat_summ.
ENDFORM. " SUMMARY_REPORT
*& Form ERROR_REPORT
FORM error_report .
gt_fieldcat_err[] = gt_fieldcat[].
gv_fieldcat_err-col_pos = 1.
gv_fieldcat_err-fieldname = 'PERNR'.
gv_fieldcat_err-tabname = 'GT_MESSAGE'.
gv_fieldcat_err-seltext_l = text-070."Employee Number
gv_fieldcat_err-outputlen = '20'.
APPEND gv_fieldcat_err TO gt_fieldcat_err.
gv_fieldcat_err-col_pos = 2.
gv_fieldcat_err-fieldname = 'MESSAGE'.
gv_fieldcat_err-tabname = 'GT_MESSAGE'.
gv_fieldcat_err-seltext_l = text-071."Error Message
gv_fieldcat_err-outputlen = '80'.
APPEND gv_fieldcat_err TO gt_fieldcat_err.
ENDFORM. " ERROR_REPORT
*& Form FINAL_REPORT
FORM final_report .
DATA:lv_layout TYPE slis_layout_alv,
lt_events_summ TYPE slis_t_event,
lv_events_summ LIKE LINE OF lt_events_summ,
lt_events_det TYPE slis_t_event,
lv_events_det LIKE LINE OF lt_events_det,
lt_events_err TYPE slis_t_event,
lv_events_err LIKE LINE OF lt_events_det,
lt_events_msg TYPE slis_t_event,
lv_events_msg LIKE LINE OF lt_events_det.
lv_events_summ-name = 'TOP_OF_PAGE'.
lv_events_summ-form = 'TOP_OF_PAGE1'.
APPEND lv_events_summ TO lt_events_summ.
lv_events_det-name = 'TOP_OF_PAGE'.
lv_events_det-form = 'TOP_OF_PAGE2'.
APPEND lv_events_det TO lt_events_det.
lv_events_err-name = 'TOP_OF_PAGE'.
lv_events_err-form = 'TOP_OF_PAGE3'.
APPEND lv_events_err TO lt_events_err.
lv_events_msg-name = 'TOP_OF_PAGE'.
lv_events_msg-form = 'TOP_OF_PAGE4'.
APPEND lv_events_msg TO lt_events_msg.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
i_callback_program = sy-repid.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = lv_layout
it_fieldcat = gt_fieldcat_summ
i_tabname = 'IT_SUMMARY'
it_events = lt_events_summ
IT_SORT =
I_TEXT = ' '
TABLES
t_outtab = gt_summary
EXCEPTIONS
PROGRAM_ERROR = 1
MAXIMUM_OF_APPENDS_REACHED = 2
OTHERS = 3
IF CHK_DTL IS NOT INITIAL.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = lv_layout
it_fieldcat = gt_fieldcat
i_tabname = 'gt_data'
it_events = lt_events_det
IT_SORT =
I_TEXT = ' '
TABLES
t_outtab = gt_data
EXCEPTIONS
PROGRAM_ERROR = 1
MAXIMUM_OF_APPENDS_REACHED = 2
OTHERS = 3
ENDIF.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = lv_layout
it_fieldcat = gt_fieldcat_err
i_tabname = 'gt_error'
it_events = lt_events_err
TABLES
t_outtab = gt_error.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = lv_layout
it_fieldcat = gt_fieldcat_msg
i_tabname = 'gt_message'
it_events = lt_events_msg
TABLES
t_outtab = gt_error.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = lv_layout
it_fieldcat = gt_fieldcat_err
i_tabname = 'gt_message'
it_events = lt_events_err
TABLES
t_outtab = gt_message.
IF GT_MESSAGE[] IS NOT INITIAL.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = lv_layout
it_fieldcat = gt_fieldcat_msg
i_tabname = 'gt_message'
it_events = lt_events_msg
TABLES
t_outtab = gt_message.
ENDIF.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
EXPORTING
i_interface_check = ' '
IS_PRINT =
i_screen_start_column = 0
i_screen_start_line = 0
i_screen_end_column = 0
i_screen_end_line = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
ENDFORM. " FINAL_REPORT
*& Form top_of_page
text
FORM top_of_page1. "#EC CALLED
WRITE text-013."SUMMARY REPORT.
ENDFORM. "top_of_page
*& Form top_of_page2
text
FORM top_of_page2. "#EC CALLED
WRITE text-014."DETAIL REPORT.
ENDFORM. "top_of_page
*& Form top_of_page3
text
FORM top_of_page3. "#EC CALLED
WRITE text-015."ERROR REPORT
ENDFORM. "top_of_page
*& Form EMAIL_NOTIFICATION
FORM email_notification .
DATA: lv_email1 TYPE somlreci1-receiver,
lv_email2 TYPE somlreci1-receiver,
lv_email3 TYPE somlreci1-receiver,
lv_subject TYPE char200,
c_flag TYPE c VALUE 'X',
lv_attachment TYPE char50.
CLEAR: lv_email1,
lv_email2,
lv_email3,
lv_subject,
lv_attachment.
SELECT SINGLE email1
email2
email3
FROM zhr_interface_pr
INTO (lv_email1,lv_email2,lv_email3)
WHERE zinterfaceid EQ gc_objectid.
IF sy-subrc EQ 0.
IF sy-batch EQ 'X'.
Send email notification
lv_subject = text-037.
lv_attachment = text-038.
CALL FUNCTION 'Z_SEND_EMAIL_FROM_SPOOL'
EXPORTING
email1 = lv_email1
email2 = lv_email2
email3 = lv_email3
subject = lv_subject
attachment_name = lv_attachment
EXCEPTIONS
spool_not_created = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. "
Edited by: katewinslate@SAP on Nov 17, 2010 12:50 PM -
I wish to download a Muse Site I did not create , using Muse. How may I do this?
I wish to download a Muse Site I did not create , using Muse. How may I do this?
Thank you.Ok once again.
Let's assume a friend using Muse creates a site using his PC and publishes it.
It’s now a hosted site created in Muse.
Let’s also assume he wishes to have me work on the Muse created website which he created and published using Muse.
Can I use my copy of Muse on my PC , a PC different than my freinds, to download the site my friend created so I may work on it in my copy of Muse?
It can’t be done right? -
Data Services wizard not creating service
I am having huge problems with the Data Services wizard.
I am using Flash Builder 4.6 on a Mac (10.7.2).
Over the last year I have been working on a couple of proof of concept projects and now want to start work on a production version starting from scratch in a new project.
The Data Services wizard has worked fine for me in the past, but now I am having serious problems.
The first problem is the Data/Services window does not update when I create a new service with the wizard. (I am connecting to the Zenfolio Web Service.) If have to close the project and open it before I see the new service in the Data/Services window.
While this problem is more an inconvenience, more seriously the wizard does not create either the "services" folder or the "valueObjects" folder as it did in the past.
Now if I right click on a method in the service and select "Create Service Call", it creates the Call Responder but not the call itself.
The relevant log entry starts with
!ENTRY com.adobe.flexbuilder.dcrad 4 1 2012-01-12 22:39:20.962
!MESSAGE Component type services.zfapi.Zfapi not found.
If I create a "services" folder and copy the zfapi package from one of my previous projects, all works fine.
This probably gives me a workaround - although I haven't tested this to any extent yet.
It is very strange and worrying behaviour though.
regards
ChrisOK, here are the log entries created when I try to create the service:
!ENTRY com.adobe.flexbuilder.dcrad 4 1 2012-01-19 22:16:33.970
!MESSAGE
!STACK 0
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:479)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager.addServices(ServicesManager.jav a:476)
at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.j ava:536)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1530)
at org.eclipse.swt.widgets.Link.textView_clickOnLink_atIndex(Link.java:117)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5781)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)
at org.eclipse.swt.widgets.Widget.mouseDownSuper(Widget.java:1092)
at org.eclipse.swt.widgets.Widget.mouseDown(Widget.java:1084)
at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2519)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5471)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)
at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2092)
at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2252)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5535)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:4989)
at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5138)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3610)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Priority
at freemarker.log.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:65)
at freemarker.log.Logger.getLogger(Logger.java:255)
at freemarker.template.utility.SecurityUtilities.<clinit>(SecurityUtilities.java:67)
at freemarker.ext.beans.BeansWrapper.<clinit>(BeansWrapper.java:147)
at freemarker.template.ObjectWrapper.<clinit>(ObjectWrapper.java:69)
at freemarker.core.Configurable.<init>(Configurable.java:132)
at freemarker.template.Configuration.<init>(Configuration.java:109)
at freemarker.template.Configuration.<clinit>(Configuration.java:96)
at fiber.gen.freemarker.FreemarkerModelGenerator.buildFreemarkerConfiguration(FreemarkerMode lGenerator.java:328)
at fiber.gen.freemarker.FreemarkerModelGenerator.<init>(FreemarkerModelGenerator.java:85)
at fiber.gen.freemarker.FreemarkerStructuredTypeGenerator.<init>(FreemarkerStructuredTypeGen erator.java:62)
at fiber.gen.as.ASClassGenerator.<init>(ASClassGenerator.java:84)
at fiber.gen.as.vo.SuperGenerator.<init>(SuperGenerator.java:53)
at fiber.gen.as.vo.ASValueObjectGenerator$2.<init>(ASValueObjectGenerator.java:225)
at fiber.gen.as.vo.ASValueObjectGenerator.getBaseClassGenerator(ASValueObjectGenerator.java: 222)
at fiber.gen.as.vo.ASValueObjectGenerator.getTemplateNames(ASValueObjectGenerator.java:392)
at fiber.gen.as.ASGenerator.getTemplateNames(ASGenerator.java:465)
at com.adobe.model.core.generators.wrapper.CodeGenerationUtils.getTemplateResources(Unknown Source)
at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper.getTemplateResourcesForGene rator(Unknown Source)
at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper.generateCodeForGenerator(Un known Source)
at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper.internalGenerateAllCodeForM odel(Unknown Source)
at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper$2.run(Unknown Source)
at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper.generateAllCodeForModel(Unk nown Source)
at com.adobe.flexbuilder.dcrad.core.generation.ASVOGenerator.generate(ASVOGenerator.java:78)
at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager.generateVO(ServicesManager.java :538)
at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager.add(ServicesManager.java:403)
at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager.access$11(ServicesManager.java: 356)
at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager$1.run(ServicesManager.java:484)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
... 48 more
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Priority
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 77 more
Root exception:
java.lang.NoClassDefFoundError: org/apache/log4j/Priority
at freemarker.log.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:65)
at freemarker.log.Logger.getLogger(Logger.java:255)
at freemarker.template.utility.SecurityUtilities.<clinit>(SecurityUtilities.java:67)
at freemarker.ext.beans.BeansWrapper.<clinit>(BeansWrapper.java:147)
at freemarker.template.ObjectWrapper.<clinit>(ObjectWrapper.java:69)
at freemarker.core.Configurable.<init>(Configurable.java:132)
at freemarker.template.Configuration.<init>(Configuration.java:109)
at freemarker.template.Configuration.<clinit>(Configuration.java:96)
at fiber.gen.freemarker.FreemarkerModelGenerator.buildFreemarkerConfiguration(FreemarkerMode lGenerator.java:328)
at fiber.gen.freemarker.FreemarkerModelGenerator.<init>(FreemarkerModelGenerator.java:85)
at fiber.gen.freemarker.FreemarkerStructuredTypeGenerator.<init>(FreemarkerStructuredTypeGen erator.java:62)
at fiber.gen.as.ASClassGenerator.<init>(ASClassGenerator.java:84)
at fiber.gen.as.vo.SuperGenerator.<init>(SuperGenerator.java:53)
at fiber.gen.as.vo.ASValueObjectGenerator$2.<init>(ASValueObjectGenerator.java:225)
at fiber.gen.as.vo.ASValueObjectGenerator.getBaseClassGenerator(ASValueObjectGenerator.java: 222)
at fiber.gen.as.vo.ASValueObjectGenerator.getTemplateNames(ASValueObjectGenerator.java:392)
at fiber.gen.as.ASGenerator.getTemplateNames(ASGenerator.java:465)
at com.adobe.model.core.generators.wrapper.CodeGenerationUtils.getTemplateResources(Unknown Source)
at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper.getTemplateResourcesForGene rator(Unknown Source)
at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper.generateCodeForGenerator(Un known Source)
at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper.internalGenerateAllCodeForM odel(Unknown Source)
at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper$2.run(Unknown Source)
at com.adobe.model.core.generators.wrapper.CodeGenerationWrapper.generateAllCodeForModel(Unk nown Source)
at com.adobe.flexbuilder.dcrad.core.generation.ASVOGenerator.generate(ASVOGenerator.java:78)
at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager.generateVO(ServicesManager.java :538)
at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager.add(ServicesManager.java:403)
at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager.access$11(ServicesManager.java: 356)
at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager$1.run(ServicesManager.java:484)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at com.adobe.flexbuilder.dcrad.core.internal.ServicesManager.addServices(ServicesManager.jav a:476)
at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.j ava:536)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1530)
at org.eclipse.swt.widgets.Link.textView_clickOnLink_atIndex(Link.java:117)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5781)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)
at org.eclipse.swt.widgets.Widget.mouseDownSuper(Widget.java:1092)
at org.eclipse.swt.widgets.Widget.mouseDown(Widget.java:1084)
at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2519)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5471)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)
at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2092)
at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2252)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5535)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:4989)
at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5138)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3610)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Priority
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 77 more -
Running WL as NT Service is not Creating Connection Pools?
We have something very strange happening here. We recently installed Weblogic 6.1 sp 4 on an WinNT 2000 box and installed our application. We are connecting to an Oracle 8.1.7 database using the Oracle 8.1.7 client drivers. We configured our connection pool via the Web Console. We also installed our application to run as a NT Service using "beasvc.exe" utility.
When we run our application after starting Weblogic from the commandline, our application runs fine. It creates the Oracle connection pool and everything is great.
However when we run our application by starting it under the NT Services window, our application fails to start the connection pool. Looking at all the logs, I don't see and errors or exceptions being thrown. I did notice that the connection pool was not created. But again, no errors were thrown.
Has anyone seen this behavior? To make things more confusing for me, this whole solution is working fine on another WinNT 2000 box with the only difference beint that we are using Weblogic 6.1 sp2. Anyone have any ideas??? Also, running the NT Service version of Weblogic in debug mode also worked!It takes the Oracle service quite a bit of time to start up. Make sure that you
set up the DependsOnService correctly in your registry so that Oracle comes up
fully before launching WL.
Paul
Clyde <[email protected]> wrote:
We have something very strange happening here. We recently installed
Weblogic 6.1 sp 4 on an WinNT 2000 box and installed our application.
We are connecting to an Oracle 8.1.7 database using the Oracle 8.1.7
client drivers. We configured our connection pool via the Web Console.
We also installed our application to run as a NT Service using "beasvc.exe"
utility.
When we run our application after starting Weblogic from the commandline,
our application runs fine. It creates the Oracle connection pool and
everything is great.
However when we run our application by starting it under the NT Services
window, our application fails to start the connection pool. Looking
at all the logs, I don't see and errors or exceptions being thrown.
I did notice that the connection pool was not created. But again,
no errors were thrown.
Has anyone seen this behavior? To make things more confusing for me,
this whole solution is working fine on another WinNT 2000 box with the
only difference beint that we are using Weblogic 6.1 sp2. Anyone have
any ideas??? Also, running the NT Service version of Weblogic in debug
mode also worked! -
Service Message not created in 4.6c
Hi all
We are using SLM 3.2. I am facing problem in creating support message from satellite system (4.6c) it returns the following error:
Error in local message system: Function module
"/SAPSMOSS/06_CREATE_R3_NOTIFIC" n Message was not created
Kindly give me the solution
Thanks.Our satellite system configuration is:
Basis support package level is 27 (release 46C)
ST-PI Release 1.00_46C level 0000
Entries of BCOS_CUST are:
column1 column2 column3 column4 column5
OSS_MSG S SLM CUST31H 1.0
Any suggestion -
Log file is not created used util.logger
I need to write a log into a file using java.util.logging.
File name should read from properties file.
Issue is file is not created in D:\TestLogging.log
Below are the configuration:
src\resources\logger.properties
handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler
.level=INFO
java.util.logging.ConsoleHandler.level=SEVERE
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
java.util.logging.FileHandler.level=ALL
java.util.logging.FileHandler.pattern=D:\TestLogging.log
# Number of output files to cycle through, by appending an
# integer to the base file name:
java.util.logging.FileHandler.count=1
# Style of output (Simple or XML):
java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
SimpleLogger.java
import java.util.logging.*;
public final class SimpleLogger {
public static void main(String argv[]) {
SimpleLogger thing = new SimpleLogger();
thing.doSomething();
public void doSomething() {
fLogger.finest("this is finest");
fLogger.finer("this is finer");
fLogger.fine("this is fine");
fLogger.config("this is config");
fLogger.info("this is info");
fLogger.warning("this is a warning");
fLogger.severe("this is severe");
fLogger.logp(Level.INFO, this.getClass().toString(), "doSomething", "blah");
Throwable ex = new IllegalArgumentException("Some exception text");
fLogger.log(Level.SEVERE, "Some message", ex);
fLogger.exiting(this.getClass().toString(), "doSomething");
private static final Logger fLogger =
Logger.getLogger(SimpleLogger.class.getName());
Could you please help, any configuration is missedMalar,
Check for the file in the server folder of your server installed directory.
ie..<Drive where server installed>:\usr\sap\<name>\<instance>\j2ee\<server node>
Regards
Abu Bakar -
Database not creating using DBCA
Hi,
I installed oracle on solaris 10 sparc system
when i try to create a database using dbca, it is not creating.
after i click on finish button on dbca to create a database, database creating windows is not opening, i mean it is in same window, i clicked thousand times on that finish button, no windows is opening, nothing is happening.
please help, i will really appreciate if anyone tell me how to resolve this issue.
Regards,
Veeresh Ssolaris server is 64 sparc
and i installed oracle 10.2.0.1 64 bit for sparc 64
now this is not working.
can i install oracle 10.2.0.2 x86 in this sparc 64 bit server -
Web services - Could not create stubs on some servers
My error is related to web services.
The problem is that on some servers I can consume webservices
and on some other not. The servers have the same configuration - at
least it look like that.
The calling page and the webservice component are in fact
very simple. The source code is at the bottom of the page.
When the web service is not consumed I have a following error
message:
coldfusion.jsp.CompilationFailedException: Errors reported by
Java compiler: Found 5 semantic errors compiling
"/opt/app/coldfusionmx8/stubs/WS941899941/DefaultNamespace/WebserviceCompCfcSoapBindingSt ub.java":
175. if (axisFaultException.detail != null) {
<-----------------------> *** Error: No field named "detail"
was found in type "org/apache/axis/AxisFault". 176. if
(axisFaultException.detail instanceof java.rmi.RemoteException) {
<-----------------------> *** Error: No field named "detail"
was found in type "org/apache/axis/AxisFault". 177. throw
(java.rmi.RemoteException) axisFaultException.detail;
<-----------------------> *** Error: No field named "detail"
was found in type "org/apache/axis/AxisFault". 179. if
(axisFaultException.detail instanceof
coldfusion.xml.rpc.CFCInvocationException) {
<-----------------------> *** Error: No field named "detail"
was found in type "org/apache/axis/AxisFault". 180. ....
When I took a look to the stubs directory I found that all
java classes are compiled except for:
WebserviceCompCfcSoapBindingStub.java
Just to save your time - I've been trying stuff with the
displayname etc... :-/
If you would like me to supply you more information - please
let me know.
Thanks for any answers.After investigation it turned out that one of the libraries
was using java.rmi.RemoteException.class which was quite old.
Apparently when the servers were starting they were launching
the libraries in different order. So some of them were using old
version of java.rmi.RemoteException.class and the AxisFault.class
that inherited from it couldn't compile. -
Log file is not created using LOG4J
Hi all,
I want to use Log4j to log the details about my portal application. I would prefer using Log4j instead of SAP Logging. I have created properties file in my portal application which extends Abstract Portal Component. This my Log4j.properties file which i created under dist\PORTAL-INF\classses folder. I could read the Properties file. There is no problem on that. I am able to refer the API s available in Log4j. I am using Log4j-1[1].2.14.jar.
log4j.rootLogger = INFO, R1
log4j.appender.R1 = org.apache.log4j.RollingFileAppender
log4j.appender.R1.File = LoggerForMyApplicationC.log
log4j.appender.R1.MaxFileSize=100KB
log4j.appender.R1.MaxBackupIndex=1
log4j.appender.R1.layout=org.apache.log4j.PatternLayout
log4j.appender.R1.layout.ConversionPattern=[%-5p] [%d] [%c] - [%m]%n
But the problem is Log file is not created (LoggerForMyApplicationC.log) under \logs foler in SAP J2EE Server.
Do i miss any other configuration? Please bring me the solution.
Thanks,
MalarMalar,
Check for the file in the server folder of your server installed directory.
ie..<Drive where server installed>:\usr\sap\<name>\<instance>\j2ee\<server node>
Regards
Abu Bakar -
Service PO for Multiple Acct Assig is not created using BAPI_PO_CREATE1
Hi,
Im unable to create the Service po with multiple acct assiignment using BAPI_PO_CREATE1
Header Data
w_poheader-comp_code = w_src-bukrs. "Company Code
w_poheader-doc_type = w_src-bsart. "Document type
w_poheader-delete_ind = w_src-vrtkz. "Deletion Indicator
CLEAR: lv_date.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
date_external = w_src-aedat
IMPORTING
date_internal = lv_date
EXCEPTIONS
date_external_is_invalid = 1
OTHERS = 2.
w_poheader-creat_date = lv_date. "Creation Date
w_poheader-created_by = sy-uname. "Creator Name
w_poheader-vendor = w_src-lifnr. "Vendor
w_poheader-pmnttrms = w_src-zterm. "Payment Terms
w_poheader-purch_org = w_src-ekorg. "Purchase Organization
w_poheader-pur_group = w_src-ekgrp. "Purchase Group
w_poheader-ref_1 = w_src-ihrez. "OLD PO
w_poheaderx-comp_code = 'X'. "Company Code
w_poheaderx-doc_type = 'X'. "Document type
w_poheaderx-delete_ind = 'X'. "Deletion Indicator
w_poheaderx-creat_date = 'X'. "Creation Date
w_poheaderx-created_by = 'X'.
w_poheaderx-vendor = 'X'.
w_poheaderx-pmnttrms = 'X'. "Payment Terms
w_poheaderx-purch_org = 'X'. "Purchase Organization
w_poheaderx-pur_group = 'X'. "Purchase Group
w_poheaderx-ref_1 = 'X'.
Item Data
w_poitem-po_item = w_src-ebelp.
IF NOT w_src-elikz IS INITIAL.
w_poitem-delete_ind = w_src-elikz.
ENDIF.
IF NOT w_src-txz01 IS INITIAL.
w_poitem-short_text = w_src-txz01.
ENDIF.
IF NOT w_src-werks IS INITIAL.
w_poitem-plant = w_src-werks.
ENDIF.
Material group
IF NOT w_src-matkl IS INITIAL.
w_poitem-matl_group = w_src-matkl.
ENDIF.
Open or Partial Qty
IF w_src-opqty IS NOT INITIAL.
w_poitem-quantity = w_src-opqty.
ELSEIF NOT w_src-paqty IS INITIAL.
w_poitem-quantity = w_src-paqty.
ENDIF.
IF NOT w_src-meins IS INITIAL.
w_poitem-po_unit = w_src-meins. "Base Unit of Measure
ENDIF.
IF NOT w_src-netpr IS INITIAL.
w_poitem-net_price = w_src-netpr. "Net Price
ENDIF.
IF NOT w_src-mwskz IS INITIAL.
w_poitem-tax_code = w_src-mwskz.
ENDIF.
IF NOT w_src-pstyp IS INITIAL.
w_poitem-item_cat = w_src-pstyp.
ENDIF.
IF NOT w_src-knttp IS INITIAL.
w_poitem-acctasscat = w_src-knttp.
ENDIF.
w_src-vrtkz = '2'. "Added
IF NOT w_src-vrtkz IS INITIAL.
w_poitem-distrib = w_src-vrtkz.
ENDIF.
Package No
IF w_src-srv_line_no EQ '2'.
w_poitem-pckg_no = 0000000001. "Assign dummy package no "w_src-packno. "Package no
ELSEIF w_src-srv_line_no EQ '3'.
w_poitem-pckg_no = 0000000004. "Assign dummy package no "w_src-packno. "Package no
ENDIF.
IF w_poitem-delete_ind IS INITIAL AND
w_poitem-short_text IS INITIAL AND
w_poitem-plant IS INITIAL AND
w_poitem-matl_group IS INITIAL AND
w_poitem-quantity IS INITIAL AND
w_poitem-po_unit IS INITIAL AND
w_poitem-net_price IS INITIAL AND
w_poitem-tax_code IS INITIAL.
CLEAR lv_item.
ELSE.
APPEND w_poitem TO i_poitem.
CLEAR: w_poitem.
lv_item = 'X'.
ENDIF.
w_poitemx-po_item = w_src-ebelp.
w_poitemx-delete_ind = 'X'.
w_poitemx-short_text = 'X'.
w_poitemx-plant = 'X'.
w_poitemx-matl_group = 'X'.
w_poitemx-quantity = 'X'.
w_poitemx-po_unit = 'X'.
w_poitemx-net_price = 'X'.
w_poitemx-tax_code = 'X'.
w_poitemx-item_cat = 'X'.
w_poitemx-acctasscat = 'X'.
w_poitemx-distrib = 'X'.
w_poitemx-pckg_no = 'X'.
IF lv_item = 'X'.
APPEND w_poitemx TO i_poitemx.
CLEAR: w_poitemx,
lv_item.
ENDIF.
PO Deliery Address
w_poaddrdelivery-po_item = w_src-ebelp.
IF NOT w_src-adrn2 IS INITIAL.
w_poaddrdelivery-addr_no = w_src-adrn2.
APPEND w_poaddrdelivery TO i_poaddrdelivery.
CLEAR w_poaddrdelivery.
ENDIF.
POschedule
w_poschedule-po_item = w_src-ebelp.
w_poschedule-SCHED_LINE = w_src-
CLEAR: lv_date.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
date_external = w_src-eindt
IMPORTING
date_internal = lv_date
EXCEPTIONS
date_external_is_invalid = 1
OTHERS = 2.
IF NOT lv_date IS INITIAL.
w_poschedule-del_datcat_ext = 'D'. "Delivery Date in Day Format
w_poschedule-delivery_date = lv_date.
w_poschedule-quantity = w_src-menge.
APPEND w_poschedule TO i_poschedule.
CLEAR w_poschedule.
lv_schd = 'X'.
ENDIF.
w_poschedulex-po_item = w_src-ebelp.
w_poschedule-SCHED_LINE = 'X'.
w_poschedulex-del_datcat_ext = 'X'.
w_poschedulex-delivery_date = 'X'.
w_poschedulex-quantity = 'X'.
IF lv_schd = 'X'.
APPEND w_poschedulex TO i_poschedulex.
CLEAR : w_poschedulex,
lv_schd.
ENDIF.
PO Account Assignment
w_poaccount-po_item = w_src-ebelp.
w_poaccount-serial_no = w_src-zekkn.
Distribution Indicator is 1
IF w_src-vrtkz EQ '1'.
w_poaccount-distr_perc = w_src-vproz.
IF NOT w_src-menge IS INITIAL.
CLEAR lv_menge.
lv_menge = w_src-menge.
ENDIF.
lv_acct_qty = lv_menge * w_src-vproz / 100.
Get Round value of Quanity
frac = FRAC( lv_acct_qty ).
IF frac EQ 0.
lv_acct_qty = FLOOR( lv_acct_qty ).
ELSE.
lv_acct_qty = CEIL( lv_acct_qty ).
ENDIF.
w_poaccount-quantity = lv_acct_qty.
ELSEIF w_src-vrtkz IS INITIAL.
w_poaccount-quantity = w_src-menge.
ENDIF.
w_poaccount-quantity = w_src-menge. "added
w_poaccount-gl_account = w_src-saknr.
w_poaccount-costcenter = w_src-kostl.
w_poaccount-asset_no = w_src-anln1.
w_poaccount-wbs_element = w_src-wbs.
w_poaccount-network = w_src-nplnr.
w_poaccount-tax_code = w_src-mwskz.
w_poaccount-activity = w_src-vornr.
APPEND w_poaccount TO i_poaccount.
CLEAR w_poaccount.
w_poaccountx-po_item = w_src-ebelp.
w_poaccountx-serial_no = w_src-zekkn.
IF w_src-vrtkz EQ '1'.
w_poaccountx-distr_perc = 'X'.
ENDIF.
w_poaccountx-quantity = 'X'.
w_poaccountx-gl_account = 'X'.
w_poaccountx-costcenter = 'X'.
w_poaccountx-wbs_element = 'X'.
w_poaccountx-network = 'X'.
w_poaccountx-tax_code = 'X'.
w_poaccountx-activity = 'X'.
w_poaccountx-cmmt_item = 'X'.
APPEND w_poaccountx TO i_poaccountx.
CLEAR w_poaccountx.
Extension for ZZSub
IF NOT w_src-zzsub IS INITIAL.
w_extensionin-structure = 'BAPI_TE_MEPOACCOUNTING'.
w_extensionin-valuepart1+0(5) = w_src-ebelp.
w_extensionin-valuepart1+5(2) = '01'.
w_extensionin-valuepart1+28(5) = w_src-zzsub.
APPEND w_extensionin TO i_extensionin.
CLEAR w_extensionin.
w_extensionin-structure = 'BAPI_TE_MEPOACCOUNTINGX'.
w_extensionin-valuepart1+0(5) = w_src-ebelp.
w_extensionin-valuepart1+5(2) = '01'.
w_extensionin-valuepart1+11(1) = 'X'.
APPEND w_extensionin TO i_extensionin.
CLEAR w_extensionin.
ENDIF.
Extension to add Expense Type only
IF NOT w_src-zzexptype IS INITIAL.
w_extensionin-structure = 'BAPI_TE_MEPOHEADER'.
w_extensionin-valuepart1+10(4) = w_src-zzexptype.
APPEND w_extensionin TO i_extensionin.
CLEAR w_extensionin.
w_extensionin-structure = 'BAPI_TE_MEPOHEADERX'.
w_extensionin-valuepart1+10(4) = 'X'.
APPEND w_extensionin TO i_extensionin.
CLEAR w_extensionin.
ENDIF.
EXPORT i_extensionin[] TO MEMORY ID 'SUB'.
PO Services( One Line Iem)
IF w_src-srv_line_no EQ '2'.
w_poservices-pckg_no = 0000000001. "w_src-packno. "(assign package no as a dummy number)
w_poservices-line_no = 0000000001. "w_src-srv_line_no. "Line item
w_poservices-outl_ind = 'X'.
w_poservices-subpckg_no = 0000000003. "w_src-sub_packno. "(Dummy No.) "Sub package no
w_poservices-quantity = w_src-srqty. "Service Quantity
w_poservices-base_uom = w_src-srmeins. "Service Basic unit of Measure
w_poservices-price_unit = '1'.
w_poservices-from_line = '1'.
w_poservices-gr_price = w_src-brtwr. "GR Price
w_poservices-short_text = w_src-sh_text1. "Service Short Text
APPEND w_poservices TO i_poservices.
CLEAR w_poservices.
PO Services(Second Line Item )
w_poservices-pckg_no = 0000000003. "w_src-sub_packno. "(Dummy No.) "Sub package no
w_poservices-line_no = 0000000002.
w_poservices-ext_line = w_src-extrow. "External line
w_poservices-quantity = w_src-srqty. "Service Quantity
w_poservices-base_uom = w_src-srmeins. "Service Basic unit of Measure
w_poservices-price_unit = '1'.
w_poservices-gr_price = w_src-brtwr. "GR Price
w_poservices-short_text = w_src-sh_text1. "Service Short Text
APPEND w_poservices TO i_poservices.
CLEAR w_poservices.
PO Service Access values
w_posrvacc-pckg_no = 0000000003. "w_src-sub_packno. "Sub package no
w_posrvacc-line_no = 0000000002. "w_src-srv_line_no. "Line item
w_posrvacc-serno_line = w_src-zekkn. "'01'.
IF w_src-vproz IS INITIAL.
w_posrvacc-percentage = '100.0'.
ENDIF.
w_posrvacc-serial_no = '01'.
w_posrvacc-quantity = w_src-srqty. "Service Quantity
APPEND w_posrvacc TO i_posrvacc.
CLEAR w_posrvacc.
ELSEIF w_src-srv_line_no EQ '3'.
PO Services
if w_src-srv_line_no EQ '2'.
w_poservices-pckg_no = 0000000004. "(assign package no as a dummy number)
w_poservices-line_no = 0000000001. "Line item
w_poservices-outl_ind = 'X'.
w_poservices-subpckg_no = 0000000005. "(Dummy No.) "Sub package no
w_poservices-from_line = '1'.
APPEND w_poservices TO i_poservices.
CLEAR w_poservices.
w_poservices-pckg_no = 0000000005. "w_src-sub_packno. "(Dummy No.) "Sub package no
w_poservices-line_no = 0000000002.
w_poservices-ext_line = w_src-extrow. "External line
w_poservices-quantity = w_src-srqty. "Service Quantity
w_poservices-base_uom = w_src-srmeins. "Service Basic unit of Measure
w_poservices-price_unit = '1'.
w_poservices-gr_price = w_src-brtwr. "GR Price
w_poservices-short_text = w_src-sh_text1. "Service Short Text
APPEND w_poservices TO i_poservices.
CLEAR w_poservices.
endif.
if w_src-srv_line_no EQ '3'.
w_poservices-pckg_no = 0000000005. "w_src-sub_packno. "(Dummy No.) "Sub package no
w_poservices-line_no = 0000000003.
w_poservices-ext_line = w_src-extrow. "External line
w_poservices-quantity = w_src-srqty. "Service Quantity
w_poservices-base_uom = w_src-srmeins. "Service Basic unit of Measure
w_poservices-price_unit = '1'.
w_poservices-gr_price = w_src-brtwr. "GR Price
w_poservices-short_text = w_src-sh_text1. "Service Short Text
APPEND w_poservices TO i_poservices.
CLEAR w_poservices.
endif.
PO Service Access values
if w_src-srv_line_no EQ '2'.
w_posrvacc-pckg_no = 0000000005. "w_src-sub_packno. "Sub package no
w_posrvacc-line_no = 0000000002. "w_src-srv_line_no. "Line item
w_posrvacc-serno_line = '01'.
w_posrvacc-percentage = '100.0'.
w_posrvacc-serial_no = '01'. "w_src-zekkn.
w_posrvacc-quantity = w_src-srqty. "Service Quantity
APPEND w_posrvacc TO i_posrvacc.
CLEAR w_posrvacc.
endif.
if w_src-srv_line_no EQ '3'.
w_posrvacc-pckg_no = 0000000005. "w_src-sub_packno. "Sub package no
w_posrvacc-line_no = 0000000003. "w_src-srv_line_no. "Line item
w_posrvacc-serno_line = '01'.
w_posrvacc-percentage = '100.0'.
w_posrvacc-serial_no = '02'. "w_src-zekkn. "'01'.
w_posrvacc-quantity = w_src-srqty. "Service Quantity
APPEND w_posrvacc TO i_posrvacc.
CLEAR w_posrvacc.
endif.
ENDIF.
ENDIF.
***Create a NEW PO
Call BAPI
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = w_poheader
poheaderx = w_poheaderx
TESTRUN = ' '
IMPORTING
exppurchaseorder = gv_ebeln
TABLES
return = i_return
poitem = i_poitem[]
poitemx = i_poitemx[]
poaddrdelivery = i_poaddrdelivery[]
poschedule = i_poschedule[]
poschedulex = i_poschedulex[]
poaccount = i_poaccount[]
poaccountx = i_poaccountx[]
poservices = i_poservices[]
posrvaccessvalues = i_posrvacc[]
extensionin = i_extensionin[].
Commit the Transaction
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
Regards,
Deepthi.it is solved
-
Web Service is not triggering using Adobe Interactive Form
Hello Experts,
I know this is a common topic now , but the problem I am facing, no thread help me to solve that.
Problem:--
My requirement is to create an adobe form , in which
-> an input field is needed,and some description is needed.
I used button to trigger my webservice.
Here , I want to clear that , I have made a proper WEB SERVICE using Remote Enabled FM.
My web service is working fine as I have tested from WS NAVIGATOR(Note: http://<source>:<port>/wsnavigator).
In Adobe Form (SFP), I have made a new Data connection using WebService WSDL.
All Request and Response parameters are availabe in Data View palletes of Form.
Button that is available from data connection is used.
I have used Button as an Execute button , under execute tab in connection , I had given DATA CONNECTION name .
But above things not worked so ,
I also tried with Regular Button , and under click written Javascript/FormCalc which is:--
var cURL = 'http://x.y.com:8012/sap/bc/srt/rfc/sap/ZMATERIAL_DESCRIPTION?sap-client=800&wsdl=1.1';
var service = SOAP.connect(cURL);
xfa.connectionSet.DataConnection2.execute(0);
But this also not worked .
So, I think there can be a little issue may be , I am forgetting to click some special atrributes in form .
Please help me and let me know what can be probable reasons that webservice is not triggering
Thanks a lot ,
JeetSolved my self, converted PDF into image and used that pdf as a static image in Adobe Interactive Form.
Maybe you are looking for
-
Dear, I'm looking inf. how to connect Agilent Infiniium 54831B scope with LabView 6.0 by LAN (TCP/IP). Thanks in advance. Regards, Z.Mrowka mailto:[email protected]
-
Host activity lighs ALL light up. RAID VERY slow.
Hi... I have three XRAIDs. One is connected to an Xserve serving as fileserver. I'm having issues with it. Suddenly for no apparent reason it will light up all the Host Activity Lights - it appears like it's working REALLY hard! - But nothing really
-
HI, Can any one help me, I am planning to install project server 2013, what are the service applications and Services ( Manage services on server in central admin ) in sharepoint are required for project server 2013 to work fine, so that i will run
-
Fingerprint reader functionality in Arch; possible?
Thus far I am loving my first (actual) install of Arch, but am begginning to miss the use of my fingerprint reader. If theres no way it will work, I suppose thats ok, but I feel like its a waste of some nifty hardware. I have a Thinkpad X60s. Let me
-
How can I create a shadow text effect?
How can I add a blur effect to text on a BufferedImage. I am trying to create a shadow text effect. Here is what I have currently. BufferedImage image = new BufferedImage(500,120,BufferedImage.TYPE_INT_RGB); Rectangle2D Rectangle = new Rectangle2D.Do