Need help passing Sales Order header text to PO header texts
I would really appreciate if someone can help me with this. I am able to pass the line item texts using configuration (text linkage) but SAP does not provide a way to pass header level texts to PO. Any help is appreciated.
Message was edited by: B P
Message was edited by: B P
Message was edited by: B P
Similar Messages
-
Need help in Sales order Header Details
Hellp Experts,
I need to modify data on 'Additional Info B' in Sales Order Header (VA03 Transaction) . As it is a Standard program I am aware that we have to use user Exits. But before that I have to debug the code to that point. I wish to know info from where a particular data is coming in the field (End User). How should I proceed for debugging? Can anybody help me?
Moderators,
I could n't found any similar question when searcher. If it is can you please provide me the links?
Best Regards,
Harish
Moderator message: debugging is standard developer practice, enhancement of this screen has been discussed many times, it seems you did not look in the right places.
Edited by: Thomas Zloch on Nov 30, 2010 5:48 PMHi Harish,
Perhaps have a look at the following thread...
Additional Data B tab blank in VA01
Have a look at some of the includes mentioned in the thread and if you don't find the information there, you should at least be pointed in the right direction.
Kind Regards,
Richard. -
Need help on sales order confirmation out put type
Hi Team,
Please help on this issue.
In our sales document types order confirmation is happening through the inboud idoc, user requrement is once order is confirmed immediately sales order confirmation output type should send sucessfully, but the problem is
Inbound idoc is using the sales order and blocking at the same time RSNAST program is using this sales order for sending the output type but not able to send due to the sales order is blocked by inbound idoc.
Could you some body help me on this how can we proceed on this.
thanks & Regards,
MK.Check the Dispatch time of the Output type in transaction code :NACE. You need not execute RSNAST00, if the despatch time is set to 3 ( Send with application own transaction ) or 4 (Send Immediately). The output will trigger automatically after the sales order is saved.
-
Need help on Sales Order Strategy Group 20.
Hi PP Gurus,
Could anybody please help me out of this problem?
Strategy group 20 is for purely MTO scenario. I know the execution part including most of the possibilities in PP module but I'm not that much aware regarding Costing part for it. Could anybody please focus somewhat on costing part required for it like
1. Sales order costing only required or Periodic or Order based costing also solve the purpose in general?
2. What will be the impact if we go for Sales Order Costing?
Since we are using here REM environment.
Please come with prompt comments.
Thanks & Regards,
Abu ArbabHi,
Since your scenario is MTO, so sale order costing is the most suitable one. It is better to run the sale order costing for each & every sale order. It is similar like the standard cost estimation and EK02 condition type will bring the value in sale order pricing. This condition type you need to define in the requirement class.
regards,
V. Suresh -
LSMW - Need help with Sales Order (Modification VA01)
Hi,
I need help with an LSMW for Sales Order (VA01).
I need to do the following:
1. Copy the Standard Sales Order LSMW
2. They (users) would like to be able to pick the batch (lot) from the sales order.
3. Also, they would like to have functionality, where from the list of Sales Order numbers, they would be able to switch one part number for another.
Please help with the above 3 needs.
Thanks,
LauraHi
Run transaction SE38, insert your program (RVINVB10), select DOCUMENTATION option and press display
Just only you need to consider the BDC program needs to read afile with all informations to create a sales order, so you have to create a program to prepare a file arraged as RVINVB10 needs, the documentaion explains how the file has to be created.
Max -
Need help in sales order creation
How to create a sales order ,invoice,credit memo
step by step.Hi,
SD Flow Cycle:
INQUIRY ( VA11)
|
QUOTATION (VA21)
|
PURCHASE ORDER (ME21)
|
ORDER CONFIRMATION (VA01)
|
PICKING LIST (VL36)
|
PACKING LIST - (VL02, VL01)
|
SHIPPING (VT01)
|
INVOICE (VF21, VF01)
|
AR
SALES ORDER PROCESSING
Creating Sales Order - VA01
Maintaining a Sales Order - VA02
Displaying a Sales Order - VA03
Releasing an Order or Delivery from Credit Hold: Non-Flooring - VKM1
Display List of RMAs by Customer - VA05
Confirm RMA Goods Receipt - VL02
Generate list of open return orders for deletion - VA05
Display Customer returns eligibility - MCSI
Removing a Billing Block (Approving Credit/Debit Requests) - V.23
SHIPPING
Creating a Delivery - VL01N
Displaying a Delivery - VL03N
Changing a Delivery - VL02N
Shipment Inquiry / Display - VT03
Adjusting Transfer Order - Confirmation Quantity - LT12
Collectively Confirm Transfer Order - LT25
Batch Shipment Confirmation - VL19
PGI Reversal Cancellation - VL09
Creating Service Provider/Carrier Master Data - XK01
Maintaining Serive Provider/Carrier Master Data - XK02
Displaying Service Provider/Carrier Master Data - XK03
Maintaining Product Master/Serial # Profile/Unit of Measure/Shipping Unit - MM02
IDoc Inquiry - WE02 / WE05
BILLING
Invoicing a Customer Shipment - VF01
Reprinting an Invoice - VF31
Releasing a Sales Order for Billing - V.23
Creating an Invoice by Using the Billing Due List - VF04
Checking Open Billing Documents - VF05
Create Credit/Debit Memo - FB01
Please Reward If Really Helpful,
Thanks and Regards,
Sateesh.Kandula -
Hi,
I have a code to display Sales order report. But i need to generate Sales order Line item wise Report. Can anyone help me to modify this code to suit my criteria?
DATA: IT_VBAK LIKE VBAK OCCURS 0 WITH HEADER LINE.
DATA: IT_VBAP LIKE VBAP OCCURS 0 WITH HEADER LINE.
PARAMETERS: SORG LIKE VBAK-VKORG,
CCODE LIKE VBAK-BUKRS_VF.
SELECT * FROM VBAK INTO TABLE IT_VBAK UP TO 100 ROWS
WHERE
VKORG = SORG AND
BUKRS_VF = CCODE.
SELECT * FROM VBAP INTO TABLE IT_VBAP UP TO 100 ROWS
FOR ALL ENTRIES IN IT_VBAK
WHERE
VBELN = IT_VBAK-VBELN.
LOOP AT IT_VBAP.
WRITE: / IT_VBAP-VBELN, IT_VBAP-ERNAM, IT_VBAP-POSNR.
ENDLOOP.
Thanks in advance..
Any help will be greatly appritiatedHi
Hope it will help you..
Reward if help.
REPORT ZVRDOC0 no standard page heading
line-size 300
line-count 50(5).
TABLES : vbak, "Sales Document Header Level
vbap, "Sales Document Header Level
kna1. "General Data in customer Master
*INTERNAL TABLE T_VBAP
DATA : Begin of t_vbap occurs 0,
vbeln like vbap-vbeln,
matnr like vbap-matnr,
posnr like vbap-posnr,
arktx like vbap-arktx,
kwmeng like vbap-kwmeng,
cmkua like vbap-cmkua,
end of t_vbap.
*INTERNAL TABLE T_TAB.
DATA : Begin of t_tab occurs 0,
vbeln like vbak-vbeln,
kunnr like vbak-kunnr,
audat like vbak-audat,
netwr like vbak-netwr,
vkorg like vbak-vkorg,
name1 like kna1-name1,
land1 like kna1-land1,
end of t_tab.
*INTERNAL TABLE T_FINAL.
DATA : Begin of t_final occurs 0,
vbeln like vbap-vbeln,
kunnr like vbak-kunnr,
matnr like vbap-matnr,
posnr like vbap-posnr,
arktx like vbap-arktx,
kwmeng like vbap-kwmeng,
cmkua like vbap-cmkua,
audat like vbak-audat,
netwr like vbak-netwr,
vkorg like vbak-vkorg,
name1 like kna1-name1,
land1 like kna1-land1,
end of t_final.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE text-bO3.
parameters : P_kunnr like vbak-kunnr.
select-options : S_vbeln for vbak-vbeln,
S_audat for vbak-audat.
SELECTION-SCREEN END OF BLOCK B1.
start-of-selection.
select vbeln matnr posnr arktx kwmeng cmkua from vbap
into corresponding fields of table t_vbap where vbeln in S_vbeln .
IF sy-subrc EQ 0.
select vbakkunnr vbakvbeln vbakaudat vbaknetwr vbak~vkorg
kna1name1 kna1land1 into table t_Tab from
vbak join kna1 on kna1kunnr = vbakkunnr
FOR ALL ENTRIES IN t_vbap
where vbak~vbeln = t_vbap-Vbeln and
vbak~kunnr = p_kunnr and
vbak~audat in S_audat .
ENDIF.
*end-of-selection.
loop at t_vbap.
read table t_tab with key vbeln = t_vbap-vbeln.
move :
t_vbap-vbeln to t_final-vbeln,
t_vbap-matnr to t_final-matnr,
t_vbap-posnr to t_final-posnr,
t_vbap-arktx to t_final-arktx,
t_vbap-kwmeng to t_final-kwmeng,
t_vbap-cmkua to t_final-cmkua,
t_tab-kunnr to t_final-kunnr,
t_tab-audat to t_final-audat,
t_tab-netwr to t_final-netwr,
t_tab-vkorg to t_final-vkorg,
t_tab-name1 to t_final-name1,
t_tab-land1 to t_final-land1.
append t_final.
clear t_Final.
endloop.
sort t_Final by vbeln Kunnr matnr posnr .
loop at t_final.
at new vbeln.
write : /1 SY-VLINE, 2 t_final-vbeln color 5 inverse.
ULINE /1(250).
endat.
write : /1 SY-VLINE, 2 t_final-vbeln color 5 inverse,
20 SY-VLINE, 21 t_final-posnr color 5 inverse,
40 SY-VLINE, 41 t_final-matnr color 5 inverse,
60 SY-VLINE, 61 t_final-arktx color 4 inverse,
80 SY-VLINE, 81 t_final-kwmeng color 4 inverse,
100 SY-VLINE, 101 t_final-cmkua color 4 inverse,
120 SY-VLINE, 121 t_final-kunnr color 3 inverse,
140 SY-VLINE, 141 t_final-audat color 3 inverse,
160 SY-VLINE, 161 t_final-netwr color 2 inverse,
180 SY-VLINE, 181 t_final-vkorg color 2 inverse,
210 SY-VLINE, 211 t_final-name1 color 1 inverse,
230 SY-VLINE, 231 t_final-land1 color 1 inverse,
250 SY-VLINE.
at end of vbeln.
sum.
ULINE /1(250).
write: /60 SY-VLINE, 'Total' ,
81 t_final-kwmeng color 4 inverse ,100 SY-VLINE,
101 t_final-cmkua color 4 inverse,120 SY-VLINE.
ULINE /1(250).
endat.
at last.
SKIP 2.
sum.
ULINE /1(250).
write: /1 SY-VLINE, 60 SY-VLINE, 'Grand Total' ,
81 t_final-kwmeng color 4 inverse , 100 SY-VLINE ,
101 t_final-cmkua color 4 inverse,120 SY-VLINE.
ULINE /1(250).
endat.
endloop.
TOP-OF-PAGE.
ULINE /50(24).
WRITE : /50 SY-VLINE , 52 'SALES ORDER DETAILS' COLOR 5,
73 SY-VLINE.
ULINE /50(24).
ULINE .
WRITE: /10 'CURRENT DATE :', 25 SY-DATUM COLOR 1 INVERSE,
100 'CURRENT TIME :', 115 SY-UZEIT color 5 INVERSE.
WRITE: /10 'USERNAME :', 25 SY-UNAME COLOR 1 INVERSE,
100 'PAGE NO :', 113 SY-PAGNO COLOR 5 INVERSE.
WRITE: /10 'LOGON CLIENT :', 25 SY-MANDT COLOR 1 INVERSE,
100 'COLON N0 :', 114 SY-COLNO COLOR 5 INVERSE.
WRITE: /10 'CURRENT REPROT:', 25 SY-REPID COLOR 1 INVERSE,
100 'LANGUAGE :', 116 SY-LANGU COLOR 5 INVERSE.
ULINE.
ULINE /1(250).
write : /1 SY-VLINE, 2 'SALES DOC NO' color 6 inverse,
20 SY-VLINE, 21 'SALES DOC ITEM' color 6 inverse,
40 SY-VLINE,41 'MATERIAL NO' color 6 inverse,
60 SY-VLINE, 61 'SHORT SALES TEXT' color 6 inverse,
80 SY-VLINE, 81 'CUMM ORDER SALES' color 6 inverse,
100 SY-VLINE, 101 'CREDIT DATA' color 6 inverse,
120 SY-VLINE, 121 'CUSTOMER NO' color 6 inverse,
140 SY-VLINE, 141 'DOC DATE' color 6 inverse,
160 SY-VLINE, 161 'NET VALUE SALES' color 6 inverse,
180 SY-VLINE, 181 'SALES ORG' color 6 inverse,
210 SY-VLINE, 211 'CUSTOMER NAME' color 6 inverse,
230 SY-VLINE, 231 'CUSTOMER CONTY' color 6 inverse,
250 SY-VLINE.
ULINE /1(250).
END-OF-PAGE.
ULINE.
WRITE: /45 ' THIS IS END OF PAGE FOR SALES DOCUMENT DETAILS'
COLOR 6 . -
Need to modify Sales order Item additional tab B
Hello all,
I need to modify Sales order item additional tab B ...by removing the exisitng fields and should add some new fields ....does it have any impact on this screen could be used in any of the other transaction .......i just wanted if we remove the fields and some new details will have some impact
Regards,
KKAdditional data B is used to add your own fields also known as custom fields in sales order.
Custom fields can be added to tables VBAK & VBAP (depending on header or item). Similarly you can remove fields if you don't require it anymore.
In short, your requirement can be met but you have to take help of ABAP consultant since it requires maintenance of user exits and modification of screens. -
Need code for sales order create report using bapi's
need code for sales order create report using bapi's
Hi,
Go through below link
http://www.saptechies.com/bapi_salesorder_createfromdat2/
<b>Reward points if it helps,</b>
Satish -
Need code for Sales order creation in oops using xi as integration server
Need code for Sales order creation in oops using xi as integration server.
hi rocky,
could you pls give a bit explanation on what you are expecting.
regards,
Pavan -
Need to Disable Sales Order Header Text
Hi everyone,
My problem goes like this:
We have a header text in the sales order that is being filled in by an external program. Since this header text is being read by the same external program, it is very important that the user does not change the data in the header text.
So what we would like to do is to permanently disable this header text, meaning, it should still be there, but the user will not be able to modify the value of the header text.
Please, can anyone help? Points for any useful, helpful answer.
Thanks again.If u are using a Smartform , then Hardcode the text in the Smartform, rather than passing it from the external program..
Or in the External program itself do the following changes....
suppose wf_text is the parameter in the External Program thru which u r passing the Text...
Then in ur Program write wf_text = 'Header Text'. This hardcoding will by default pass ur required value , irrespective of wat the user enters....
If my understanding of ur problem is clear...then this is going to help u...
Reward points if the above ans is useful... -
Help needed in blocked sales order list vkm1
Scenerio is that currently the sales coordination department views all blocked sales orders thru t-code VKM1
The company said they want sales coordination department to view ONLY the sales orders under the value of 300,000rs. (That value being flexible can be changed to 200,000 in the near future.)
They also want the finance department to also view credit (this being a filter search criteria) sales orders BUT ABOVE the value of 300,000rs (That value being flexible can be changed to 200,000 in the near future.) And have the right to release the orders. So in other words 2 different views for the two different departments.
What comes to my mind of a way to do this is by creating 2 query reports with a variant of a < less then, >greater then, or = equal too. And thru this query report I can assign the users to only be able to use that report hence, fi report, sd report view. But I am confused in how to begin and setting this up. Please help with any ideas and configuration tips. Which table or field to use in the query report for this?Hi,
For this requirement, i would suggest 1.you design two separate layouts and
2.ask your basis consultant to assign this two layouts to the two set of departments so that one is authorised to use the first layout and the other department is authorised to use the second layout, please try this out and let me know.
I have checked the layout, there you cannot restrict a particular document value, instead design a user exit and use it for the two departments.
regards,
US
Edited by: usasapsd usasapsd on Mar 2, 2009 7:33 AM -
Need help in the order Freezing
Hi SD Friends
One of my sales order needs to be blocked (It has 2 line items). That means user does not need this order anymore. But they don't want to delete the order physically from database.
In this case, I have rejected the both line items. And the entire order status becomes completed. But the delete option is still active.
Then, I have selected the order reason (Blocking) in the header level. Delete is still active.
I want to prevent this order from this delete option.
How to freeze the order after rejection of all items?
OR how to disable the delete option in the above scenario.
Please help !!
Regards
PriyanThanks Mani S
Do you have any samle code (user exit) for this activity.
Please share with me !!
Regards
Priyan -
Hi ,BAPI Needed to create sales order
Hi,
i want to create a salesorder by giving quotation number as an input.
whenever sales quotation is saved it should check for some conditions and finally it should automatically create the sales order of type ZMS without user intervention.
Please can any one help in finding the BAPI .Please explain me how to implement same...
regards
manjuCheck the Program -
REPORT ZCREATE_SO.
DATA : ORDER_HEADER_IN1 TYPE BAPISDHD1.
DATA: ORDER_PARTNERS1 TYPE BAPIPARNR OCCURS 0 WITH HEADER LINE.
DATA: ORDER_ITEMS_IN1 TYPE BAPISDITM OCCURS 0 WITH HEADER LINE.
DATA : SALESDOCUMENT1 TYPE BAPIVBELN-VBELN.
DATA : RETURN1 TYPE BAPIRET2 OCCURS 0.
DATA : RETURN2 TYPE BAPIRET2.
DATA: WA_RETURN1 TYPE BAPIRET2.
start-of-selection.
Fill the Header Details
order_header_IN1-DOC_TYPE = 'TA'.
order_header_IN1-SALES_ORG = '1001'.
order_header_IN1-DISTR_CHAN = '10'.
order_header_IN1-division = '10'.
Fill the Partner Details
ORDER_PARTNERS1-PARTN_ROLE = 'WE'.
ORDER_PARTNERS1-PARTN_NUMB = '0000000008'.
append ORDER_PARTNERS1.
Fill the Item details
ORDER_ITEMS_IN1-MATERIAL = 'A0900002'.
ORDER_ITEMS_IN1-TARGET_QTY = '10'.
append ORDER_ITEMS_IN1.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
SALESDOCUMENTIN =
ORDER_HEADER_IN = order_header_IN1
ORDER_HEADER_INX =
SENDER =
BINARY_RELATIONSHIPTYPE =
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
SALESDOCUMENT =
TABLES
RETURN = RETURN1
ORDER_ITEMS_IN = ORDER_ITEMS_IN1
ORDER_ITEMS_INX =
ORDER_PARTNERS = ORDER_PARTNERS1
ORDER_SCHEDULES_IN =
ORDER_SCHEDULES_INX =
ORDER_CONDITIONS_IN =
ORDER_CONDITIONS_INX =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
ORDER_CCARD =
ORDER_TEXT =
ORDER_KEYS =
EXTENSIONIN =
PARTNERADDRESSES =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = space
IMPORTING
RETURN = return2
loop at return1 into wa_return1.
endloop.
Also go through the Documentation in SE37 it is very helpful. -
Gurus,
I have to write the logic to fetch data from bkpf and bseg. Need help on how can i do that..
I have to get bukrs belnr gjahr ldgrp from BKPF for a given date and company code. For all these documents, then i have to get the line items from BSEG if the ldgrp is I1 or SPACE.
If the ldgrp is not I1 or SPACE then i have to fetch the records from BSEG_ADD and then generate a ALV report with all the data including the data that was fetched from BKPF.
So, it wil be a combined ALV report that displays header as well as LINE item data together...
Can u please help me with the code...I am not sure how can everything go all together in one internal table....Becoz once its there in one table then only a ALV list can be generated.......
Cheers:
Samhi Sam, this may be of some similar thing.
Use this program, I got this prog from a source and we added a small conditional check in the program which checks document numbers in BSEG and also comapres in BKPF and sees if the output from BSEG falls under the posting data range specified in the initial selection.
Now just so you know, this output is kinda messed up, so you will have to play with it in Excel to extract the document numbers, if that is what you want.
============================
PROGRAM....... ZFI_BSEG_DOWNLOAD
TITLE......... Download BSEG
PROGRAM TYPE.. Download
======================================================================
GENERAL DOCUMENTATION AND COMMENTS
<...>
======================================================================
ASSOCIATED PROGRAMS
<Program>..... <Description>
======================================================================
CHANGE HISTORY
Date By Ticket Description
REPORT zfi_bseg_download.
TABLES: bseg, bkpf.
TYPES: BEGIN OF ty_output,
line(6000) TYPE c,
END OF ty_output.
TYPES: ty_tab_output TYPE TABLE OF ty_output,
ty_tab_nametab TYPE TABLE OF x031l.
CONSTANTS: c_delimiter(04) TYPE c VALUE '"%%"',
c_records TYPE i VALUE 10000.
SELECTION-SCREEN
SELECT-OPTIONS: p_bukrs FOR bseg-bukrs,
p_belnr FOR bseg-belnr,
p_buzei FOR bseg-buzei,
p_gjahr FOR bseg-gjahr,
p_budat for bkpf-budat.
SELECTION-SCREEN SKIP.
PARAMETERS: p_file LIKE rlgrap-filename OBLIGATORY.
SELECTION-SCREEN SKIP.
PARAMETERS: p_append AS CHECKBOX DEFAULT 'X'.
START-OF-SELECTION
START-OF-SELECTION.
PERFORM get_records.
*& Form get_records
FORM get_records.
DATA: l_cursor TYPE cursor,
lt_bseg TYPE TABLE OF bseg,
ls_bseg LIKE LINE OF lt_bseg,
lt_output TYPE ty_tab_output,
ls_output LIKE LINE OF lt_output,
lt_nametab TYPE ty_tab_nametab,
ls_nametab LIKE LINE OF lt_nametab,
l_field(30) TYPE c,
l_output(50) TYPE c,
l_date(10) TYPE c,
l_len TYPE i.
FIELD-SYMBOLS: <field>.
IF p_append NE space.
OPEN DATASET p_file FOR APPENDING IN TEXT MODE.
ELSE.
OPEN DATASET p_file FOR OUTPUT IN TEXT MODE.
ENDIF.
Retrieve BSEF fieldnames and data types
PERFORM get_fields CHANGING lt_nametab.
OPEN CURSOR l_cursor FOR
SELECT * FROM bseg
WHERE bukrs IN p_bukrs
AND belnr IN p_belnr
AND buzei IN p_buzei
AND gjahr IN p_gjahr.
Write out fieldnames
IF p_append IS INITIAL.
LOOP AT lt_nametab INTO ls_nametab.
CONCATENATE ls_output ls_nametab-fieldname
INTO ls_output SEPARATED BY c_delimiter.
ENDLOOP.
IF ls_output+0(4) = c_delimiter.
SHIFT ls_output LEFT BY 4 PLACES.
ENDIF.
l_len = strlen( ls_output ).
TRANSFER ls_output TO p_file LENGTH l_len.
ENDIF.
Process BSEG records
DO.
CLEAR lt_bseg.
FETCH NEXT CURSOR l_cursor
INTO TABLE lt_bseg
PACKAGE SIZE c_records.
IF sy-subrc 0.
EXIT.
ENDIF.
LOOP AT lt_bseg INTO ls_bseg.
SELECT single * FROM BKPF
WHERE BUKRS = ls_bseg-BUKRS
AND BELNR = ls_bseg-BELNR
AND GJAHR = ls_bseg-GJAHR
AND BUDAT in p_budat.
if syst-subrc 0.
continue.
endif.
CLEAR ls_output.
Process individual fields of BSEG record
LOOP AT lt_nametab INTO ls_nametab.
CONCATENATE 'LS_BSEG-' ls_nametab-fieldname INTO l_field.
ASSIGN (l_field) TO <field>.
CLEAR l_output.
Process by field data types
CASE ls_nametab-exid.
WHEN 'C' OR 'N' OR 'I'.
Character, Numeric & Integer
l_output = <field>.
WHEN 'D'.
Dates
WRITE <field> TO l_date DD/MM/YYYY.
l_output = l_date.
WHEN 'P'.
Packed decimals
WRITE <field> TO l_output.
WHEN OTHERS.
MESSAGE a000(zs) WITH 'Data type error - ' ls_nametab-exid.
ENDCASE.
SHIFT l_output LEFT DELETING LEADING space.
CONCATENATE ls_output l_output
INTO ls_output SEPARATED BY c_delimiter.
ENDLOOP.
IF ls_output+0(4) = c_delimiter.
SHIFT ls_output LEFT BY 4 PLACES.
ENDIF.
l_len = strlen( ls_output ).
TRANSFER ls_output TO p_file LENGTH l_len.
ENDLOOP.
IF sy-subrc = 0.
ENDIF.
ENDDO.
CLOSE CURSOR l_cursor.
CLOSE DATASET p_file.
ENDFORM. " get_records
*& Form get_fields
FORM get_fields CHANGING pt_nametab TYPE ty_tab_nametab.
CALL FUNCTION 'RFC_GET_NAMETAB'
EXPORTING
tabname = 'BSEG'
TABLES
nametab = pt_nametab
EXCEPTIONS
table_not_active = 1
OTHERS = 2.
IF sy-subrc 0.
ENDIF.
ENDFORM. " get_fields
hope this helps.
cheers,
Hema.
Maybe you are looking for
-
I just bought a MacBook. The first few times it worked when I used the instructional video from teh default MacPage. Now when I try to watch a instructional video I get the message that teh file didn't finish downloading and I ma unable to watch the
-
Setting the color of a particular node in JTree
Hi all! I'm new to Java and facing a problem with JTrees. I'm using the following snippet to create a JTree : DeafultMutableTreeNode root = new DefaultMutableTeeNode("Letters"); DeafultMutableTreeNode parent1 = new DefaultMutableTeeNode("uppercase");
-
Re-installation of CS6 Design & Web Premium
Nouméa, 20/08/2014 In 2013 I have bought the CS6 Design & Web Premium Student version, in Australia I have installed it on both my desktop and old laptop. All the emails exchanged with Adobe at the time of purchase containing my licence details are o
-
BB8830 - Mac OS 10.5.7 - PocketMac won't work
I'm going to go mad. I have 400 entries in Address Book and I don't want to do this by hand. PocketMac says it did transfer but it doesn't work, no data goes over from computer to BB. I managed to get numbers out of phone to Mac by Bluetooth, but it
-
Documentation about CCM 2.0 , tendering(bid invitation) and sourcing
Hello, I am looking for customizing documentation about CCM 2.0, tendering (bid invitation) and sourcing cockpit in SRM 5.0. Please send documention to this e-mail: [email protected] Thanks in advance, Lina