Example code for BAPI_NETWORK_MAINTAIN
Hi All,
I need to create a network, network activity and its components using BAPI (BAPI_NETWORK_MAINTAIN).
Can any one tell me out to find the mandatory tables and its parameters.
if possible with example code.
One More question, when i am creating a network, Which network number do i need to pass as objectkey in IMETHOD table ?
Same number i need to pass in INETWORK table also?
Do i need to use some existing number or the number will be assigned by system?
When the BAPI ends with error, i can see error messages in message table.
if BAPI is success, does it give any messages like success message.
Thanks,
Swapna.
Hi,,
See the example
create network ***********
if not network is initial.
MOVE '000001' TO itnetmethod-refnumber.
MOVE 'NETWORK' TO itnetmethod-objecttype.
MOVE 'CREATE' TO itnetmethod-method.
MOVE network TO itnetmethod-objectkey.
APPEND itnetmethod.
MOVE '000000' TO itnetmethod-refnumber.
MOVE ' ' TO itnetmethod-objecttype.
MOVE 'SAVE' TO itnetmethod-method.
MOVE ' ' TO itnetmethod-objectkey.
APPEND itnetmethod.
MOVE network TO itnetwork-network.
MOVE network_type TO itnetwork-network_type.
MOVE vplant TO itnetwork-plant.
MOVE 'NEW NETWORK' TO itnetwork-short_text.
MOVE wbs_element TO itnetwork-wbs_element.
MOVE '001' TO itnetwork-mrp_controller.
MOVE project_definition TO itnetwork-project_definition.
MOVE profile TO itnetwork-profile.
APPEND itnetwork.
REFRESH itemsg.
CALL FUNCTION 'BAPI_NETWORK_MAINTAIN'
IMPORTING
RETURN =
TABLES
i_method_project = itnetmethod
i_network = itnetwork
I_NETWORK_UPDATE =
I_ACTIVITY =
I_ACTIVITY_UPDATE =
I_RELATION =
I_RELATION_UPDATE =
e_message_table = itemsg.
I_ACTIVITY_ELEMENT =
I_ACTIVITY_ELEMENT_UPDATE =
I_ACTIVITY_MILESTONE =
I_ACTIVITY_MILESTONE_UPDATE =
IF sy-subrc = 0.
ENDIF.
LOOP AT itemsg.
MOVE : itemsg-method to network_create_error-method,
itemsg-object_type to network_create_error-OBJECT_TYPE,
itemsg-internal_object_id to
network_create_error-INTERNAL_OBJECT_ID,
itemsg-external_object_id to
network_create_error-EXTERNAL_OBJECT_ID,
itemsg-message_id to network_create_error-MESSAGE_ID,
itemsg-message_number to
network_create_error-MESSAGE_NUMBER,
itemsg-message_type to network_create_error-MESSAGE_TYPE,
itemsg-message_text to network_create_error-MESSAGE_TEXT.
append network_create_error.
clear itemsg.
endloop.
COMMIT WORK .
WAIT UP TO 1 SECONDS.
endif. "if not network is initial
Regards
Mudit
Similar Messages
-
Is there example code for using Ni488 and PCI-GPIB card in non controller mode?
Is there example code for using Ni488 and PCI-GPIB card in non controller mode?
cymrieg,
Your code looks good to me. What is the problem? What happens when it fails? What is the IBSTA value on the controller, and at what point in the code does it stop? What is the IBSTA value on the slave, and at what point does it stop?
One thing is that you might not want to call IBCLR() in a loop on the device. At the beginning of the program is fine...This will send a clear command to the device and will clear out any LACS and TACS bits that might be set. Also your IBDEV call shouldn't be in a loop.
Hope this helps, but let me know if you need more information.
Scott B.
GPIB Software
National Instruments -
Incoming payments - payment on account example code for 8.8
Hi
Would anyone have example code for SAP B1 8.8 of an incoming payment - payment on account example please
Thanks
Regards AndyHi Ed
Thanks
I actually had a problem with my own code but it turned out someone gave me the wrong gl code to use !
Thanks again
Regards Andy -
Example codes for each and every class in API
hi,
Is there any place where i can get example code for eacha and every class in java API.
for eample...if i wanna find sample codes for all the clases in java.lang.*
please let me know ASAP.
thanks in advanceTry this
http://www.javaalmanac.com/egs/
It's almost complete, but you could help mr. Patrick Chan to write more samples for the few classes left in the Java API... -
Example Code for Routine at Data Target in Info Package.
Hi,
Can any one send the example code for writing the routines at Data Target of Info Package for Deleting the Request from Info Cube after Update.
Thanks in Advance,
Regards,
srinivasHi All,
I want to know some examples for guidance in writing the Abap Routine at Data Target of Info Package for Deleting the Request from Info Cube after Update.
In the Data Targets of Info Package for Info Cubes we can delete the previous request based on the Conditions, exceptions and also based on the Abap Routine. I just want to know how do we write the Routine.
This option is adjacent to the Maintain to Data Target in Data Targets of Info Package and will available for Info cube only.
Thanks in Advance,
Regards,
srinivas -
Could you provide example code for interactive form
Dear all.
I have got document at link below
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
In that document it has some part of abap code.
Could you have full example code for interactive form online and offline?
Thank you very much.Hi,
Go to the following link to know more about adobe interactive form.
http://wwwimages.adobe.com/www.adobe.com/enterprise/partners/pdfs/bwp_interactive_forms_adobe.pdf
The following link contains a offline application in ABAP. You can try it.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
For further questions, check the follow
https://www.sdn.sap.com/irj/sdn/adobe
Improving the Performance of Adobe® LiveCycleu2122 Designer Forms(scripting)
http://www.adobe.com/devnet/livecycle/articles/lc_designer_perf_guidelines.pdf
Interactive Forms Based on Adobe Software: Overview
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e635e290-0201-0010-a9be-9e8e4ce04770
Adobe Interactive Forms
http://www.saplounge.be/Files/media/pdf/Huberland-Interactive-Forms-2007.10.10.pdf
Taking interactive forms to next level
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8c103c36-0301-0010-cda8-f6b381bedb6e
Introduction to Adobe PDF Library SDK(PDFL SDK)(Simply scroll the document)
http://partners.adobe.com/public/developer/en/webseminars/PDFL_WebSeminar.pdf
Creating Interactive forms in webdynpro for java
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1
PDF-Based Print Forms/SAP Interactive Forms by Adobe
http://help.sap.com/saphelp_nw04s/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/frameset.htm
Date Objects in Adobe Designer
http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
Checking and Testing a PDF-Based Print Form
http://help.sap.com/saphelp_nw04s/helpdata/en/c2/1fe9aa4d7b413e8515f90b73729e97/frameset.htm
Architecture
http://help.sap.com/saphelp_nw04/helpdata/en/f2/21021b911f4c0cae11459a4ce0bc62/frameset.htm
http://www.nl4b.com/Adobe/Invitation_SAPBrussels_Q407.pdf
Hope this helps!!
Regards,
Arafat -
I want the example code for Calendar() and TimeZone() in java
Hi,
I want the example code for the TimeZone() and Calendar() class in java
because i new to java, i am not able to understand the concepts properly.
Thanks...Hi Paolo Dema.
What are the exact spefications of your computer?
Also did you computer come with 10.6 ot 10.5?.
You may try entering the MPN (marketing part number) Format: M*****/**
The MPN can be found on the product packaging or the System Profiler. -
Example code for each and every class in java API
hi,
Is there any place where i can get example code for eacha and every class in java API.
for eample...if i wanna find sample codes for all the clases in java.lang.*
please let me know ASAP.
thanks in advanceCrossposted here: http://forum.java.sun.com/thread.jsp?thread=570264&forum=54&message=2820774
-
Hi:
I studied Bus\USB document of WDK. This document forces on developing USB device driver.
And there are some IOCTL Interfaces of usb bus driver exposed to usb device, like IOCTL_INTERNAL_USB_SUBMIT_URB.
But those IOCTL Interfaces seem to belong to USB hub driver(usbhub.sys).
My job is to developing a usb mini port driver, like usbehci.sys. That can work with usbport.sys.
So I should know the communication interfaces(IOCTL...etc) between them and implement these interfaces.
Is there a reference document(example, code) for developing usb mini port driver ?No there is no reference documents for this, Microsoft stated from the beginning that they own that layer. You really don't want to go there.
Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com -
Documentation/Example Code for WAPI
Can anybody point me to a place from where i can get Documentation or Example Code for WAPI calls. Especially
SAP_WAPI_START_WORKFLOW
SAP_WAPI_WRITE_CONTAINER.Can anybody point me to a place from where i can get Documentation or Example Code for WAPI calls. Especially
SAP_WAPI_START_WORKFLOW
SAP_WAPI_WRITE_CONTAINER. -
Awesome Site with Example Code For All Classes
Very cool site that has example code for all the Java classes and APIs. You can submit example code yourself too!
http://www.kickjava.com/kevjava wrote: Some things that I think would be useful:
Suggestions reordered to suit my reply..
kevjava wrote: 2. Line numbering, and/or a line counter so you can see how much scrolling you're going to be imposing on the forum readers.
Good idea, and since the line count is only a handful of lines of code to implement, I took that option. See the [line count|http://pscode.org/stbc/help.html#linecount] section of the (new) [STBC Help|http://pscode.org/stbc/help.html] page for more details. (Insert plaintiff whining about the arbitrary limits set - here).
I considered adding line length checking, but the [Text Width Checker|http://pscode.org/twc/] ('sold separately') already has that covered, and I would prefer to keep this tool more specific to compilation, which leads me to..
kevjava wrote: 1. A button to run the code, to see that it demonstrates the problem that you wish for the forum to solve...
Interesting idea, but I think that is better suited to a more full blown (but still relatively simple) GUId compiler. I am not fully decided that running a class is unsuited to STBC, but I am more likely to implement a clickable list of compilation errors, than a 'run' button.
On the other hand I am thinking the clickable error list is also better suited to an altogether more abled compiler, so don't hold your breath to see either in the STBC.
You might note I have not bothered to update the screenshots to show the line count label. That is because I am still considering error lists and running code, and open to further suggestion (not because I am just slack!). If the screenshots update to include the line count but nothing else, take that as a sign. ;-)
Thanks for your ideas. The line count alone is worth a few Dukes. -
can anybody give one <b>complete example code</b> for
1. Synchronous rfc
2. Asynchronous rfc
3.Transactional rfc.
i know the theory part. what i wanna <b>complete code</b> for each of the above rfc (not only the calling syntax)with the scenario..
points will be rewarded....Hi,
Please find a code of : sRFC...(for aRFC and tRFC give me time of 1 week)
1. Server FM Module ( RFC Enabled).
FUNCTION ZRFC_TEST.
""Local interface:
*" EXPORTING
*" VALUE(TEST) TYPE SSTRING
*" TABLES
*" IT_MARA STRUCTURE MARA
Concatenate 'DATE:' sy-datum into TEST separated by ','.
select * from mara into table it_mara up to 100 rows.
ENDFUNCTION.
2. Client Module:
REPORT ZRFC_CLIENT
TABLES: MARA.
DATA: PTEST TYPE SSTRING.
DATA: IT_MARA TYPE TABLE OF MARA.
DATA: WA_MARA TYPE MARA.
CALL FUNCTION 'ZRFC_TEST'
DESTINATION 'DEST_AAAA'
IMPORTING
TEST = PTEST
TABLES
IT_MARA = IT_MARA.
WRITE: PTEST.
LOOP AT IT_MARA INTO WA_MARA.
< WRITE: > as per your need.
ENDLOOP.
NOTE: You have to Creat DEST_AAAA using TCODE SM59 -
How to modify the ni 9237 example code for 3 9237 modules
I am wanting to modify the ni 9237 example vi(for only one module) for three 9237 modules.
I have tried several approaches but it does not seem to work well.
Your help is greatly appreciated.There are my files. Thanks in anticipation. This code is modified for only 2 ni 9237 modules. I bet it would be a logical extention upon making it work for 2 modules.
Enoch
Attachments:
NI 9237 Getting Started (FPGA).vi 148 KB
NI 9237 Getting Started (Host).vi 459 KB
NI 9237 Getting Started.lvproj 46 KB -
Where can I download LabVIEW example codes for NI PCI-6014
I bought an PCI-6014 DAQ device, please tell me where I can download the LabVIEW codes for this device.
Hi,
If you have labview package, you can find lot of examples there.
Start Labview -> Help Menu -> Find Examples-> Hardware input and output -> DAQ -> Here you either you can go to analog input -> then general -> search vi as per your requirement.
Or you can use timer/counter/digital input & output example vi from here.
Hope it helps. Your feedbacks are welcome.
Best Regards,
Nirmal -
Example code for Trigering a workflow using WAPI from JAVA based tool
Hi Experts,
I am the newest guy in SAP workFlow and BAPI world. I need to trigger a workflow defined in WebFlow engine from a Java client. I know i can use JCo and to use WAPI to get workflow information but i am not sure how it works. Can you give me some example code to trigger one workflow defined in WebFlow using WAPI? If there is any alternative i am interested to know that as well.
Thanks in advance.
Regards,
RiyadhUse Function Module SWE_EVENT_CReate top trigger event that is linked with a Workflow.
<b>Please reward points if useful</b>
INCLUDE <cntn01> .
DATA:i_emp_details TYPE STANDARD TABLE OF p0001, "Employee Details
wa_request TYPE p0001, "Workarea for Employee details
v_country_grp TYPE molga, "Country SubGrouping
v_object_key TYPE sweinstcou-objkey. "Key for the buisness object ZWOBUSTRIP
CONSTANTS: c_bo_trip TYPE swo_objtyp VALUE 'ZWOBUSTRIP',
c_event_trip TYPE swo_event VALUE 'TripCreate',
c_infy_type_1 TYPE infty VALUE '0001'.
Event Container declaration
swc_container i_event_cont.
swc_create_container i_event_cont.
Reading the INFO TYPE 0001 to obtain the
Employee details
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
pernr = i_emp_number
infty = c_infy_type_1
begda = sy-datum
endda = sy-datum
TABLES
infty_tab = i_emp_details
EXCEPTIONS
infty_not_found = 1
OTHERS = 2.
SY-SUBRC check is not required as the error
handelling will be done by WorkFlow rule
resolution.
CLEAR wa_request.
READ TABLE i_emp_details INTO wa_request INDEX 1.
IF sy-subrc = 0.
Retrieving the Country SubGrouping for the employee
SELECT SINGLE molga
FROM t001p
INTO v_country_grp
WHERE werks = wa_request-werks
AND btrtl = wa_request-persk.
ENDIF.
Sending the relevant data to event container
swc_set_element i_event_cont 'EmpId' i_emp_number.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
swc_set_element i_event_cont 'PersonnelArea' wa_request-werks.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
swc_set_element i_event_cont 'CountryGrouping' v_country_grp.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
swc_set_element i_event_cont 'EmpSubGrp' wa_request-persk.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
swc_set_element i_event_cont 'EmpTripId' i_emp_trip.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
Raising the event to trigger the workflow
v_object_key = i_emp_number.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = c_bo_trip
objkey = v_object_key
event = c_event_trip
TABLES
event_container = i_event_cont
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
COMMIT WORK.
ENDFUNCTION.
Thanks
Arghadip
Maybe you are looking for
-
Canon iR-ADV C7260 - Stuck in Queue until Reboot of Printer
Hello All, Have an interesting issue going on with (2) Canon iR-ADV C7260 Printers. Randomly every 2 to 3 days the printer queue on the users end machine will display the job but will not print it. Troubleshooting leads me to believe it is printer r
-
Enhancement on production order
Hi All, User has a requirement that if any operation any qty is confirmed for a production order, system should not allow to change any parameter in production order CO02. Please suggest how to implement this.. regards, Srijit.
-
Avoiding pixelation with image resizing
i just redesigned my site (with a ton of help from many people on this forum--thank you nancy riki osgood Sudarshan!!) i have my thumbnails resizing (using max width: 100%) in a gallery but on a large browser window like my 32" monitor they get pixel
-
Command for remove zeros in sapscript
Hello: I need to remove zeros of a variable in a sapscript, TALGN = 0000427795776 and I need to remove the zeros so: TALGN = 427795776 But sometimes will be 3, 4 or more zeros, is there a way to do it with a sapscript command? or this should be done
-
Which is the best format/codec to work in premiere pro without any lag?
Hi i am editing a short documentary film.I'm a beginner in editing.I have .MOV files which are to be edited.But most of the files are very large(>800MB). Is there any way to work with these files without any lag? or is there a way to optimize premier